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