Chromium Code Reviews| 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. |