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

Side by Side Diff: LayoutTests/svg/custom/use-dynamic-attribute-setting.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 two green squares below:<br>
5 <svg width="300" height="300">
6 <defs>
7 <svg id="svg" width="10" height="10">
8 <rect width="100%" height="100%" fill="green"/>
9 </svg>
10 </defs>
11 <use id="use1" xlink:href="#svg" x="0" y="0" width="100" height="100"/>
12 <use id="use2" xlink:href="#svg" x="100" y="100" width="10" height="10"/>
13 </svg>
14 <script>
15 onload = function() {
16 // Wait until first layout is finished.
17 window.requestAnimationFrame(function() {
18 document.getElementById('use2').setAttribute('width', '100');
19 document.getElementById('use2').setAttribute('height', '100');
20 });
21 }
22 </script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698