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> |