Re: [css-grid] Resolve Intrinsic Track Sizes: min-content vs auto minimums

On 01/21/2016 04:38 AM, Manuel Rego Casasnovas wrote:
>
> On 21/01/16 04:30, fantasai wrote:
>>
>> Furthermore, 'min-width: auto' items with a specified width less
>> than their min-content size will be treated as contributing their
>> specified width to an 'auto' track, not their min-content size.
>> (If the min-width or track size was min-content, then they would
>> instead contribute their min-content size.)
>
> Sorry but I don't understand this part.
>
> Let me see if I got it right with a new example.
> We've the following grid:
>   <div style="display: grid; width: min-content; font: 25px/1 Ahem;">
>     <div style="width: 50px; min-width: auto;">XXXX XX</div>
>   </div>
>
> So the min-content for the item is 100px, but it has a specified width
> of 50px.
>
> You said that the size of the track should be:
> A) grid-template-columns: auto;        => Column's width:  50px;
> B) grid-template-columns: min-content; => Column's width: 100px;
>
> And this seems really weird to me.
> IMHO, B) should be 50px too.

You're right, I got confused. :)

~fantasai

Received on Thursday, 21 January 2016 19:40:37 UTC