Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-box-3.html

Issue 2273733002: Use border-box as the reference box for (-webkit-)clip-path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New baselines Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698