Re: [css-flexbox] rationale for definite size conditions

On 04/04/2016 05:23 PM, Daniel Holbert wrote:
> On 04/04/2016 01:57 PM, fantasai wrote:
>> (Fwiw, we did clarify that if an item with a definite flex basis
>> is inflexible, it is considered definite. [1])
>> [1] https://hg.csswg.org/drafts/rev/fbcbe170c119
>
> Two concerns about this -- so, the new language here is:
>    # Note: An inflexible item with a definite flex basis
>    # is, by definition, definite.
>
> CONCERN #1: "definite" is a term that applies to lengths, not to items.
> So, the "item ... is ... definite" language doesn't make any sense here.
>   This really wants to say that the item's main size is definite, I think?

Yes, good point. Fixed.

> CONCERN #2: This Note might need to be promoted to an actual listed case
> here (alongside the other flex-specific special cases for "definite").
> I don't think it's covered by any of the other cases, nor is it covered
> by the CSS3-SIZING definition of "definite". (please correct me if I'm
> missing the language that covers it, though).

The definition in CSS Sizing *does* cover it:

https://drafts.csswg.org/css-sizing-3/#definite
   # A size that can be determined without measuring content;
   # that is, a <length>, a size of the initial containing block,
   # or a <percentage> or other formula (such the “fill-available”
   # sizing of non-replaced blocks [CSS21]) that is resolved solely
   # against definite sizes.

If the flex basis is definite, and the item is inflexible, then
the item's flexed flexed size is also definite.

~fantasai

Received on Monday, 4 April 2016 21:44:31 UTC