OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 <style> | 6 <style> |
7 div#test { | 7 div#test { |
8 background-image: url(stars.gif); | 8 background-image: url(stars.gif); |
9 } | 9 } |
10 </style> | 10 </style> |
11 </head> | 11 </head> |
12 <body> | 12 <body> |
13 <script> | 13 <script> |
14 | 14 |
15 description("Documents that CSS image values are not primitive values anymore.")
; | 15 description("Documents that CSS image values are not primitive values anymore.")
; |
16 | 16 |
17 var style = document.styleSheets[1].rules[0].style; | 17 var style = document.styleSheets[1].rules[0].style; |
18 var imageValue = style.getPropertyCSSValue('background-image'); | 18 var imageValue = style.getPropertyCSSValue('background-image'); |
19 | 19 |
20 shouldBe("imageValue.cssValueType", "CSSValue.CSS_PRIMITIVE_VALUE"); | 20 shouldBe("imageValue.cssValueType", "CSSValue.CSS_PRIMITIVE_VALUE"); |
21 | 21 |
22 </script> | 22 </script> |
23 <script src="../js/resources/js-test-post.js"></script> | |
24 </body> | 23 </body> |
25 </html> | 24 </html> |
OLD | NEW |