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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.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
Index: third_party/WebKit/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html
diff --git a/third_party/WebKit/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html b/third_party/WebKit/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html
index 6342b5ccf1b52b481c9763cb081aeb6049342cd6..0615823df26c6da7979dbc3ec6e1b9d371d7877e 100644
--- a/third_party/WebKit/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html
+++ b/third_party/WebKit/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html
@@ -28,7 +28,7 @@
invalid_widths.forEach(function(invalid_width) {
setWidth('#svg', invalid_width);
test(function() {
- assert_equals(getWidth('#svg'), 0);
+ assert_equals(getWidth('#svg'), document.body.clientWidth);
}, "Test width '" + invalid_width + "' on SVGSVGElement");
setWidth('#fO', invalid_width);

Powered by Google App Engine
This is Rietveld 408576698