OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .styled { | 5 .styled { |
6 background-color: red; | 6 background-color: red; |
7 width: 0; | 7 width: 0; |
8 height: 100px; | 8 height: 100px; |
9 } | 9 } |
10 </style> | 10 </style> |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Since this style is more specific, it should override the original author
style above. | 34 // Since this style is more specific, it should override the original author
style above. |
35 internals.insertAuthorCSS(document, "body .styled { background-color: green;
width: 100px; }"); | 35 internals.insertAuthorCSS(document, "body .styled { background-color: green;
width: 100px; }"); |
36 shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(0, 128, 0)'"
); | 36 shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(0, 128, 0)'"
); |
37 shouldBe("testElement.offsetWidth", "100"); | 37 shouldBe("testElement.offsetWidth", "100"); |
38 } | 38 } |
39 | 39 |
40 test(); | 40 test(); |
41 </script> | 41 </script> |
42 </body> | 42 </body> |
43 </html> | 43 </html> |
OLD | NEW |