Index: LayoutTests/css3/clippath/clippath-animated.html |
diff --git a/LayoutTests/css3/clippath/clippath-animated.html b/LayoutTests/css3/clippath/clippath-animated.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..33cd3a007ce88f7f4e834ad0e19368cf2da0ccc4 |
--- /dev/null |
+++ b/LayoutTests/css3/clippath/clippath-animated.html |
@@ -0,0 +1,47 @@ |
+<html> |
esprehn
2014/08/06 17:25:09
All your tests need a doctype.
|
+<head> |
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script> |
+window.testIsAsync = true; |
+ |
+function finishTest() { |
+ finishRepaintTest(); |
+} |
+ |
+function repaintTest() |
+{ |
+ var svg = document.getElementById("svgElement"); |
+ svg.setCurrentTime(0.3); |
+ setTimeout(finishTest, 0); |
+} |
+</script> |
+<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> |
+</head> |
+<body onload="runRepaintAndPixelTest()"> |
+<div class="error"></div> |
+<div class="clipped"></div> |
+<svg id="svgElement" height="0" width="0"> |
+ <defs> |
+ <clipPath id="svgPath" clipPathUnits="objectBoundingBox"> |
+ <circle cx="0.5" cy="0.5" r="0.5"> |
+ <animate attributeName="r" attributeType="XML" from="0.5" to="1" begin="0s" dur="0.5s" fill="freeze"/> |
+ </circle> |
+ </clipPath> |
+ </defs> |
+</svg> |
+</body> |
+</html> |