DescriptionImprove default value handling for SVGSVGElement.width/height
When a length attribute is either removed or set to an invalid value,
it would get set to '0'. It should however be set to the initial value
specified for the attribute (possibly presentation attribute) in
question.
The test svg/custom/disallow-non-lengths-in-attrs.html is tweaked to
accommodate for this.
BUG=604093
Committed: https://crrev.com/6cd726f3f3ed5d5fecfe725bb3c85dc2cac39e85
Cr-Commit-Position: refs/heads/master@{#388250}
Patch Set 1 #Patch Set 2 : Tweak old test. #
Total comments: 3
Patch Set 3 : Move to parseAttribute #
Messages
Total messages: 18 (8 generated)
|