Re: [csswg-drafts] [css-contain-2] do we need size containment in a single dimension to enable container queries? (#1031)

Just thinking out there, maybe we can add inline-size containment by giving the available width rather than the actual width of the container. This has the downside that this might mean we need to redo styling multiple times, if the element needs to be layouted under min/max constraints, but maybe this can be done in one go by computing a few styles options (min-width, parent-size, max-width/unconstrained, ...).

This needs some more thought, I just wanted to put this out there, so I remember I had this thouht the next time this is being discussed.

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


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

Received on Thursday, 11 February 2021 23:18:16 UTC