Re: [csswg-drafts] [css-contain] Should there be a new syntax for establishing queryable containers? (#6174)

Regarding the suggested new property option (i.e. `container: size;`) it's noted that it _“also triggers appropriate layout/size containment”_.

Although logical at first sight, this feels a bit weird when compared to how other CSS properties behave. For example, if I set `place-items: center;` on an element, it doesn't automagically trigger `display: grid;` along with that. Therefore I also wouldn't expect it to be the case here.

Given that, I'm more leaning towards the new keyword(s) which act as shorthands for the other required values.

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


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

Received on Thursday, 6 May 2021 20:15:13 UTC