- From: Tobias Buschor via GitHub <sysbot+gh@w3.org>
- Date: Fri, 16 Apr 2021 00:26:01 +0000
- To: public-css-archive@w3.org
I want to select not only an element that is a container, but an element with a container that has a minimum width of 450px at the moment. With a possible `matchConntainer` method, it would be something like: ```js .querySelector(' .card ').filter( el => el.matchContainer('(min-width: 450px)') ); ``` Also, if I understand correctly, nested container queries or container queries on a spezific parent are not feasible. I just think it would be nicer if the condition were part of the selector. But it is quite possible that this is not possible because it generates things like loops. I just wanted to express my thoughts before the syntax is set in stone. -- GitHub Notification of comment by nuxodin Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6215#issuecomment-820822738 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 16 April 2021 00:26:03 UTC