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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/parsing/translate-parsing-valid.html

Issue 2882153004: CSS Transforms 2: Web Platform Tests for translate,rotate,scale parsing (Closed)
Patch Set: parsing subdirectory 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 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>CSS Transform Module Level 2: parsing translate with valid values</title>
6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.or g">
7 <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-transl ate">
8 <meta name="assert" content="translate supports the full grammar 'none | <length -percentage> [ <length-percentage> <length>? ]?'.">
9 <script src="/resources/testharness.js"></script>
10 <script src="/resources/testharnessreport.js"></script>
11 <script src="resources/parsing-testcommon.js"></script>
12 </head>
13 <body>
14 <script>
15 test_valid_value("translate", "none");
16
17 test_valid_value("translate", "0px");
18 test_valid_value("translate", "100%");
19
20 test_valid_value("translate", "100px 200%");
21 test_valid_value("translate", "100% 200px");
22
23 test_valid_value("translate", "100px 200px 300px");
24 test_valid_value("translate", "100% 200% 300px");
25
26 test_valid_value("translate", "calc(10px + 10%) calc(20px + 20%) calc(30px + 30e m)");
27
28 test_valid_value("translate", "0", "0px");
29 test_valid_value("translate", "1px 2px 0", "1px 2px 0px");
30 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698