OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <style> | 4 <style> |
5 @import url("data:text/css,* { color:black; }"); | 5 @import url("data:text/css,* { color:black; }"); |
6 | 6 |
7 * { color: black } | 7 * { color: black } |
8 | 8 |
9 @font-face { | 9 @font-face { |
10 font-family: 'CustomName'; | 10 font-family: 'CustomName'; |
(...skipping 27 matching lines...) Expand all Loading... |
38 gc(); | 38 gc(); |
39 shouldBe(expr + "." + testWhat + ".foo", "'bar'"); | 39 shouldBe(expr + "." + testWhat + ".foo", "'bar'"); |
40 } | 40 } |
41 | 41 |
42 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "media"); | 42 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "media"); |
43 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "styleShe
et"); | 43 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "styleShe
et"); |
44 test("document.styleSheets[0].cssRules[1]", "CSSRule.STYLE_RULE", "style"); | 44 test("document.styleSheets[0].cssRules[1]", "CSSRule.STYLE_RULE", "style"); |
45 test("document.styleSheets[0].cssRules[2]", "CSSRule.FONT_FACE_RULE", "style
"); | 45 test("document.styleSheets[0].cssRules[2]", "CSSRule.FONT_FACE_RULE", "style
"); |
46 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "cssRules"
); | 46 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "cssRules"
); |
47 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "media"); | 47 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "media"); |
48 test("document.styleSheets[0].cssRules[4]", "CSSRule.WEBKIT_KEYFRAMES_RULE",
"cssRules"); | 48 test("document.styleSheets[0].cssRules[4]", "CSSRule.KEYFRAMES_RULE", "cssRu
les"); |
49 test("document.styleSheets[0].cssRules[4].cssRules[0]", "CSSRule.WEBKIT_KEYF
RAME_RULE", "style"); | 49 test("document.styleSheets[0].cssRules[4].cssRules[0]", "CSSRule.KEYFRAME_RU
LE", "style"); |
50 test("document.styleSheets[0].cssRules[5]", "CSSRule.PAGE_RULE", "style"); | 50 test("document.styleSheets[0].cssRules[5]", "CSSRule.PAGE_RULE", "style"); |
51 | 51 |
52 </script> | 52 </script> |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |