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

Side by Side Diff: LayoutTests/svg/custom/use-attribute-invalidations.html

Issue 252903004: Avoid using SVGElementInstance in calcViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase one more time Created 6 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 This test passes if there are three green squares below:<br>
5 <svg width="300" height="300">
6 <defs>
7 <symbol id="symbol" width="100">
8 <rect width="100%" height="100%" fill="green"/>
9 </symbol>
10 </defs>
11 <svg x="0" y="0" width="100" height="100">
12 <use id="use1" xlink:href="#symbol"/>
13 </svg>
14 <use id="use2" xlink:href="#symbol" x="100" y="100" width="10" height="100"/>
15 <use id="use3" xlink:href="#symbol" x="200" y="200" width="100" height="10"/>
16 </svg>
17 <script>
18 onload = function() {
19 // Wait until first layout is finished.
20 window.requestAnimationFrame(function() {
21 document.getElementById('use2').removeAttribute('width');
22 document.getElementById('use3').setAttribute('height', '100');
23 });
24 }
25 </script>
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698