| 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="../../js/resources/js-test-pre.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 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 ".selected {background: red;}" + | 24 ".selected {background: red;}" + |
| 25 "</style>" + | 25 "</style>" + |
| 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 <script src="../../js/resources/js-test-post.js"></script> | |
| 35 </body> | 34 </body> |
| 36 </html> | 35 </html> |
| OLD | NEW |