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

Unified Diff: LayoutTests/css3/motion-path/origin.html

Issue 1220793011: CSS Motion Path: Centre transform-origin on the path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: current-transformation-matrix 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/css3/motion-path/origin.html
diff --git a/LayoutTests/css3/motion-path/origin.html b/LayoutTests/css3/motion-path/origin.html
new file mode 100644
index 0000000000000000000000000000000000000000..bc30e3ba78f50a7303e95b380e23e4006bfcb5f9
--- /dev/null
+++ b/LayoutTests/css3/motion-path/origin.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+
+ .box {
+ position: absolute;
+ background-color: lime;
+ width: 70px;
+ height: 40px;
+ line-height: 40px;
+ transform-origin: 20% 40%;
+ motion-offset: 50%;
+ motion-path: path('M 500 0 L 200 300');
+ }
+
+</style>
+</head>
+<body>
+ <div class="box">@</div>
+ <svg width="700" height="300" viewBox="0 0 700 300">
+ <path stroke="green" d="M 500 0 L 200 300" />
+ </svg>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698