Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/parsing-unitless-length-quirk.html

Issue 1715513002: Move background related shorthands into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698