OLD | NEW |
1 <script src="../../resources/testharness.js"></script> | 1 <script src="../../resources/testharness.js"></script> |
2 <script src="../../resources/testharnessreport.js"></script> | 2 <script src="../../resources/testharnessreport.js"></script> |
3 <style> | 3 <style> |
4 #t1 { border-top-width: 1 } | 4 #t1 { border-top-width: 1 } |
5 #t2 { border-right-width: 1 } | 5 #t2 { border-right-width: 1 } |
6 #t3 { border-bottom-width: 1 } | 6 #t3 { border-bottom-width: 1 } |
7 #t4 { border-left-width: 1 } | 7 #t4 { border-left-width: 1 } |
8 #t5 { border-width: 1 } | 8 #t5 { border-width: 1 } |
9 #t6 { bottom: 1 } | 9 #t6 { bottom: 1 } |
10 #t7 { clip: rect(1 1 1 1) } | 10 #t7 { clip: rect(1 1 1 1) } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 test(function(){ | 188 test(function(){ |
189 assert_equals(sheet.cssRules[42].style.backgroundPosition, "10px 20px"); | 189 assert_equals(sheet.cssRules[42].style.backgroundPosition, "10px 20px"); |
190 }, "Unitless length quirk for background-position property"); | 190 }, "Unitless length quirk for background-position property"); |
191 test(function(){ | 191 test(function(){ |
192 assert_equals(sheet.cssRules[43].style.background, ""); | 192 assert_equals(sheet.cssRules[43].style.background, ""); |
193 }, "No unitless length quirk for background property"); | 193 }, "No unitless length quirk for background property"); |
194 test(function(){ | 194 test(function(){ |
195 assert_equals(sheet.cssRules[44].style.background, ""); | 195 assert_equals(sheet.cssRules[44].style.background, ""); |
196 }, "No unitless length quirk for background property"); | 196 }, "No unitless length quirk for background property"); |
197 test(function(){ | 197 test(function(){ |
198 assert_equals(sheet.cssRules[45].style.background, "10px 50% rgb(255, 0, 0)"
); | 198 assert_equals(sheet.cssRules[45].style.background, "10px center rgb(255, 0,
0)"); |
199 }, "No unitless length quirk for background property"); | 199 }, "No unitless length quirk for background property"); |
200 test(function(){ | 200 test(function(){ |
201 assert_equals(sheet.cssRules[46].style.background, ""); | 201 assert_equals(sheet.cssRules[46].style.background, ""); |
202 }, "No unitless length quirk for background property"); | 202 }, "No unitless length quirk for background property"); |
203 test(function(){ | 203 test(function(){ |
204 assert_equals(sheet.cssRules[47].style.textIndent, "10px"); | 204 assert_equals(sheet.cssRules[47].style.textIndent, "10px"); |
205 }, "Unitless length quirk for text-indent property"); | 205 }, "Unitless length quirk for text-indent property"); |
206 test(function(){ | 206 test(function(){ |
207 assert_equals(sheet.cssRules[48].style.outlineWidth, ""); | 207 assert_equals(sheet.cssRules[48].style.outlineWidth, ""); |
208 }, "No unitless length quirk for outline-width property"); | 208 }, "No unitless length quirk for outline-width property"); |
209 test(function(){ | 209 test(function(){ |
210 assert_equals(sheet.cssRules[49].style.minWidth, "10px"); | 210 assert_equals(sheet.cssRules[49].style.minWidth, "10px"); |
211 }, "Unitless length quirk for min-width property"); | 211 }, "Unitless length quirk for min-width property"); |
212 test(function(){ | 212 test(function(){ |
213 assert_equals(sheet.cssRules[50].style.minHeight, "10px"); | 213 assert_equals(sheet.cssRules[50].style.minHeight, "10px"); |
214 }, "Unitless length quirk for min-height property"); | 214 }, "Unitless length quirk for min-height property"); |
215 test(function(){ | 215 test(function(){ |
216 assert_equals(sheet.cssRules[51].style.maxWidth, "10px"); | 216 assert_equals(sheet.cssRules[51].style.maxWidth, "10px"); |
217 }, "Unitless length quirk for max-width property"); | 217 }, "Unitless length quirk for max-width property"); |
218 test(function(){ | 218 test(function(){ |
219 assert_equals(sheet.cssRules[52].style.maxHeight, "10px"); | 219 assert_equals(sheet.cssRules[52].style.maxHeight, "10px"); |
220 }, "Unitless length quirk for max-height property"); | 220 }, "Unitless length quirk for max-height property"); |
221 </script> | 221 </script> |
OLD | NEW |