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

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

Issue 2882153004: CSS Transforms 2: Web Platform Tests for translate,rotate,scale parsing (Closed)
Patch Set: resources 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/translate-parsing-valid.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/translate-parsing-valid.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/translate-parsing-valid.html
new file mode 100644
index 0000000000000000000000000000000000000000..af7ce89fe3c8c2b52216d5cb043ad79f73c06b87
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-transforms-2/translate-parsing-valid.html
@@ -0,0 +1,29 @@
+<!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@google.com">
+<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-translate">
+<meta name="assert" content="translate value: none | <length-percentage> [ <length-percentage> <length>? ]?">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/testcommon.js"></script>
+</head>
+<body>
+<script>
+assert_valid_value("translate", "none");
+
+assert_valid_value("translate", "0px");
+assert_valid_value("translate", "100%");
+
+assert_valid_value("translate", "100px 200%");
+assert_valid_value("translate", "100% 200px");
+
+assert_valid_value("translate", "100px 200px 300px");
+assert_valid_value("translate", "100% 200% 300px");
+
+assert_valid_value("translate", "calc(10px + 10%) calc(20px + 20%) calc(30px + 30em)");
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698