Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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">
<style media="all">* { color: red }</style>
Should not be red.
<script>
document.body.offsetTop;
document.styleSheets[0].media.mediaText = "not all";
</script>