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

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

Issue 112103012: Update default shape property value to 'none' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merging with new ellipse code Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script src="parsing-test-utils.js"></script> 7 <script src="parsing-test-utils.js"></script>
8 <script> 8 <script>
9 description('Testing parsing of the shape-outside property.'); 9 description('Testing parsing of the shape-outside property.');
10 10
11 // The test functions and globals used here are defined parsing-test-utils.js. 11 // The test functions and globals used here are defined parsing-test-utils.js.
12 12
13 validShapeValues.forEach(function(elt, i, a) { 13 validShapeValues.forEach(function(elt, i, a) {
14 var value = (elt instanceof Array) ? elt[0] : elt; 14 var value = (elt instanceof Array) ? elt[0] : elt;
15 var expectedValue = (elt instanceof Array) ? elt[1] : elt; 15 var expectedValue = (elt instanceof Array) ? elt[1] : elt;
16 var computedValue = (elt instanceof Array && elt.length > 2) ? elt[2] : expe ctedValue; 16 var computedValue = (elt instanceof Array && elt.length > 2) ? elt[2] : expe ctedValue;
17 testShapeSpecifiedProperty("shape-outside", value, expectedValue); 17 testShapeSpecifiedProperty("shape-outside", value, expectedValue);
18 testShapeComputedProperty("shape-outside", value, computedValue); 18 testShapeComputedProperty("shape-outside", value, computedValue);
19 }); 19 });
20 20
21 testLocalURLShapeProperty("shape-outside", "url(\'image\')", "url(image)"); 21 testLocalURLShapeProperty("shape-outside", "url(\'image\')", "url(image)");
22 22
23 invalidShapeValues.forEach(function(value, i, a) { 23 invalidShapeValues.forEach(function(value, i, a) {
24 testShapePropertyParsingFailure("shape-outside", value, "auto") 24 testShapePropertyParsingFailure("shape-outside", value, "none")
25 }); 25 });
26 26
27 testShapePropertyParsingFailure("shape-outside", "outside-shape", "auto"); 27 testShapePropertyParsingFailure("shape-outside", "outside-shape", "none");
28 28
29 applyToEachArglist( 29 applyToEachArglist(
30 testNotInheritedShapeProperty, 30 testNotInheritedShapeProperty,
31 [// [property, parentValue, childValue, expectedValue] 31 [// [property, parentValue, childValue, expectedValue]
32 ["shape-outside", "auto", "rectangle(10px, 20px, 30px, 40px)", "parent: aut o, child: rectangle(10px, 20px, 30px, 40px, 0px, 0px)"], 32 ["shape-outside", "none", "rectangle(10px, 20px, 30px, 40px)", "parent: non e, child: rectangle(10px, 20px, 30px, 40px, 0px, 0px)"],
33 ["shape-outside", "rectangle(10px, 20px, 30px, 40px)", "initial", "parent: rectangle(10px, 20px, 30px, 40px, 0px, 0px), child: auto"], 33 ["shape-outside", "rectangle(10px, 20px, 30px, 40px)", "initial", "parent: rectangle(10px, 20px, 30px, 40px, 0px, 0px), child: none"],
34 ["shape-outside", "rectangle(10px, 20px, 30px, 40px)", "", "parent: rectang le(10px, 20px, 30px, 40px, 0px, 0px), child: auto"], 34 ["shape-outside", "rectangle(10px, 20px, 30px, 40px)", "", "parent: rectang le(10px, 20px, 30px, 40px, 0px, 0px), child: none"],
35 ["shape-outside", "rectangle(10px, 20px, 30px, 40px)", "inherit", "parent: rectangle(10px, 20px, 30px, 40px, 0px, 0px), child: rectangle(10px, 20px, 30px, 40px, 0px, 0px)"], 35 ["shape-outside", "rectangle(10px, 20px, 30px, 40px)", "inherit", "parent: rectangle(10px, 20px, 30px, 40px, 0px, 0px), child: rectangle(10px, 20px, 30px, 40px, 0px, 0px)"],
36 ["shape-outside", "", "inherit", "parent: auto, child: auto"], 36 ["shape-outside", "", "inherit", "parent: none, child: none"],
37 ["shape-outside", "auto", "inherit", "parent: auto, child: auto"]] 37 ["shape-outside", "none", "inherit", "parent: none, child: none"]]
38 ); 38 );
39 </script> 39 </script>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698