@castastrophe@front-end.social
Post #931601
2026-04-03 13:55 UTC
Oo some possible shorthands being proposed for defining custom properties: https://github.com/w3c/csswg-drafts/issues/7523
What I love about this thread is the innovative and creative suggestions on how to improve the usage of this feature; a feature that is really quite new itself! Keep engaging friends. Happy Friday!
#css
Replies (1)
-
@AmeliaBR@front-end.social 2026-04-03 21:18
@castastrophe The proposed shorthand syntaxes are definitely tricky because the custom property data types and initial value should have very flexible syntaxes. However, I really liked the idea of being able to declare multiple properties with the same defaults in one @ property rule, so I'm glad to see that was adopted, only a few years after @chriskirknielsen suggested it! That will reduce a lot of verbosity when declaring a bunch of colors or lengths where it's OK to share initial value.