Re: [css-sizing] Intrinsic sizing on parent, extrinsic sizing on child

On Mon, Jan 12, 2015 at 3:13 PM, Greg Whitworth <gwhit@microsoft.com> wrote:
>> I actually think that Chrome is more spec compliant here (unless I'm missing
>> something), as this is indeed the most narrow this content could be since the
>> word "programmer" is the longest word (which would cause the overflow).
>>
>> Can you point to what part of specs you think support that?  As far as I can
>> tell, this situation is currently undefined in Sizing, since we don't define what
>> the min content contribution is for replaced elements.
>
> I am going off the definition of min-content inline-size since this was all text that made up the "content." It says:
>
>         # The narrowest inline-size a box could take that doesn’t lead to inline-dimension overflow that
>         # could be avoided by choosing a larger inline-size. Roughly, the inline-size that would fit around
>         # its contents if all soft wrap opportunities within the box were taken.
>         # (See Intrinsic Size Determination.)
>
> If this is being used by Chrome for determining the size of the <figure>, then "programmer" is the longest word and Chrome resizes the image to fit this width while Gecko uses the intrinsic size of the image (which seems to be the definition of min-content block-size).

That's not enough; you still don't know how large the <img> is from
that definition.  That's my point.

~TJ

Received on Monday, 12 January 2015 23:44:32 UTC