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

Side by Side Diff: third_party/WebKit/LayoutTests/css-parser/offset-path-parsing.html

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: size contain? Created 3 years, 7 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script src="resources/property-parsing-test.js"></script>
5 <script>
6 // Verifies that offset-path property and its value are properly parsed
7
8 assert_valid_value("offset-path", "path('M 0 0 L 100 100 M 100 200 L 200 200 Z L 300 300 Z')");
9 assert_valid_value("offset-path", "none");
10 assert_valid_value("offset-path", "path('')", "none");
11 assert_invalid_value("offset-path", "path('M 20 30 A 60 70 80')");
12
13 assert_valid_value("offset-path", "ray(45deg closest-side)");
14 assert_valid_value("offset-path", "ray(sides -1turn)", "ray(-1turn sides)");
15 assert_valid_value("offset-path", "ray(400grad farthest-corner contain)");
fs 2017/05/15 09:18:14 Maybe add a test with calc(...) for the <angle>.
Eric Willigers 2017/05/15 10:52:23 Done.
16 assert_invalid_value("offset-path", "ray(0deg)");
17 assert_invalid_value("offset-path", "ray(closest-side)");
18 assert_invalid_value("offset-path", "ray(closest-side 0deg closest-side)");
19 assert_invalid_value("offset-path", "ray(0deg closest-side 0deg)");
20 assert_invalid_value("offset-path", "ray(contain 0deg closest-side contain)");
21 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/BUILD.gn » ('j') | third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698