W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2021

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

From: Bramus! via GitHub <sysbot+gh@w3.org>
Date: Thu, 06 May 2021 20:15:09 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-833830141-1620332107-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:23 UTC