Re: [css-grid] Overlapping elements & backgrounds

On Sat, Nov 1, 2014 at 1:49 PM, François REMY
<francois.remy.dev@outlook.com> wrote:
>>> Another question I had is: it seems Chrome renders the “B” in the
>>> right padding of the B-box. I call this the “absolute-min-content”
>>> rendering because it doesn’t even meet the “min-width: min-content”
>>> requirement. Is it the expected rendering or are we supposed to at
>>> least meet “min-width: min-content”?
>>>
>>> The latter is what I had understood from the spec, but this isn’t
>>> quite as clear as I would like.
>>
>> No, there is no requirement for a box to be min-content sized.
>> In this case, the B's box is overflowing its cell, and the B itself is
>> overflowing its content box.  Where did you think such a minimum would
>> come from?
>
> From the fact that you don't "shrink-to-fit" when you stretch-align, but only grow-to-fit. I can see the point of not shrink-to-fitting (even if I believe it should not be the default) but I certainly can't see the point of it if it doesn't even prevent the element to be too small to hold its own content. What's the use case (or reasoning) behind the current Chrome behavior?

Ah, yes, indeed.  'stretch' will not shrink it below its 'auto' width.
The 10px column merely provides the containing block width, and layout
then ends up making it min-content.  (That is, min-content doesn't
come automatically; it's just that the rendering which falls out
should be the same as if you'd explicitly requesting min-content
width.)

> I think I got the wrong info by looking at the latest CSS Align "ED". The current CSS Align "WD" specifies the Chrome's behavior.

Sigh, /TR is TRash, etc.  It's very possible that our implementors
went off of the (older, obsoleted) WD instead.  File a bug, please?

~TJ

Received on Saturday, 1 November 2014 22:33:40 UTC