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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-parsing.html

Issue 2799793002: Implement color stop position syntax from CSS Image Values 4 (Closed)
Patch Set: greedy color repeat serializer + more tests Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/gradients/unprefixed-gradient-parsing.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../../css-parser/resources/property-parsing-test.js"></script> 4 <script src="../../css-parser/resources/property-parsing-test.js"></script>
5 5
6 <body> 6 <body>
7 <script> 7 <script>
8 function assert_computed_style(property, value, expectedValue) { 8 function assert_computed_style(property, value, expectedValue) {
9 if (expectedValue === undefined) 9 if (expectedValue === undefined)
10 expectedValue = value; 10 expectedValue = value;
(...skipping 18 matching lines...) Expand all
29 { style: "conic-gradient(center, black, white)" , com puted: "none" }, 29 { style: "conic-gradient(center, black, white)" , com puted: "none" },
30 { style: "conic-gradient(top left, black, white)" , com puted: "none" }, 30 { style: "conic-gradient(top left, black, white)" , com puted: "none" },
31 { style: "conic-gradient(at bottom bottom, black, white)" , com puted: "none" }, 31 { style: "conic-gradient(at bottom bottom, black, white)" , com puted: "none" },
32 { style: "conic-gradient(at left left, black, white)" , com puted: "none" }, 32 { style: "conic-gradient(at left left, black, white)" , com puted: "none" },
33 { style: "conic-gradient(at top left black, white)" , com puted: "none" }, 33 { style: "conic-gradient(at top left black, white)" , com puted: "none" },
34 { style: "conic-gradient(black 0%, 10%, 10%, green .5turn, 50%, white)", com puted: "none" }, 34 { style: "conic-gradient(black 0%, 10%, 10%, green .5turn, 50%, white)", com puted: "none" },
35 { style: "conic-gradient(from 0 black, white)" , com puted: "none" }, 35 { style: "conic-gradient(from 0 black, white)" , com puted: "none" },
36 { style: "conic-gradient(from 0 at top left black, white)" , com puted: "none" }, 36 { style: "conic-gradient(from 0 at top left black, white)" , com puted: "none" },
37 { style: "conic-gradient(from 0, at top left, black, white)" , com puted: "none" }, 37 { style: "conic-gradient(from 0, at top left, black, white)" , com puted: "none" },
38 { style: "conic-gradient(at top left from 0, black, white)" , com puted: "none" }, 38 { style: "conic-gradient(at top left from 0, black, white)" , com puted: "none" },
39 { style: "conic-gradient(black 10% 20% 30%, white)" , com puted: "none" },
40 { style: "conic-gradient(black, 30% 50%, white)" , com puted: "none" },
39 41
40 { style: "conic-gradient(black, white)" , computed: "conic-gradien t(black, white)" }, 42 { style: "conic-gradient(black, white)" , computed: "conic-gradien t(black, white)" },
41 { style: "conic-gradient(black 0, white)" , computed: "conic-gradien t(black 0deg, white)" }, 43 { style: "conic-gradient(black 0, white)" , computed: "conic-gradien t(black 0deg, white)" },
42 { style: "conic-gradient(black 0%, white)" , computed: "conic-gradien t(black 0%, white)" }, 44 { style: "conic-gradient(black 0%, white)" , computed: "conic-gradien t(black 0%, white)" },
43 { style: "conic-gradient(black 0deg, white)" , computed: "conic-gradien t(black 0deg, white)" }, 45 { style: "conic-gradient(black 0deg, white)" , computed: "conic-gradien t(black 0deg, white)" },
44 { style: "conic-gradient(black 0grad, white)" , computed: "conic-gradien t(black 0grad, white)" }, 46 { style: "conic-gradient(black 0grad, white)" , computed: "conic-gradien t(black 0grad, white)" },
45 { style: "conic-gradient(black 0rad, white)" , computed: "conic-gradien t(black 0rad, white)" }, 47 { style: "conic-gradient(black 0rad, white)" , computed: "conic-gradien t(black 0rad, white)" },
46 { style: "conic-gradient(black 0turn, white)" , computed: "conic-gradien t(black 0turn, white)" }, 48 { style: "conic-gradient(black 0turn, white)" , computed: "conic-gradien t(black 0turn, white)" },
47 { style: "conic-gradient(black, white 50%)" , computed: "conic-gradien t(black, white 50%)" }, 49 { style: "conic-gradient(black, white 50%)" , computed: "conic-gradien t(black, white 50%)" },
48 { style: "conic-gradient(black 10%, white 50%)" , computed: "conic-gradien t(black 10%, white 50%)" }, 50 { style: "conic-gradient(black 10%, white 50%)" , computed: "conic-gradien t(black 10%, white 50%)" },
49 { style: "conic-gradient(black 10%, white 180deg)", computed: "conic-gradien t(black 10%, white 180deg)" }, 51 { style: "conic-gradient(black 10%, white 180deg)", computed: "conic-gradien t(black 10%, white 180deg)" },
50 52
53 { style: "conic-gradient(black 10% 20%, white)" , c omputed: "conic-gradient(black 10% 20%, white)" },
54 { style: "conic-gradient(black, white 270deg 360deg)" , c omputed: "conic-gradient(black, white 270deg 360deg)" },
55 { style: "conic-gradient(black 10% 20%, white 270deg 360deg)" , c omputed: "conic-gradient(black 10% 20%, white 270deg 360deg)" },
56 { style: "conic-gradient(blue 10%, blue 20%, white)" , c omputed: "conic-gradient(blue 10% 20%, white)" },
57 { style: "conic-gradient(blue 10%, blue 20%, blue 30%, white)" , c omputed: "conic-gradient(blue 10% 20%, blue 30%, white)" },
58 { style: "conic-gradient(blue 10%, blue 20%, blue 30%, blue 40%, white)" , c omputed: "conic-gradient(blue 10% 20%, blue 30% 40%, white)" },
59 { style: "conic-gradient(blue 10%, blue 20%, white 270deg, white 360deg)", c omputed: "conic-gradient(blue 10% 20%, white 270deg 360deg)" },
60 { style: "conic-gradient(blue 10%, blue 20% 30%, white)" , c omputed: "conic-gradient(blue 10% 20%, blue 30%, white)" },
61 { style: "conic-gradient(blue, blue, blue, white)" , c omputed: "conic-gradient(blue, blue, blue, white)" },
62
51 { style: "conic-gradient(at top left, black, white)" , computed: "conic- gradient(at left top, black, white)" }, 63 { style: "conic-gradient(at top left, black, white)" , computed: "conic- gradient(at left top, black, white)" },
52 { style: "conic-gradient(at bottom right, black, white)" , computed: "conic- gradient(at right bottom, black, white)" }, 64 { style: "conic-gradient(at bottom right, black, white)" , computed: "conic- gradient(at right bottom, black, white)" },
53 { style: "conic-gradient(at center, black, white)" , computed: "conic- gradient(at center center, black, white)" }, 65 { style: "conic-gradient(at center, black, white)" , computed: "conic- gradient(at center center, black, white)" },
54 { style: "conic-gradient(at center center, black, white)", computed: "conic- gradient(at center center, black, white)" }, 66 { style: "conic-gradient(at center center, black, white)", computed: "conic- gradient(at center center, black, white)" },
55 67
56 { style: "conic-gradient(from 0, black, white)" , computed: "co nic-gradient(from 0deg, black, white)" }, 68 { style: "conic-gradient(from 0, black, white)" , computed: "co nic-gradient(from 0deg, black, white)" },
57 { style: "conic-gradient(from 10deg, black, white)" , computed: "co nic-gradient(from 10deg, black, white)" }, 69 { style: "conic-gradient(from 10deg, black, white)" , computed: "co nic-gradient(from 10deg, black, white)" },
58 { style: "conic-gradient(from 10deg at center, black, white)", computed: "co nic-gradient(from 10deg at center center, black, white)" }, 70 { style: "conic-gradient(from 10deg at center, black, white)", computed: "co nic-gradient(from 10deg at center center, black, white)" },
59 71
60 { style: "conic-gradient(black 0%, 10%, green .5turn, 50%, white)", computed : "conic-gradient(black 0%, 10%, green 0.5turn, 50%, white)" }, 72 { style: "conic-gradient(black 0%, 10%, green .5turn, 50%, white)", computed : "conic-gradient(black 0%, 10%, green 0.5turn, 50%, white)" },
(...skipping 26 matching lines...) Expand all
87 }, "conic-gradient parsing"); 99 }, "conic-gradient parsing");
88 100
89 test(function() { 101 test(function() {
90 tests.forEach(function(test) { 102 tests.forEach(function(test) {
91 assert_computed_style('background-image', 'repeating-' + test.style, 103 assert_computed_style('background-image', 'repeating-' + test.style,
92 test.computed == 'none' ? test.computed : 'repeating-' + test.computed); 104 test.computed == 'none' ? test.computed : 'repeating-' + test.computed);
93 }); 105 });
94 }, "repeating-conic-gradient parsing"); 106 }, "repeating-conic-gradient parsing");
95 </script> 107 </script>
96 </body> 108 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/gradients/unprefixed-gradient-parsing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698