OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .test { | 5 .test { |
6 width: 100px; | 6 width: 100px; |
7 height: 100px; | 7 height: 100px; |
8 display: inline-block; | 8 display: inline-block; |
9 } | 9 } |
10 </style> | 10 </style> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 var div5 = document.getElementById("-webkit-column-rule5"); | 46 var div5 = document.getElementById("-webkit-column-rule5"); |
47 shouldBe('div5.style.getPropertyValue("-webkit-column-rule")', "'solid bla
ck'"); | 47 shouldBe('div5.style.getPropertyValue("-webkit-column-rule")', "'solid bla
ck'"); |
48 | 48 |
49 var div6 = document.getElementById("-webkit-column-rule6"); | 49 var div6 = document.getElementById("-webkit-column-rule6"); |
50 shouldBe('div6.style.getPropertyValue("-webkit-column-rule")', "'dashed'")
; | 50 shouldBe('div6.style.getPropertyValue("-webkit-column-rule")', "'dashed'")
; |
51 | 51 |
52 var div7 = document.getElementById("-webkit-column-rule7"); | 52 var div7 = document.getElementById("-webkit-column-rule7"); |
53 shouldBe('div7.style.getPropertyValue("-webkit-column-rule")', "'green'"); | 53 shouldBe('div7.style.getPropertyValue("-webkit-column-rule")', "'green'"); |
54 | 54 |
55 var div8 = document.getElementById("-webkit-column-rule8"); | 55 var div8 = document.getElementById("-webkit-column-rule8"); |
56 shouldBe('div8.style.getPropertyValue("-webkit-column-rule")', "null"); | 56 shouldBeEqualToString('div8.style.getPropertyValue("-webkit-column-rule")'
, ""); |
57 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-column-rule'."); | 57 debug("NOTE: 'foo' is an illegal CSS value for '-webkit-column-rule'."); |
58 | 58 |
59 var div9 = document.getElementById("-webkit-column-rule9"); | 59 var div9 = document.getElementById("-webkit-column-rule9"); |
60 shouldBe('div9.style.getPropertyValue("-webkit-column-rule")', "'10px dott
ed black'"); | 60 shouldBe('div9.style.getPropertyValue("-webkit-column-rule")', "'10px dott
ed black'"); |
61 | 61 |
62 debug("NOTE: If only few longhand properties are specified, getPropertyVal
ue for shorthand property returns null."); | 62 debug("NOTE: If only few longhand properties are specified, getPropertyVal
ue for shorthand property returns null."); |
63 var div10 = document.getElementById("-webkit-column-rule10"); | 63 var div10 = document.getElementById("-webkit-column-rule10"); |
64 shouldBe('div10.style.getPropertyValue("-webkit-column-rule")', "null"); | 64 shouldBeEqualToString('div10.style.getPropertyValue("-webkit-column-rule")
', ""); |
65 | 65 |
66 var div11 = document.getElementById("-webkit-column-rule11"); | 66 var div11 = document.getElementById("-webkit-column-rule11"); |
67 shouldBe('div11.style.getPropertyValue("-webkit-column-rule")', "null"); | 67 shouldBeEqualToString('div11.style.getPropertyValue("-webkit-column-rule")
', ""); |
68 | 68 |
69 var div12 = document.getElementById("-webkit-column-rule12"); | 69 var div12 = document.getElementById("-webkit-column-rule12"); |
70 shouldBe('div12.style.getPropertyValue("-webkit-column-rule")', "null"); | 70 shouldBeEqualToString('div12.style.getPropertyValue("-webkit-column-rule")
', ""); |
71 </script> | 71 </script> |
72 </body> | 72 </body> |
73 </html> | 73 </html> |
OLD | NEW |