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

Side by Side Diff: third_party/WebKit/LayoutTests/css-parser/scientific-notation.html

Issue 2115923002: Improve numeric value handling in CSS Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: V2 Created 4 years, 4 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/css/large-value-csstext-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 <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="resources/property-parsing-test.js"></script> 4 <script src="resources/property-parsing-test.js"></script>
5 <script> 5 <script>
6 assert_valid_value("opacity", "2e2", "200"); 6 assert_valid_value("opacity", "2e2", "200");
7 assert_valid_value("opacity", "2E2", "200"); 7 assert_valid_value("opacity", "2E2", "200");
8 assert_valid_value("opacity", "2e+2", "200"); 8 assert_valid_value("opacity", "2e+2", "200");
9 assert_valid_value("opacity", "2E+2", "200"); 9 assert_valid_value("opacity", "2E+2", "200");
10 assert_valid_value("opacity", "2e-2", "0.02"); 10 assert_valid_value("opacity", "2e-2", "0.02");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 assert_valid_value("width", "1e-10em", "1e-10em"); 47 assert_valid_value("width", "1e-10em", "1e-10em");
48 assert_valid_value("width", "1e0%", "1%"); 48 assert_valid_value("width", "1e0%", "1%");
49 assert_valid_value("width", "1e+0%", "1%"); 49 assert_valid_value("width", "1e+0%", "1%");
50 assert_valid_value("width", "1e-0%", "1%"); 50 assert_valid_value("width", "1e-0%", "1%");
51 assert_valid_value("width", "1e10%", "1e+10%"); 51 assert_valid_value("width", "1e10%", "1e+10%");
52 assert_valid_value("width", "1e+10%", "1e+10%"); 52 assert_valid_value("width", "1e+10%", "1e+10%");
53 assert_valid_value("width", "1e-10%", "1e-10%"); 53 assert_valid_value("width", "1e-10%", "1e-10%");
54 // Large exponents (not representable). This is not necessarily the correct valu e. 54 // Large exponents (not representable). This is not necessarily the correct valu e.
55 assert_valid_value("opacity", "1e-600", "0"); 55 assert_valid_value("opacity", "1e-600", "0");
56 assert_valid_value("width", "1e-600px", "0px"); 56 assert_valid_value("width", "1e-600px", "0px");
57 assert_valid_value("width", "1e600px", "3.40282e+38px");
58 assert_valid_value("opacity", "1e600", "3.40282e+38");
59 assert_valid_value("transform", "translateX(1e600px)", "translateX(3.40282e+38px )");
57 60
58 assert_invalid_value("width", "1e+px"); 61 assert_invalid_value("width", "1e+px");
59 assert_invalid_value("width", "1e-px"); 62 assert_invalid_value("width", "1e-px");
60 assert_invalid_value("width", "1e1.0px"); 63 assert_invalid_value("width", "1e1.0px");
61 assert_invalid_value("width", "1e10.0px"); 64 assert_invalid_value("width", "1e10.0px");
62 assert_invalid_value("width", "1e1.0em"); 65 assert_invalid_value("width", "1e1.0em");
63 assert_invalid_value("width", "1e10.0em"); 66 assert_invalid_value("width", "1e10.0em");
64 assert_invalid_value("width", "1e600px");
65 assert_invalid_value("opacity", "1e600");
66 assert_invalid_value("transform", "translateX(1e600px)");
67 </script> 67 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/large-value-csstext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698