- From: Brandon McConnell via GitHub <sysbot+gh@w3.org>
- Date: Sat, 24 Feb 2024 21:41:04 +0000
- To: public-css-archive@w3.org
> The CSS language should be simple. And the syntax of the new properties and styles should be intuitive. A person should not memorize the syntax of a single property. This is a mockery of a person. Life is complicated enough as it is. fwiw shorthand properties like the one being proposed here are _not_ simple. In fact, shorthand syntaxes are often what add unnecessary complexity to the language. One clear case of this is the `background` shorthand which many CSS devs, myself included, still don't get right on their first try after a while of not using it. Sure, shorthand can look simple, but the DX surrounding shorthand is simply not there. Some shorthands like `border` may be considered an exception to that rule, but especially for something such as defining the parameters of a custom property in the way that `@property` does would be very hard. Not to mention, that `@property` is still very much so in development and being added to. If we add several more properties to the `@property`, the shorthand would be near impossible to maintain. ```scss @--variable name: <syntax> <initial-value> <inherits> <access-level> <global-scoping> <...>; ``` -- GitHub Notification of comment by brandonmcconnell Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-1962737839 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 24 February 2024 21:41:05 UTC