Re: [csswg-drafts] [css-contain-3] Provide a syntax to query a specific container-type (#6393)

Thanks for clarifying, Miriam.

I was a bit confused about the functions part because the examples in the ED don't use it. For example, I see:

```css
@container card (inline-size > 30em) and (--responsive = true) { … }
```

The definition for `<container-query>` does already include this change

```
<container-query>     = ( <container-condition> )
                      | size( <size-query> )
                      | style( <style-query> )
```

So if I understand correctly the snippet above would — if this change gets accepted — become this:

```css
@container card size(inline-size > 30em) and style(--responsive = true) { … }
```

That's correct?

_(As long as this issue is still open, I can see why the examples aren't updated yet. No worries)_

> There is nothing about the word "container" that implies size, so this would only be true for authors with a strong historic attachment to "container queries" as an Idea. 

I know what I'll be explicitly mentioning whenever I get to talk/write about them :)

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


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

Received on Thursday, 9 December 2021 21:54:52 UTC