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 if (window.internals) | 6 if (window.internals) |
7 window.internals.settings.setStyleScopedEnabled(false); | 7 window.internals.settings.setStyleScopedEnabled(false); |
8 </script> | 8 </script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
11 <div id="host"></div> | 11 <div id="host"></div> |
12 <span id='shouldNotBeApplied'>Should not be blue</span> | 12 <span id='shouldNotBeApplied'>Should not be blue</span> |
13 <div> | 13 <div> |
14 <style scoped> p { color: red; } </style> | 14 <style scoped> p { color: red; } </style> |
(...skipping 10 matching lines...) Expand all Loading... |
25 var shouldNotBeScoped = document.getElementById("shouldNotBeScoped"); | 25 var shouldNotBeScoped = document.getElementById("shouldNotBeScoped"); |
26 var insideScope = document.getElementById("insideScope"); | 26 var insideScope = document.getElementById("insideScope"); |
27 shouldBe("window.getComputedStyle(shouldBeApplied).color", "'rgb(0, 0, 255)'"); | 27 shouldBe("window.getComputedStyle(shouldBeApplied).color", "'rgb(0, 0, 255)'"); |
28 shouldBe("window.getComputedStyle(shouldNotBeApplied).color", "'rgb(0, 0, 0)'"); | 28 shouldBe("window.getComputedStyle(shouldNotBeApplied).color", "'rgb(0, 0, 0)'"); |
29 shouldBe("window.getComputedStyle(insideScope).color", "'rgb(255, 0, 0)'"); | 29 shouldBe("window.getComputedStyle(insideScope).color", "'rgb(255, 0, 0)'"); |
30 shouldBe("window.getComputedStyle(shouldNotBeScoped).color", "'rgb(255, 0, 0)'")
; | 30 shouldBe("window.getComputedStyle(shouldNotBeScoped).color", "'rgb(255, 0, 0)'")
; |
31 finishJSTest(); | 31 finishJSTest(); |
32 </script> | 32 </script> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |