Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/cssom/medialist-dynamic-001.html
<!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>
/css/cssom/medialist-dynamic-001-ref.html
<!doctype html> <meta charset="utf-8"> <title>CSS Test Reference</title> <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> Should not be red.