Index: third_party/WebKit/LayoutTests/svg/clip-path/clip-path-visible-element-as-visible-shape-element.html |
diff --git a/third_party/WebKit/LayoutTests/svg/clip-path/clip-path-visible-element-as-visible-shape-element.html b/third_party/WebKit/LayoutTests/svg/clip-path/clip-path-visible-element-as-visible-shape-element.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9c8fdc73812c8fa429853f70f0e1bd7f590b6ed8 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/clip-path/clip-path-visible-element-as-visible-shape-element.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE HTML> |
+<script src=../../resources/run-after-layout-and-paint.js></script> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+window.onload = function () { |
+ runAfterLayoutAndPaint(function() { |
+ container.style.visibility = "visible"; |
+ runAfterLayoutAndPaint(function() { |
+ container.style.visibility = "hidden"; |
+ runAfterLayoutAndPaint(function() { |
+ container.style.visibility = "visible"; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
+ }); |
+ }); |
+} |
+</script> |
+<div id="container" style="visibility: hidden"> |
+ <svg> |
+ <clipPath id="clip"> |
+ <rect width="100" height="100"></rect> |
+ </clipPath> |
+ <rect width="400" height="400" fill="green" visibility="visible" clip-path="url(#clip)"></rect> |
+ </svg> |
+</div> |