Re: [csswg-drafts] [css-conditional] [css-contain] Fleshing out @container queries with single-axis containment (#5796)

@wUFr what you suggest looks a lot like viewport wide media queries instead of container queries.

If you replace `.sidebar > ul:layout(desktop)` with `@media (min-width:900px){ .sidebar > ul { … } }`, there is no need for container queries.

And I think you can mix it with custom properties to pass context to child elements, and use it with this nice trick from Lea Verou: https://lea.verou.me/2020/10/the-var-space-hack-to-toggle-multiple-values-with-one-custom-property/

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


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

Received on Monday, 22 February 2021 08:47:12 UTC