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

Unified 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, 5 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css-parser/scientific-notation.html
diff --git a/third_party/WebKit/LayoutTests/css-parser/scientific-notation.html b/third_party/WebKit/LayoutTests/css-parser/scientific-notation.html
index df97c4e1f7f87c68d9386833b7d608734305f8a1..861a33fc73b93476ca888b064337d10c0925de56 100644
--- a/third_party/WebKit/LayoutTests/css-parser/scientific-notation.html
+++ b/third_party/WebKit/LayoutTests/css-parser/scientific-notation.html
@@ -54,6 +54,9 @@ assert_valid_value("width", "1e-10%", "1e-10%");
// Large exponents (not representable). This is not necessarily the correct value.
assert_valid_value("opacity", "1e-600", "0");
assert_valid_value("width", "1e-600px", "0px");
+assert_valid_value("width", "1e600px", "3.40282e+38px");
+assert_valid_value("opacity", "1e600", "3.40282e+38");
+assert_valid_value("transform", "translateX(1e600px)", "translateX(3.40282e+38px)");
assert_invalid_value("width", "1e+px");
assert_invalid_value("width", "1e-px");
@@ -61,7 +64,4 @@ assert_invalid_value("width", "1e1.0px");
assert_invalid_value("width", "1e10.0px");
assert_invalid_value("width", "1e1.0em");
assert_invalid_value("width", "1e10.0em");
-assert_invalid_value("width", "1e600px");
-assert_invalid_value("opacity", "1e600");
-assert_invalid_value("transform", "translateX(1e600px)");
</script>
« 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