- From: Romain Menke via GitHub <noreply@w3.org>
- Date: Mon, 14 Jul 2025 14:52:40 +0000
- To: public-css-archive@w3.org
Authors are surprised that typed custom properties do not work as they would expect: https://bsky.app/profile/css-only.dev/post/3lttqh2u7t22q
Would it be possible to allow `@propery` definitions inside `@function`?
This still avoid conflicts without limiting capabilities.
```css
@function --foo() returns <color> {
@property --x {
syntax: "<color>";
inherits: true;
initial-value: pink;
}
--x: rgb(255 0 0);
result: if(
style(--x: red): green;
else: black;
);
}
```
--
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12317#issuecomment-3069903156 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 14 July 2025 14:52:40 UTC