| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../../resources/js-test.js"></script> | |
| 5 <style id="style1"> | |
| 6 div > .foo::part(target) { display: block; } | |
| 7 </style> | |
| 8 <style id="style-invalid"> | |
| 9 ::part(target1, target2) { display: block } | |
| 10 ::part(target1.foo#bar) { display: block } | |
| 11 ::part(target1:hover) { display: block } | |
| 12 ::part() { display: block } | |
| 13 ::part { display: block } | |
| 14 </style> | |
| 15 </head> | |
| 16 <script> | |
| 17 description("Test for cssText of ':host()' rule."); | |
| 18 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0).
cssText", "div > .foo::part(target) { display: block; }"); | |
| 19 shouldBe("document.getElementById('style-invalid').sheet.cssRules.length", "0"); | |
| 20 </script> | |
| 21 </html> | |
| OLD | NEW |