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

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

Issue 209443007: Remove shape-inside support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove now unused segmentIsEmpty Created 6 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
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698