DescriptionUse available width for replaced element with intrinsic ratio but no dimensions
Prior to this patch, we walked up the ancestor chain to find a
specified width for replaced content with intrinsic ratio but no
intrinsic size nor any specified dimensions.
This is clearly wrong when the containing block has no specified width
but an implicitly set width through the constraint equation. In that
case we would walk past the containing block and possible find an
ancestor with specified width to size against.
An other illustration of why it's wrong in the context of a stf
container where we would possibly go outside the stf container to
fetch a width.
Both scenarios illustrated by tests.
After this patch, we instead always use the available width of the
container, to properly size inside a container with no specified size.
http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width
BUG=387705
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176929
Patch Set 1 #Patch Set 2 : Rebased #Patch Set 3 : Add test #Patch Set 4 : Add one more test; this time svg inside stf container #Patch Set 5 : Rebase and add NeedsRebaseline to zoom test with off-by-one (or so) errors #
Messages
Total messages: 11 (0 generated)
|