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

Side by Side Diff: LayoutTests/svg/css/parse-length.html

Issue 955033002: [svg2] Make 'rx' and 'ry' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add tests Created 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <style> 3 <style>
4 * { font-size: 16px; } 4 * { font-size: 16px; }
5 svg, rect { font-family: 'Ahem'; } 5 svg, rect { font-family: 'Ahem'; }
6 div { font-size: 8px; } 6 div { font-size: 8px; }
7 </style> 7 </style>
8 <html> 8 <html>
9 <svg id="svg" width="0" height="0"></svg> 9 <svg id="svg" width="0" height="0"></svg>
10 <script src="../../resources/js-test.js"></script> 10 <script src="../../resources/js-test.js"></script>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 negativeTestZero("x", "100px;"); 56 negativeTestZero("x", "100px;");
57 negativeTestZero("x", "100px !important"); 57 negativeTestZero("x", "100px !important");
58 negativeTestZero("x", "{ 100px }"); 58 negativeTestZero("x", "{ 100px }");
59 59
60 // Negative tests for 'y'. 60 // Negative tests for 'y'.
61 negativeTestZero("y", "auto"); 61 negativeTestZero("y", "auto");
62 negativeTestZero("y", "100 px"); 62 negativeTestZero("y", "100 px");
63 negativeTestZero("y", "100px;"); 63 negativeTestZero("y", "100px;");
64 negativeTestZero("y", "100px !important"); 64 negativeTestZero("y", "100px !important");
65 negativeTestZero("y", "{ 100px }"); 65 negativeTestZero("y", "{ 100px }");
66
67 // Test 'rx'.
68 testComputed("rx", " 100", "100px");
69 testComputed("rx", "100 ", "100px");
70 testComputed("rx", "100px", "100px");
71 testComputed("rx", "1em", "16px");
72 // testComputed("rx", "1ex", "12.8000001907349px"); // enable this again once ht tp://crbug.com/441840 is fixed
73 testComputed("rx", "20%", "20%");
74 testComputed("rx", "-200px", "-200px");
75
76 // Test 'ry'.
77 testComputed("ry", " 100", "100px");
78 testComputed("ry", "100 ", "100px");
79 testComputed("ry", "100px", "100px");
80 testComputed("ry", "1em", "16px");
81 // testComputed("ry", "1ex", "12.8000001907349px"); // enable this again once ht tp://crbug.com/441840 is fixed
82 testComputed("ry", "20%", "20%");
83 testComputed("ry", "-200px", "-200px");
84
85 // Negative tests for 'rx'.
86 negativeTestZero("rx", "auto", "auto");
87 negativeTestZero("rx", "100 px");
88 negativeTestZero("rx", "100px;");
89 negativeTestZero("rx", "100px !important");
90 negativeTestZero("rx", "{ 100px }");
91
92 // Negative tests for 'ry'.
93 negativeTestZero("ry", "auto");
94 negativeTestZero("ry", "100 px");
95 negativeTestZero("ry", "100px;");
96 negativeTestZero("ry", "100px !important");
97 negativeTestZero("ry", "{ 100px }");
66 </script> 98 </script>
67 </body> 99 </body>
68 </html> 100 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/css/parse-length-expected.txt » ('j') | LayoutTests/transitions/svg-layout-transition.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698