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

I think conceptually the `@when` rule is syntax sugar for things we can already do. It's already possible to combine media, supports, and container queries by nesting. It seems to me that the behavior here would only have to match the existing behavior of those rules when combined?

This would also make #6917 possible without any special container syntax. That seems to me like exactly the underlying problem that `@when` is designed to solve - nesting can be clunky, and `OR` combinations are repetitive. I would very much like to make this work if we can.

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6917#issuecomment-1034093781 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 19:00:16 UTC