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

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

Issue 2375343002: CSS Motion Path: offset-shorthand requires path before distance rotation (Closed)
Patch Set: comment Created 4 years, 2 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/parser/CSSPropertyParser.h » ('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>
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 shorthand values are properly parsed
7
8 assert_valid_value("offset", "path('M 0 0 H 1') -200% auto");
9 assert_valid_value("offset", "path('M 0 0 H 1') reverse 30deg 50px", "path('M 0 0 H 1') 50px reverse 30deg");
10 assert_valid_value("offset", "path('M 0 0 H 1') auto", "path('M 0 0 H 1') 0px au to");
11 assert_valid_value("offset", "path('M 0 0 H 1') 30deg reverse", "path('M 0 0 H 1 ') 0px reverse 30deg");
12 assert_valid_value("offset", "path('M 0 0 H 1') -200%", "path('M 0 0 H 1') -200% auto");
13 assert_valid_value("offset", "path('M 0 0 H 1') 50px", "path('M 0 0 H 1') 50px a uto");
14 assert_valid_value("offset", "path('M 0 0 H 1')", "path('M 0 0 H 1') 0px auto");
15 assert_invalid_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");
16 assert_invalid_value("offset", "100px");
17 assert_invalid_value("offset", "100px none auto 90deg");
18 assert_invalid_value("offset", "auto");
19 assert_invalid_value("offset", "30deg");
20 assert_invalid_value("offset", "30deg path('M 20 30 A 60 70 80')");
21 assert_invalid_value("offset", "auto 30deg 90px");
22 assert_invalid_value("offset", "none /");
23 assert_invalid_value("offset", "none / 10px 20px 30deg");
alancutter (OOO until 2018) 2016/10/04 05:02:05 Add negative test that has valid value with extra
Eric Willigers 2016/10/04 05:20:31 Done.
24 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698