Re: [csswg-drafts] [css-contain-3] Container Queries and DOM-APIs like querySelector (#6215)

I am wondering what you want to achieve. Selecting an element that is a container isn't different from one that is not a container.
Taking your example you'd just write this to select the first element with the class `card`:

``` js
.querySelector('.card');
```

I guess what you actually want is an API like `Window.matchMedia()` but for containers. This is already covered by #6205.

Sebastian

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


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

Received on Thursday, 15 April 2021 20:47:29 UTC