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

Unified Diff: third_party/WebKit/LayoutTests/css-parser/offset-parsing.html

Issue 2368013002: [WIP] CSS Motion Path: offset shorthand ready for position and anchor
Patch Set: code review feedback Created 4 years, 3 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/css3/motion-path/offset.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css-parser/offset-parsing.html
diff --git a/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html b/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html
new file mode 100644
index 0000000000000000000000000000000000000000..ed84d524d52f3709a880d86d204c707fdad23140
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css-parser/offset-parsing.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/property-parsing-test.js"></script>
+<script>
+// Verifies that offset shorthand values are properly parsed
+
+assert_valid_value("offset", "path('M 0 0 H 1') -200% auto");
+assert_valid_value("offset", "center center path('M 0 0 L 100 100 M 100 200 L 200 200 Z L 300 300 Z') 100% 90deg/left bottom");
+assert_invalid_value("offset", "auto");
+assert_invalid_value("offset", "30deg");
+assert_invalid_value("offset", "30deg path('M 20 30 A 60 70 80')");
+assert_invalid_value("offset", "auto 30deg 90px");
+assert_invalid_value("offset", "none /");
+assert_invalid_value("offset", "none / 10px 20px 30deg");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/motion-path/offset.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698