DescriptionInherit 'viewBox' into view spec if it is valid
When constructing a view spec from a fragment identifier, the
(negated) hasEmptyViewBox() condition was used to determine if the
viewBox value should be set from the element. This condition however
will equate to:
!(is-valid && is-empty) => !is-valid || !is-empty
meaning that invalid viewBox values would be transferred. In the case
where a <view> element without a 'viewBox' specified was referenced, the
'viewBox' value from the root could be overwritten by an invalid one.
Use only the validity of the 'viewBox' to determine if the value should
be inherited.
BUG=702380
Review-Url: https://codereview.chromium.org/2753773009
Cr-Commit-Position: refs/heads/master@{#457921}
Committed: https://chromium.googlesource.com/chromium/src/+/d2c24342da278481fc6041e235f8690828e6760d
Patch Set 1 #Patch Set 2 : Tests #
Messages
Total messages: 16 (10 generated)
|