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

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

Issue 1706573002: Move background related longhands into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix logic error Created 4 years, 10 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/css3-gradient-parsing-expected.txt » ('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 <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 7
8 8
9 9
10 <script type="text/javascript"> 10 <script type="text/javascript">
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 shouldBe('testGradient("background-image: -webkit-linear-gradient(top left, blac k 0%, white)", "background-image")', '"-webkit-linear-gradient(left top, black 0 %, white)"'); 46 shouldBe('testGradient("background-image: -webkit-linear-gradient(top left, blac k 0%, white)", "background-image")', '"-webkit-linear-gradient(left top, black 0 %, white)"');
47 shouldBe('testGradient("background-image: -webkit-linear-gradient(top, black 0%, white)", "background-image")', '"-webkit-linear-gradient(top, black 0%, white)" '); 47 shouldBe('testGradient("background-image: -webkit-linear-gradient(top, black 0%, white)", "background-image")', '"-webkit-linear-gradient(top, black 0%, white)" ');
48 shouldBe('testGradient("background-image: -webkit-linear-gradient(10deg, black 0 %, white)", "background-image")', '"-webkit-linear-gradient(10deg, black 0%, whi te)"'); 48 shouldBe('testGradient("background-image: -webkit-linear-gradient(10deg, black 0 %, white)", "background-image")', '"-webkit-linear-gradient(10deg, black 0%, whi te)"');
49 49
50 debug('<p>-webkit-repeating-linear-gradient</p>'); 50 debug('<p>-webkit-repeating-linear-gradient</p>');
51 shouldBe('testGradient("background-image: -webkit-repeating-linear-gradient(blac k, white)", "background-image")', '"-webkit-repeating-linear-gradient(top, black , white)"'); 51 shouldBe('testGradient("background-image: -webkit-repeating-linear-gradient(blac k, white)", "background-image")', '"-webkit-repeating-linear-gradient(top, black , white)"');
52 52
53 debug('<p>-webkit-radial-gradient</p>'); 53 debug('<p>-webkit-radial-gradient</p>');
54 54
55 shouldBe('testGradient("background-image: -webkit-radial-gradient(white, black)" , "background-image")', '"-webkit-radial-gradient(center, white, black)"'); 55 shouldBe('testGradient("background-image: -webkit-radial-gradient(white, black)" , "background-image")', '"-webkit-radial-gradient(center, white, black)"');
56 shouldBe('testGradient("background-image: -webkit-radial-gradient(bottom right, white, black)", "background-image")', '"-webkit-radial-gradient(100% 100%, white , black)"'); 56 shouldBe('testGradient("background-image: -webkit-radial-gradient(bottom right, white, black)", "background-image")', '"-webkit-radial-gradient(right bottom, wh ite, black)"');
57 shouldBe('testGradient("background-image: -webkit-radial-gradient(cover, white, black)", "background-image")', '"-webkit-radial-gradient(center, ellipse cover, white, black)"'); 57 shouldBe('testGradient("background-image: -webkit-radial-gradient(cover, white, black)", "background-image")', '"-webkit-radial-gradient(center, ellipse cover, white, black)"');
58 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle, white, black)", "background-image")', '"-webkit-radial-gradient(center, circle cover, white, black)"'); 58 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle, white, black)", "background-image")', '"-webkit-radial-gradient(center, circle cover, white, black)"');
59 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle contain , white, black)", "background-image")', '"-webkit-radial-gradient(center, circle contain, white, black)"'); 59 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle contain , white, black)", "background-image")', '"-webkit-radial-gradient(center, circle contain, white, black)"');
60 shouldBe('testGradient("background-image: -webkit-radial-gradient(top, circle co ntain, white, black)", "background-image")', '"-webkit-radial-gradient(50% 0%, c ircle contain, white, black)"'); 60 shouldBe('testGradient("background-image: -webkit-radial-gradient(top, circle co ntain, white, black)", "background-image")', '"-webkit-radial-gradient(center to p, circle contain, white, black)"');
61 shouldBe('testGradient("background-image: -webkit-radial-gradient(top left, circ le contain, white, black)", "background-image")', '"-webkit-radial-gradient(0% 0 %, circle contain, white, black)"'); 61 shouldBe('testGradient("background-image: -webkit-radial-gradient(top left, circ le contain, white, black)", "background-image")', '"-webkit-radial-gradient(left top, circle contain, white, black)"');
62 shouldBe('testGradient("background-image: -webkit-radial-gradient(10px 20%, circ le contain, white, black)", "background-image")', '"-webkit-radial-gradient(10px 20%, circle contain, white, black)"'); 62 shouldBe('testGradient("background-image: -webkit-radial-gradient(10px 20%, circ le contain, white, black)", "background-image")', '"-webkit-radial-gradient(10px 20%, circle contain, white, black)"');
63 shouldBe('testGradient("background-image: -webkit-radial-gradient(10px, 20%, cir cle contain, white, black)", "background-image")', '"none"'); 63 shouldBe('testGradient("background-image: -webkit-radial-gradient(10px, 20%, cir cle contain, white, black)", "background-image")', '"none"');
64 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle 10px 20 %, circle contain, white, black)", "background-image")', '"none"'); 64 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle 10px 20 %, circle contain, white, black)", "background-image")', '"none"');
65 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle 10px, c ircle contain, white, black)", "background-image")', '"none"'); 65 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle 10px, c ircle contain, white, black)", "background-image")', '"none"');
66 shouldBe('testGradient("background-image: -webkit-radial-gradient(center, 10px, white, black)", "background-image")', '"none"'); 66 shouldBe('testGradient("background-image: -webkit-radial-gradient(center, 10px, white, black)", "background-image")', '"none"');
67 shouldBe('testGradient("background-image: -webkit-radial-gradient(center, 10px 1 0px, white, black)", "background-image")', '"-webkit-radial-gradient(50% 50%, 10 px 10px, white, black)"'); 67 shouldBe('testGradient("background-image: -webkit-radial-gradient(center, 10px 1 0px, white, black)", "background-image")', '"-webkit-radial-gradient(center cent er, 10px 10px, white, black)"');
68 shouldBe('testGradient("background-image: -webkit-radial-gradient(ellipse farthe st-corner, white, black)", "background-image")', '"-webkit-radial-gradient(cente r, ellipse farthest-corner, white, black)"'); 68 shouldBe('testGradient("background-image: -webkit-radial-gradient(ellipse farthe st-corner, white, black)", "background-image")', '"-webkit-radial-gradient(cente r, ellipse farthest-corner, white, black)"');
69 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle closest -side, white, black)", "background-image")', '"-webkit-radial-gradient(center, c ircle closest-side, white, black)"'); 69 shouldBe('testGradient("background-image: -webkit-radial-gradient(circle closest -side, white, black)", "background-image")', '"-webkit-radial-gradient(center, c ircle closest-side, white, black)"');
70 70
71 debug('<p>-webkit-repeating-radial-gradient</p>'); 71 debug('<p>-webkit-repeating-radial-gradient</p>');
72 shouldBe('testGradient("background-image: -webkit-repeating-radial-gradient(whit e, black)", "background-image")', '"-webkit-repeating-radial-gradient(center, wh ite, black)"'); 72 shouldBe('testGradient("background-image: -webkit-repeating-radial-gradient(whit e, black)", "background-image")', '"-webkit-repeating-radial-gradient(center, wh ite, black)"');
73 73
74 </script> 74 </script>
75 75
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/gradients/css3-gradient-parsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698