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

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: DCHECK_EQ 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
pdr. 2017/05/15 22:37:26 Should this be a web platform test that we can sha
Eric Willigers 2017/05/15 23:42:53 Yes. I will next move all the motion path parsing
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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698