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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/clip-path/clip-path-visible-element-as-visible-shape-element.html

Issue 2375043002: Fix up that no render SVG shape when change clip-path to visible after hidden. (Closed)
Patch Set: Issue 590153 Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <style>
3 .hidden {
4 visibility: hidden;
5 }
6 </style>
7 <script>
8 if (window.testRunner)
9 testRunner.waitUntilDone();
10 window.onload = function () {
11 var classList = document.querySelector("#container").classList;
12 setTimeout(function() {
fs 2016/10/31 09:59:22 It looks like it'd be better to use the runAfterLa
hyunjunekim2 2016/10/31 13:18:30 Done.
13 classList.toggle("hidden");
14 setTimeout(function() {
15 classList.toggle("hidden");
16 if (window.testRunner)
17 testRunner.notifyDone();
18 }, 1);
19 }, 1);
20 }
21 </script>
22 <div id="container">
23 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xl ink" version="1.1" width="400" height="300">
fs 2016/10/31 09:59:22 You don't need to open/declare namespaces or speci
hyunjunekim2 2016/10/31 13:18:30 Done.
24 <clipPath id="clip">
25 <rect width="400" height="400"></rect>
26 </clipPath>
27 <rect width="100" height="100" fill="green" visibility="visible" clip-path=" url(#clip)"></rect>
fs 2016/10/31 09:59:22 I think it'd make more sense to have this <rect> b
hyunjunekim2 2016/10/31 13:18:30 Done.
28 </svg>
29 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698