Index: third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-box-3.html |
diff --git a/third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-box-3.html b/third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-box-3.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27e66ff5ad8634a942ce254153a08e501e356196 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-box-3.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<style> |
+.clipped { |
+ width: 100px; |
+ height: 200px; |
+ background-color: green; |
+ -webkit-clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%); |
+ clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%); |
+} |
+.abs { |
+ position: absolute; |
+ width: 200px; |
+ height: 200px; |
+} |
+</style> |
+<div class="abs"> |
+ <div class="clipped" style="position: absolute; overflow: hidden"> |
+ <div class="abs" style="transform: translate(0px, 100px); background-color: red;"></div> |
+ </div> |
+</div> |