Re: [csswg-drafts] [css-conditional-5] Add `container()` as a leaf of the @when rule (#6917)

Right, I don't think that's a solveable problem. I'm strongly against the layer interpretation changing based on precisely what queries you use in a @when rule; that means something that *should* be a no-op (adding an `or false-query()` branch) might have knock-on effects.

Further, it's not just combining the *known* media/supports/container queries, but combining *any* query in the future, too - we can't predict what `unknown-new-query(foo)` will do to the semantics of layers and similar things, so we'll have to *define* a behavior and that has a chance of locking the behavior in when the query is widely supported. Right now we only have to deal with the truth value of an unknown query, which is much safer and more limited. (Tho even then we have to decide whether to use the 3-value boolean logic, like MQs, or 2-value, like SQs. Luckily, defaulting to 3-value at the top level is fine.)

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 February 2022 21:01:04 UTC