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

Unified Diff: LayoutTests/svg/custom/use-href-change-local-to-invalid-remote.html

Issue 1287243003: Don't require a valid reference scope for a <use> shadow tree update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop referenceScope check from scheduleShadowTreeRecreation. Created 5 years, 4 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: LayoutTests/svg/custom/use-href-change-local-to-invalid-remote.html
diff --git a/LayoutTests/svg/custom/use-href-change-local-to-invalid-remote.html b/LayoutTests/svg/custom/use-href-change-local-to-invalid-remote.html
new file mode 100644
index 0000000000000000000000000000000000000000..838c0b185b281a6d2c8f05c5bd64ee366bac5c6e
--- /dev/null
+++ b/LayoutTests/svg/custom/use-href-change-local-to-invalid-remote.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<svg>
+ <rect width="100" height="100" fill="green"/>
+ <defs>
+ <rect id="a" width="100" height="100" fill="red"/>
+ </defs>
+ <use xlink:href="#a"/>
+</svg>
+<script>
+onload = function() {
+ var use = document.querySelector('use');
+ use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'invalid-remote.svg');
+ document.getElementById('a').setAttribute('width', 200);
+ use.setAttribute('width', 100);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698