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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/object-current-scale.html

Issue 1827793003: Support currentScale for embedded SVG (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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.waitUntilDone();
5
6 function setScale() {
7 var obj = document.getElementById("object");
fs 2016/03/29 11:58:51 Could use querySelector and avoid the id=...
Shanmuga Pandi 2016/03/31 09:04:37 Done.
8 var svgdoc = obj.contentDocument;
9 var svgroot = svgdoc.documentElement;
10 svgroot.currentScale = 0.5;
11 if (window.testRunner)
12 setTimeout(function() { testRunner.notifyDone(); }, 0);
fs 2016/03/29 11:58:51 Could you use runAfterLayoutAndPaint here instead?
Shanmuga Pandi 2016/03/31 09:04:37 Done.
13 }
14 </script>
15
16 <body>
17 <object id="object" onload="setScale()" data="resources/green-rect.svg" type ="image/svg+xml"/>
fs 2016/03/29 11:58:51 I'd suggest that you add a "reference" (another gr
Shanmuga Pandi 2016/03/31 09:04:37 Done.
18 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698