- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 Aug 2024 06:07:59 +0000
- To: public-css-archive@w3.org
Can you please tell me if you plan to use context-sensitive production *notations*?
- `<@media/bool-test> = <media-feature>`
- `<@supports/bool-test> = <supports-feature>`
- `<rgb()/calc-keyword> = r | g | b | alpha | <calc-constant-keyword>`
- `<width/intrinsic-size-keyword> = auto | min-content | max-content`
- etc
Maybe the form should be `@media <bool-test> = <media-feature>` because I am not sure how to annotate `<context> <type> = value` using the above form.
A CSS parser would need to look for the closest production, ie. `<local><type>` has priority over (global) `<type>`.
I do not know if `<dfn for="@foo"><type></dfn> = value` would be equivalent to `<dfn><@rule/type></dfn> = value`.
---
<details>
<summary>I think the remaining changes are:</summary>
```diff
- <container-condition> = [ <container-name> ]? <container-query>
+ <container-condition> = [ <container-name> ]? <boolean>
- <import-conditions> = [ supports( [ <supports-condition> | <declaration> ] ) ]? <media-query-list>?
+ <import-conditions> = [ supports( [ <boolean> | <declaration> ] ) ]? <media-query-list>?
- <media-query> = <media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?
+ <media-query> = <boolean> | [ not | only ]? <media-type> [ and <boolean-without-or> ]?
- @supports <supports-condition> { <rule-list> }
+ @supports <boolean> { <rule-list> }
```
... and this would need to be defined either in prose or as suggested above:
| Context | Valid `<bool-test>` |
| ----------------------- | ----------------------------------------------------------------- |
| `<container-condition>` | `(<container-query>) \| (<size-feature>) \| style(<style-query>)` |
| `supports()` | `<supports-feature>` |
| `<media-query>` | `<media-feature>` |
| `@supports` | `<supports-feature>` |
I am not sure for `if()` and `@when`.
</details>
--
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10457#issuecomment-2285407404 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 August 2024 06:08:01 UTC