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

Side by Side Diff: LayoutTests/svg/custom/image-reinsert.html

Issue 191933003: [SVG] Missing image loader update on re-insert. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/custom/image-reinsert-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <svg id="svg" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmln s:xlink="http://www.w3.org/1999/xlink">
5 <rect width="100" height="100" fill="red"/>
6 </svg>
7
8 <script>
9 var img = document.createElementNS('http://www.w3.org/2000/svg', 'image');
10 img.setAttribute('width', '100');
11 img.setAttribute('height', '100');
12 img.setAttributeNS('http://www.w3.org/1999/xlink', 'href', 'data:image/svg+x ml,' +
13 '<svg xmlns="http://www.w3.org/2000/svg">' +
14 ' <rect width="100" height="100" fill="green"/>' +
15 '</svg>');
16
17 var inactive_doc = document.implementation.createDocument ('http://www.w3.or g/1999/xhtml', 'html', null);
18 // First, insert into an inactive doc.
19 inactive_doc.documentElement.appendChild(img);
20 // Then re-insert into the current doc.
21 document.getElementById('svg').appendChild(img);
22 </script>
23 </body>
24 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/custom/image-reinsert-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698