Index: third_party/WebKit/LayoutTests/svg/custom/use-external-dynamic-base-change.html |
diff --git a/third_party/WebKit/LayoutTests/svg/custom/use-external-dynamic-base-change.html b/third_party/WebKit/LayoutTests/svg/custom/use-external-dynamic-base-change.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8a54ec37bb84997d190494c08d046f22d207aa79 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/custom/use-external-dynamic-base-change.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
+<svg> |
+ <rect id="rect" width="0" height="100"/> |
+ <use xlink:href="#rect" fill="green"/> |
+</svg> |
+<script> |
+runAfterLayoutAndPaint(function() { |
+ var baseElement = document.createElement("base"); |
+ baseElement.setAttribute("href", "http://www.example.com/"); |
+ document.head.appendChild(baseElement); |
+ document.querySelector('#rect').setAttribute("width", "100"); |
+}, true); |
+</script> |