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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/attribute-default-value-after-removal.html

Issue 1901673003: Improve default value handling for SVGSVGElement.width/height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to parseAttribute Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/attribute-default-value-after-removal-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/custom/attribute-default-value-after-removal.html
diff --git a/third_party/WebKit/LayoutTests/svg/custom/attribute-default-value-after-removal.html b/third_party/WebKit/LayoutTests/svg/custom/attribute-default-value-after-removal.html
new file mode 100644
index 0000000000000000000000000000000000000000..d803a08682d58522d417ec36c5ab844dd3436857
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/custom/attribute-default-value-after-removal.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<div style="width: 100px">
+ <svg viewBox="0 0 100 100">
+ <rect width="100" height="100" fill="green"/>
+ </svg>
+</div>
+<script>
+document.querySelector('svg').setAttribute('width', 200);
+document.querySelector('svg').removeAttribute('width');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/attribute-default-value-after-removal-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698