OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 </html> | 2 </html> |
3 <head> | 3 <head> |
4 <title>-webkit-text-stroke shorthand getPropertyValue test</title> | 4 <title>-webkit-text-stroke shorthand getPropertyValue test</title> |
5 <style> | 5 <style> |
6 .test { | 6 .test { |
7 width: 5em; | 7 width: 5em; |
8 height: 10em; | 8 height: 10em; |
9 } | 9 } |
10 </style> | 10 </style> |
(...skipping 18 matching lines...) Expand all Loading... |
29 var element = document.getElementById(id); | 29 var element = document.getElementById(id); |
30 return element.style.getPropertyValue("-webkit-text-stroke"); | 30 return element.style.getPropertyValue("-webkit-text-stroke"); |
31 } | 31 } |
32 | 32 |
33 shouldBeEqualToString('webkitTextStrokeValue("text-stroke1")', 'thin red')
; | 33 shouldBeEqualToString('webkitTextStrokeValue("text-stroke1")', 'thin red')
; |
34 shouldBeEqualToString('webkitTextStrokeValue("text-stroke2")', 'green'); | 34 shouldBeEqualToString('webkitTextStrokeValue("text-stroke2")', 'green'); |
35 shouldBeEqualToString('webkitTextStrokeValue("text-stroke3")', 'thin'); | 35 shouldBeEqualToString('webkitTextStrokeValue("text-stroke3")', 'thin'); |
36 shouldBeEqualToString('webkitTextStrokeValue("text-stroke4")', '1px red'); | 36 shouldBeEqualToString('webkitTextStrokeValue("text-stroke4")', '1px red'); |
37 shouldBeEqualToString('webkitTextStrokeValue("text-stroke5")', '1px black'
); | 37 shouldBeEqualToString('webkitTextStrokeValue("text-stroke5")', '1px black'
); |
38 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-text-stroke'."); | 38 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-text-stroke'."); |
39 shouldBe('webkitTextStrokeValue("text-stroke6")', "null"); | 39 shouldBeEqualToString('webkitTextStrokeValue("text-stroke6")', ""); |
40 debug("NOTE: If only few longhand properties are specified, getPropertyVal
ue for shorthand property returns null.") | 40 debug("NOTE: If only few longhand properties are specified, getPropertyVal
ue for shorthand property returns empty string.") |
41 shouldBe('webkitTextStrokeValue("text-stroke7")', "null"); | 41 shouldBeEqualToString('webkitTextStrokeValue("text-stroke7")', ""); |
42 </script> | 42 </script> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |