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

We don't really use preposition syntax markers outside of functions (at least not yet), and using --custom-property syntax here also feels kinda weird. What about:

```
container: <'container-name'>? [ / <'container-type'> ]?

@container <name>? [ / <type> ]? { ... }
```

You'd get things like this:

```
container: name / type;
container: name name2 name3 / type type2;

@container name / type2 (query) { ... }
@container name (query) { ... }
@container / inline-size (query) { ... }
```

which doesn't seem unreasonable.

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


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

Received on Friday, 15 October 2021 20:59:11 UTC