OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="resources/shadow-dom.js"></script> | 5 <script src="resources/shadow-dom.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <div id="parent"></div> | 8 <div id="parent"></div> |
9 <script> | 9 <script> |
10 description('Test for crbug.com/271823: @host rules do not apply when doing lazy
Attach.'); | 10 description('Test for crbug.com/271823: @host rules do not apply when doing lazy
Attach.'); |
11 | 11 |
12 onload = function() { | 12 onload = function() { |
13 var parent = document.getElementById("parent"); | 13 var parent = document.getElementById("parent"); |
14 | 14 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 document.body.offsetLeft; | 47 document.body.offsetLeft; |
48 document.body.style.display = ''; | 48 document.body.style.display = ''; |
49 document.body.offsetLeft; | 49 document.body.offsetLeft; |
50 | 50 |
51 // Style is now right since we reattached all nodes. | 51 // Style is now right since we reattached all nodes. |
52 shouldBeEqualToString("getComputedStyle(host).color", "rgb(0, 0, 255)"); | 52 shouldBeEqualToString("getComputedStyle(host).color", "rgb(0, 0, 255)"); |
53 } | 53 } |
54 </script> | 54 </script> |
55 </body> | 55 </body> |
56 </html> | 56 </html> |
OLD | NEW |