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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/parsing/translate-parsing-valid.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/parsing/translate-parsing-valid.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/parsing/translate-parsing-valid.html
new file mode 100644
index 0000000000000000000000000000000000000000..beab0debf2e52e4388bf91fe90081f553457db80
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/parsing/translate-parsing-valid.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Transform Module Level 2: parsing translate with valid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-translate">
+<meta name="assert" content="translate supports the full grammar 'none | <length-percentage> [ <length-percentage> <length>? ]?'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value("translate", "none");
+
+test_valid_value("translate", "0px");
+test_valid_value("translate", "100%");
+
+test_valid_value("translate", "100px 200%");
+test_valid_value("translate", "100% 200px");
+
+test_valid_value("translate", "100px 200px 300px");
+test_valid_value("translate", "100% 200% 300px");
+
+test_valid_value("translate", "calc(10px + 10%) calc(20px + 20%) calc(30px + 30em)");
+
+test_valid_value("translate", "0", "0px");
+test_valid_value("translate", "1px 2px 0", "1px 2px 0px");
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698