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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/use-href-null-ns-precedence-dynamic.html

Issue 1681553002: Add support for 'href' (w/o XLink NS) for various SVG elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; update comment Created 4 years, 10 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-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>

Powered by Google App Engine
This is Rietveld 408576698