| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 @-webkit-region #region1 { | 5 @-webkit-region #region1 { |
| 6 #p1 { background-color: green; } | 6 #p1 { background-color: green; } |
| 7 #p2 { background-color: lime; } | 7 #p2 { background-color: lime; } |
| 8 } | 8 } |
| 9 @-webkit-region #region2 { | 9 @-webkit-region #region2 { |
| 10 p { background-color: blue; } | 10 p { background-color: blue; } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 shouldBe("regionRule1CSSRules.item(1).cssText", "'#p2 { background-color: lime;
}'"); | 37 shouldBe("regionRule1CSSRules.item(1).cssText", "'#p2 { background-color: lime;
}'"); |
| 38 | 38 |
| 39 var regionRule2 = document.styleSheets.item(0).cssRules.item(1); | 39 var regionRule2 = document.styleSheets.item(0).cssRules.item(1); |
| 40 shouldBe("regionRule2.type", "window.CSSRule.WEBKIT_REGION_RULE"); | 40 shouldBe("regionRule2.type", "window.CSSRule.WEBKIT_REGION_RULE"); |
| 41 var regionRule2CSSRules = regionRule2.cssRules; | 41 var regionRule2CSSRules = regionRule2.cssRules; |
| 42 shouldBe("regionRule2CSSRules.length", "1"); | 42 shouldBe("regionRule2CSSRules.length", "1"); |
| 43 shouldBe("regionRule2CSSRules.item(0).type", "window.CSSRule.STYLE_RULE"); | 43 shouldBe("regionRule2CSSRules.item(0).type", "window.CSSRule.STYLE_RULE"); |
| 44 shouldBe("regionRule2CSSRules.item(0).cssText", "'p { background-color: blue; }'
"); | 44 shouldBe("regionRule2CSSRules.item(0).cssText", "'p { background-color: blue; }'
"); |
| 45 | 45 |
| 46 </script> | 46 </script> |
| 47 <script src="../../js/resources/js-test-post.js"></script> | |
| 48 </body> | 47 </body> |
| 49 </html> | 48 </html> |
| OLD | NEW |