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

Unified Diff: third_party/WebKit/LayoutTests/css-parser/unitless-length-quirk.html

Issue 1475903002: Don't handle unitless length quirk in CSS parser fast path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: third_party/WebKit/LayoutTests/css-parser/unitless-length-quirk.html
diff --git a/third_party/WebKit/LayoutTests/css-parser/unitless-length-quirk.html b/third_party/WebKit/LayoutTests/css-parser/unitless-length-quirk.html
new file mode 100644
index 0000000000000000000000000000000000000000..bca45b81e3d175dccb1214ec66146f7973566239
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css-parser/unitless-length-quirk.html
@@ -0,0 +1,12 @@
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/property-parsing-test.js"></script>
+<script>
+// Intentionally testing in quirks mode
+assert_valid_value("paddingLeft", "20", "20px", true);
+assert_valid_value("top", "30", "30px", true);
+assert_valid_value("minWidth", "40", "40px", true);
+
+assert_invalid_value("outlineWidth", "50");
+assert_invalid_value("motionOffset", "60");
+</script>

Powered by Google App Engine
This is Rietveld 408576698