Re: [csswg-drafts] [css-properties-values-api] Shorthand for custom property declaration (#7523)

You're right, but that doesn't mean it's a bad idea. It's a good idea. I just need to optimize my offer.
It may be necessary to exclude the default value in an abbreviated form.

```CSS
@property --color {
  syntax: '<color>';
  initial-value: red;
  inherits: false;
}
```
we have 5 lines

But the same thing can be written like this

```CSS
@--color: <syntax>;
--color: <initial-value>;
```

We just define the value in the usual way. But we also know that redefining a variable deep down is inherited. Which does not break compatibility.

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


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

Received on Tuesday, 27 February 2024 16:26:32 UTC