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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/use-external-dynamic-base-change.html

Issue 2173453002: Resolve URL/target reference at a single point in SVGUseElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test touchups Created 4 years, 5 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/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>

Powered by Google App Engine
This is Rietveld 408576698