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

Unified Diff: LayoutTests/transforms/combine-transforms-properties-motion-path.html

Issue 1158603003: CSS Independent Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add combined tests with motion-path and transform Created 5 years, 6 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: LayoutTests/transforms/combine-transforms-properties-motion-path.html
diff --git a/LayoutTests/transforms/combine-transforms-properties-motion-path.html b/LayoutTests/transforms/combine-transforms-properties-motion-path.html
new file mode 100644
index 0000000000000000000000000000000000000000..61ce9b65f46a15b27395c06863ef00567afd40a9
--- /dev/null
+++ b/LayoutTests/transforms/combine-transforms-properties-motion-path.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+div {
+ width: 100px;
+ height: 100px;
+ position: absolute;
+ transform-origin: 50% 50%;
+}
+
+<!-- Note the order of the scaling operation affects the path coordinates -->
+#target {
+ background-color: red;
+ translate: 200px 10px;
+ rotate: 90deg;
+ scale: 1 2;
+ motion: path("m 0 0 v -20 h 20") 0rad 100%;
+}
+#actual {
+ background-color: green;
+ transform: translate(240px, 30px) rotate(90deg) scale(1, 2);
+}
+</style>
+</head>
+
+<body>
+<p>There should be no red color boxes</p>
+<div id="target"></div>
+<div id="actual"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698