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> | 5 <script> |
6 description("Test for https://bugs.webkit.org/show_bug.cgi?id=92899. Dynamically
styling ShadowDom content on a node distributed to another shadow insertion poi
nt fails."); | 6 description("Test for https://bugs.webkit.org/show_bug.cgi?id=92899. Dynamically
styling ShadowDom content on a node distributed to another shadow insertion poi
nt fails."); |
7 | 7 |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
10 | 10 |
11 </script> | 11 </script> |
12 </head> | 12 </head> |
13 <body> | 13 <body> |
14 <div id="box" style="border: 1px solid black;"> | 14 <div id="box" style="border: 1px solid black;"> |
(...skipping 11 matching lines...) Expand all Loading... |
26 "<div id='target'>Content</div>"; | 26 "<div id='target'>Content</div>"; |
27 | 27 |
28 document.body.offsetLeft; | 28 document.body.offsetLeft; |
29 | 29 |
30 target = youngestShadowRoot.querySelector("div"); | 30 target = youngestShadowRoot.querySelector("div"); |
31 target.classList.add("selected"); | 31 target.classList.add("selected"); |
32 shouldBe('window.getComputedStyle(target).backgroundColor', '"rgb(255, 0, 0)"'); | 32 shouldBe('window.getComputedStyle(target).backgroundColor', '"rgb(255, 0, 0)"'); |
33 </script> | 33 </script> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |