Index: ManualTests/clip-path-mutated.html |
diff --git a/ManualTests/clip-path-mutated.html b/ManualTests/clip-path-mutated.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3b3611d02ea3d1d2e870d7bc6cecca21c0b37f15 |
--- /dev/null |
+++ b/ManualTests/clip-path-mutated.html |
@@ -0,0 +1,33 @@ |
+<!DOCTYPE html> |
+<style> |
+.error { |
+ width: 100px; |
+ height: 100px; |
+ background-color: red; |
+ position: absolute; |
+} |
+.clipped { |
+ width: 100px; |
+ height: 100px; |
+ background-color: green; |
+ -webkit-clip-path: url(#svgPath); |
+ clip-path: url(#svgPath); |
+} |
+</style> |
+<div class="error"></div> |
+<div class="clipped"></div> |
+<p>There should be a green rectangle above, and no red visible.</p> |
+<svg height="0" width="0"> |
+ <defs> |
+ <clipPath id="svgPath" clipPathUnits="objectBoundingBox"> |
+ <circle cx="0.5" cy="0.5" r="0.25"></circle> |
+ </clipPath> |
+ </defs> |
+</svg> |
+<script> |
+requestAnimationFrame(function() { |
+ setTimeout(function() { |
+ document.querySelector('circle').setAttribute('r', 1); |
+ }, 0); |
+}); |
+</script> |
f(malita)
2014/07/29 01:21:16
I'd like to see at least a couple of dynamic tests
Shanmuga Pandi
2014/08/01 05:20:39
Done.
|