Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLStyleElement / insert-parser-generated.html
blobc9239687ee1d5a6ece16dd78c8be7308317c4f1d
1 <html>
2 <head>
3 <style>
4 div { width: 100px; height: 100px; background-color: red; }
5 </style>
6 <style id="style">
7 div#green { background-color: green; }
8 </style>
9 </head>
10 <body>
11 <!--
12 Tests that re-inserting a <style> element that was created by the
13 parser applies its stylesheet.
14 -->
15 <div id="green"></div>
16 <script>
17 var style = document.getElementById("style");
18 var head = style.parentNode;
19 head.removeChild(style);
20 head.appendChild(style);
21 </script>
22 </body>
23 </html>