layout/reftests/scoped-style/scoped-style-dynamic-004.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/scoped-style/scoped-style-dynamic-004.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!DOCTYPE html>
     1.5 +<body onload="f()">
     1.6 +  <p>First</p>
     1.7 +  <p>
     1.8 +    <style scoped>
     1.9 +      p { color: green }
    1.10 +    </style>
    1.11 +    <style scoped>
    1.12 +      p { text-decoration: underline }
    1.13 +    </style>
    1.14 +    Second
    1.15 +  </p>
    1.16 +  <p>Third</p>
    1.17 +  <script>
    1.18 +    function f() {
    1.19 +      var style = document.getElementsByTagName("style")[1];
    1.20 +      style.textContent = "p { background-color: yellow }";
    1.21 +    }
    1.22 +  </script>
    1.23 +</body>

mercurial