I want container queries #118
aarongustafson
started this conversation in
Wants
Replies: 2 comments 2 replies
-
Intent to prototype container queries from the Chrome team: https://groups.google.com/a/chromium.org/g/blink-dev/c/u1AKdrXhPGI/m/wrJb-unhAgAJ?pli=1 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Alerting @davatron5000, @b-strauss, @mzampetti, and @segunolalive who all requested this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, elements can only be sized based on the size of the viewport. However, there's often the need to size an element based on the size of its parent container irrespective of the viewport size. The use cases are really well documented and Resize Observer isn't sufficient to address them.
One challenge in this area is that implementing container queries could cause infinite loops if the size of child elements alter the size of the container which then changes the size of the child elements and so on.
https://webwewant.fyi/wants/22/
Beta Was this translation helpful? Give feedback.
All reactions