summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/medialist-dynamic-001.html
blob: ab9c1345680807867b5c7e0e89c28d8f5d213b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!doctype html>
<meta charset="utf-8">
<title>CSS Test: Dynamic changes to the stylesheet media attributes via CSSOM get reflected</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="medialist-dynamic-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/cssom/#dom-medialist-mediatext">
<style media="all">* { color: red }</style>
Should not be red.
<script>
  document.body.offsetTop;
  document.styleSheets[0].media.mediaText = "not all";
</script>