Index: third_party/WebKit/LayoutTests/svg/custom/use-href-null-ns-precedence-dynamic.html |
diff --git a/third_party/WebKit/LayoutTests/svg/custom/use-href-null-ns-precedence-dynamic.html b/third_party/WebKit/LayoutTests/svg/custom/use-href-null-ns-precedence-dynamic.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5f25be8243ed838ad0ebac71e4041f8d238c10a |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/custom/use-href-null-ns-precedence-dynamic.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
+<svg> |
+ <defs> |
+ <rect id="red" width="100" height="100" fill="red"/> |
+ <rect id="green" width="100" height="100" fill="green"/> |
+ </defs> |
+ <use xlink:href="#red"/> |
+ <use x="100" xlink:href="#red"/> |
+</svg> |
+<script> |
+runAfterLayoutAndPaint(function() { |
+ var useElements = document.querySelectorAll('use'); |
+ useElements[0].setAttribute('href', '#green'); |
+ useElements[1].href.baseVal = '#green'; |
+}, true); |
+</script> |