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

Unified Diff: third_party/WebKit/LayoutTests/svg/clip-path/display-none-children.html

Issue 1840343002: Do not show display:none clipPath targets when referenced with <use> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/clip-path/display-none-children-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/clip-path/display-none-children.html
diff --git a/third_party/WebKit/LayoutTests/svg/clip-path/display-none-children.html b/third_party/WebKit/LayoutTests/svg/clip-path/display-none-children.html
new file mode 100644
index 0000000000000000000000000000000000000000..3e29d8089243683bbd57808af616ab6a84c8f689
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/clip-path/display-none-children.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML>
+<svg width="400" height="400">
+ <defs>
+ <rect id="clip1Shape" x="0" y="0" width="50" height="100"/>
+ <rect id="clip2Shape" x="50" y="0" width="50" height="100"/>
+ <!-- Should not contribute to the clip. -->
+ <rect id="clip3Shape" style="display:none" x="100" y="0" width="50" height="100"/>
+ <clipPath id="clipUnion">
+ <use xlink:href="#clip1Shape"/>
+ <use xlink:href="#clip2Shape"/>
+ <use xlink:href="#clip3Shape"/>
+ <!-- Should not contribute to the clip. -->
+ <rect style="display:none" x="150" y="0" width="50" height="100"/>
+ </clipPath>
+ </defs>
+ <rect width="300" height="100" clip-path="url(#clipUnion)" fill="green"/>
+</svg>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/clip-path/display-none-children-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698