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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 test(function(){ | 176 test(function(){ |
177 assert_equals(sheet.cssRules[38].style.border, ""); | 177 assert_equals(sheet.cssRules[38].style.border, ""); |
178 }, "No unitless length quirk for border property"); | 178 }, "No unitless length quirk for border property"); |
179 test(function(){ | 179 test(function(){ |
180 assert_equals(sheet.cssRules[39].style.font, ""); | 180 assert_equals(sheet.cssRules[39].style.font, ""); |
181 }, "No unitless length quirk for font property"); | 181 }, "No unitless length quirk for font property"); |
182 test(function(){ | 182 test(function(){ |
183 assert_equals(sheet.cssRules[40].style.font, ""); | 183 assert_equals(sheet.cssRules[40].style.font, ""); |
184 }, "No unitless length quirk for font property"); | 184 }, "No unitless length quirk for font property"); |
185 test(function(){ | 185 test(function(){ |
186 assert_equals(sheet.cssRules[41].style.backgroundPosition, "10px 50%"); | 186 assert_equals(sheet.cssRules[41].style.backgroundPosition, "10px center"); |
187 }, "Unitless length quirk for background-position property"); | 187 }, "Unitless length quirk for background-position property"); |
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"); |
(...skipping 15 matching lines...) Expand all Loading... |
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 |