Re: [csswg-drafts] [css-values] Iverson bracket functions (#4731)

I don't know. Opening the door to that may introduce some problems.

For example, `justify-self: stretch` only works if `width` computes to `auto`. But what if you have something like `width: if(1% < 0px, 500px, auto)`? The percentage can't be resolved at computed-value time, so you can't simplify the conditional as either `500px` or `auto`.

IMO it would seem unexpected if stretching is allowed with `auto` but not with `if(1% < 0px, 500px, auto)`, if the condition ends up being false.

So we should probably change css-align to accomodate conditionals that end up resolving to `auto`. But the terminology may get difficult. We can't say that the used value is `auto`, because the used value is a length. And there is already enough confusion with "behaves as auto".

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4731#issuecomment-582106080 using your GitHub account

Received on Tuesday, 4 February 2020 20:43:45 UTC