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

Side by Side Diff: LayoutTests/fast/shapes/parsing/parsing-shape-lengths.html

Issue 1274643002: CSSStyleDeclaraction returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed changes from imported/csswg-test Created 5 years, 4 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 * { font-size: 16px; } 5 * { font-size: 16px; }
6 div { font-size: 8px; } 6 div { font-size: 8px; }
7 </style> 7 </style>
8 <script src="../../../resources/js-test.js"></script> 8 <script src="../../../resources/js-test.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
(...skipping 13 matching lines...) Expand all
24 if (expected === null) 24 if (expected === null)
25 shouldBeNull('getStyleValue("shape-outside", "' + value + '")'); 25 shouldBeNull('getStyleValue("shape-outside", "' + value + '")');
26 else 26 else
27 shouldBeEqualToString('getStyleValue("shape-outside", "' + value + '")', expected); 27 shouldBeEqualToString('getStyleValue("shape-outside", "' + value + '")', expected);
28 } 28 }
29 function testComputedStyleValue(value, expected) { 29 function testComputedStyleValue(value, expected) {
30 testShapeComputedProperty("shape-outside", value, expected); 30 testShapeComputedProperty("shape-outside", value, expected);
31 } 31 }
32 32
33 function testInvalidValue(property, value) { 33 function testInvalidValue(property, value) {
34 testStyleValue(value, null); 34 testStyleValue(value, "");
35 testComputedStyleValue(value, 'none'); 35 testComputedStyleValue(value, 'none');
36 } 36 }
37 37
38 // absolute lengths - number serialization, units 38 // absolute lengths - number serialization, units
39 testStyleValue("circle(0 at 0 0)", "circle(0px at 0% 0%)"); 39 testStyleValue("circle(0 at 0 0)", "circle(0px at 0% 0%)");
40 testStyleValue("circle(1px at +1px -1px)", "circle(1px at 1px -1px)"); 40 testStyleValue("circle(1px at +1px -1px)", "circle(1px at 1px -1px)");
41 testStyleValue("circle(1.5px at -1.5px +1.5px)", "circle(1.5px at -1.5px 1.5px)" ); 41 testStyleValue("circle(1.5px at -1.5px +1.5px)", "circle(1.5px at -1.5px 1.5px)" );
42 testStyleValue("circle(.5px at -.5px +.5px)", "circle(0.5px at -0.5px 0.5px)"); 42 testStyleValue("circle(.5px at -.5px +.5px)", "circle(0.5px at -0.5px 0.5px)");
43 43
44 testStyleValue("inset(1cm 1mm 1in 1px round 1pt 1pc)", "inset(1cm 1mm 1in 1px ro und 1pt 1pc)"); 44 testStyleValue("inset(1cm 1mm 1in 1px round 1pt 1pc)", "inset(1cm 1mm 1in 1px ro und 1pt 1pc)");
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // reject negative radiuses 88 // reject negative radiuses
89 testInvalidValue("shape-outside", "circle(-1.5px at -1.5px +1.5px)"); 89 testInvalidValue("shape-outside", "circle(-1.5px at -1.5px +1.5px)");
90 testInvalidValue("shape-outside", "inset(1cm 1mm 1in 1px round 1pt -1pc)"); 90 testInvalidValue("shape-outside", "inset(1cm 1mm 1in 1px round 1pt -1pc)");
91 testInvalidValue("shape-outside", "ellipse(-1em 1em at 1em 1em)"); 91 testInvalidValue("shape-outside", "ellipse(-1em 1em at 1em 1em)");
92 testInvalidValue("shape-outside", "ellipse(1em -1em at 1em 1em)"); 92 testInvalidValue("shape-outside", "ellipse(1em -1em at 1em 1em)");
93 93
94 </script> 94 </script>
95 </body> 95 </body>
96 </html> 96 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698