Chromium Code Reviews
DescriptionReturn 'auto' for width/height for non-root SVG
According to the specs:
- https://www.w3.org/TR/CSS2/visudet.html#the-height-property:
The 'height' property doesn't apply to non-atomic inline elements.
- https://drafts.csswg.org/cssom/#resolved-value:
getComputeStyle() returns resolved values. For a property that
doesn't apply, the resolved value is the computed value.
Actually because of crbug.com/708888 'auto' is not the computed value
when width/height is specified, but this keeps the current behavior.
I didn't find spec about whether a non-root SVG is inline or not,
but SVG's display's initial value is 'inline', and we treat most of
the SVG elements always as inline. We treat SVG text as block internally
just because we implement SVG text based on LayoutBlockFlow, which is
an implementation detail and should not affect cssom.
BUG=708687
Review-Url: https://codereview.chromium.org/2798903005
Cr-Commit-Position: refs/heads/master@{#462508}
Committed: https://chromium.googlesource.com/chromium/src/+/e60f30d448ad169ebc5c7f1cf45e83da2af33959
Patch Set 1 #Patch Set 2 : - #Patch Set 3 : - #
Total comments: 2
Patch Set 4 : - #Patch Set 5 : Reduce behavior change #
Messages
Total messages: 20 (11 generated)
|
||||||||||||||||||||||||||||