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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/shadow-dom-resource-reference-2.html

Issue 2633143002: SVG objects with same idrefs conflict when under different shadow root (Closed)
Patch Set: ensureSVGTreeScopedResources(); add comment Created 3 years, 11 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 <svg>
3 <linearGradient id="g">
4 <stop stop-color="green"/>
5 </linearGradient>
6 <rect width="100" height="100"/>
7 </svg>
8 <div></div>
9 <script>
10 var div = document.querySelector('div');
11 var shadowRoot = div.attachShadow({ mode: 'closed' });
12 shadowRoot.innerHTML = '<svg>'+
13 '<linearGradient id="g"><stop stop-color="red"/></linearGradient></svg>';
14 document.body.offsetTop;
15 document.querySelector('rect').setAttribute('fill', 'url(#g)');
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698