- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Wed, 16 Aug 2023 09:49:39 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-anchor-position-1] Should custom property declarations be valid in `@try`? ==
I initially asked this in #9150.
@xiaochengh warned that accepting them would break anchor positioning entirely:
```css
.target {
position: var(--x);
--x: absolute;
position-fallback: --fallbacks;
}
@position-fallback --fallbacks {
@try { --x: static; }
}
```
But I wonder if it would work if custom properties are accepted only if there is one or more declarations of the other accepted properties?
```css
@position-fallback --fallbacks {
@try { --x: static; } /* invalid, ignored */
@try { --x: static; margin: 1em } /* valid */
}
```
I do not have a strong opinion and I am only interested in disallowing custom properties, because `@try` is the only rule accepting declarations that do not accept custom properties.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9198 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 August 2023 09:49:42 UTC