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

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: CSS values in BasicShapeFunctions not StyleRay 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)");
16 assert_valid_value("offset-path", "ray(calc(180deg - 45deg) farthest-side)", "ra y(calc(135deg) farthest-side)");
17 assert_invalid_value("offset-path", "ray(0deg)");
18 assert_invalid_value("offset-path", "ray(closest-side)");
19 assert_invalid_value("offset-path", "ray(closest-side 0deg closest-side)");
20 assert_invalid_value("offset-path", "ray(0deg closest-side 0deg)");
21 assert_invalid_value("offset-path", "ray(contain 0deg closest-side contain)");
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698