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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/custom/shadow-dom-resource-reference-2.html
diff --git a/third_party/WebKit/LayoutTests/svg/custom/shadow-dom-resource-reference-2.html b/third_party/WebKit/LayoutTests/svg/custom/shadow-dom-resource-reference-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..751b7235ec49cda6428c7eca132f22ef3c73ba43
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/custom/shadow-dom-resource-reference-2.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<svg>
+ <linearGradient id="g">
+ <stop stop-color="green"/>
+ </linearGradient>
+ <rect width="100" height="100"/>
+</svg>
+<div></div>
+<script>
+var div = document.querySelector('div');
+var shadowRoot = div.attachShadow({ mode: 'closed' });
+shadowRoot.innerHTML = '<svg>'+
+ '<linearGradient id="g"><stop stop-color="red"/></linearGradient></svg>';
+document.body.offsetTop;
+document.querySelector('rect').setAttribute('fill', 'url(#g)');
+</script>

Powered by Google App Engine
This is Rietveld 408576698