| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../../resources/js-test.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <script src="parsing-test-utils.js"></script> | |
| 8 <script> | |
| 9 description('Testing parsing of the shape-inside property.'); | |
| 10 | |
| 11 // The test functions and globals used here are defined parsing-test-utils.js. | |
| 12 | |
| 13 validShapeValues.concat("outside-shape").forEach(function(elt, i, a) { | |
| 14 var value = (elt instanceof Array) ? elt[0] : elt; | |
| 15 var expectedValue = (elt instanceof Array) ? elt[1] : elt; | |
| 16 var computedValue = (elt instanceof Array && elt.length > 2) ? elt[2] : expe
ctedValue; | |
| 17 testShapeSpecifiedProperty("shape-inside", value, expectedValue); | |
| 18 testShapeComputedProperty("shape-inside", value, computedValue); | |
| 19 }); | |
| 20 | |
| 21 testLocalURLShapeProperty("shape-inside", "url(\'image\')", "url(image)"); | |
| 22 | |
| 23 invalidShapeValues.forEach(function(value, i, a) { | |
| 24 testShapePropertyParsingFailure("shape-inside", value, "none") | |
| 25 }); | |
| 26 | |
| 27 applyToEachArglist( | |
| 28 testNotInheritedShapeProperty, | |
| 29 [// [property, parentValue, childValue, expectedValue] | |
| 30 ["-webkit-shape-inside", "none", "circle(30px at 10px 20px)", "parent: none
, child: circle(30px at 10px 20px)"], | |
| 31 ["-webkit-shape-inside", "outside-shape", "circle(30px at 10px 20px)", "par
ent: outside-shape, child: circle(30px at 10px 20px)"], | |
| 32 ["-webkit-shape-inside", "circle(30px at 10px 20px)", "initial", "parent: c
ircle(30px at 10px 20px), child: none"], | |
| 33 ["-webkit-shape-inside", "circle(30px at 10px 20px)", "", "parent: circle(3
0px at 10px 20px), child: none"], | |
| 34 ["-webkit-shape-inside", "circle(30px at 10px 20px)", "inherit", "parent: c
ircle(30px at 10px 20px), child: circle(30px at 10px 20px)"], | |
| 35 ["shape-inside", "", "inherit", "parent: none, child: none"], | |
| 36 ["shape-inside", "none", "inherit", "parent: none, child: none"]] | |
| 37 ); | |
| 38 </script> | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |