Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |