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

Unified Diff: LayoutTests/svg/clip-path/transformed-clip-in-transformed-clip.html

Issue 1174393003: Unify content transformation calculations for SVG clip paths (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/svg/clip-path/transformed-clip-in-transformed-clip.html
diff --git a/LayoutTests/svg/clip-path/transformed-clip-in-transformed-clip.html b/LayoutTests/svg/clip-path/transformed-clip-in-transformed-clip.html
new file mode 100644
index 0000000000000000000000000000000000000000..c39f87c3d1f97c9fee7c304288b5c4e3f234b64e
--- /dev/null
+++ b/LayoutTests/svg/clip-path/transformed-clip-in-transformed-clip.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<style>
+ * {
fs 2015/06/16 09:30:15 Why do we need/want this?
+ overflow: hidden;
+ margin: 0;
+ }
+</style>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300">
fs 2015/06/16 09:30:14 Whole lotta namespace declarations... (that isn't
+ <defs>
+ <clipPath id="clipAwayTop" clipPathUnits="userSpaceOnUse" transform="scale(10) translate(0, 10)">
+ <rect width="20" height="10"/>
+ </clipPath>
+ <clipPath id="clipAwayLeftAndTop" clipPathUnits="userSpaceOnUse" transform="scale(10) translate(10, 0)" clip-path="url(#clipAwayTop)">
+ <!-- Just clip the left, clipAwayTop will handle the rest. -->
+ <rect width="10" height="20"/>
+ </clipPath>
+ </defs>
+ <rect width="200" height="200" fill="green" clip-path="url(#clipAwayLeftAndTop)"/>
+</svg>
+<br>
+This test passes if there is a 100x100 green square at 100x100.

Powered by Google App Engine
This is Rietveld 408576698