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: Eric Portis via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 May 2021 05:21:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-832418967-1620192093-sysbot+gh@w3.org>
It might be nice if any shorthand was explicit about the use case that it's solving:

contain: query-target;

I think I like the HTML option in addition to (but not in place of) a way to set query targets in CSS, though I would strongly prefer an attribute that could go on any element. So `contain="inline|block"` that could go on a `<div>` or an `<article>` or a `<p>` or whatever, but not a whole new `<container>` element that forces you to lose those other semantics and/or wrap things for styling purposes.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 5 May 2021 05:21:35 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:33 UTC