- From: Christopher Kirk-Nielsen via GitHub <sysbot+gh@w3.org>
- Date: Thu, 21 Jul 2022 18:30:21 +0000
- To: public-css-archive@w3.org
Cool idea! I do agree that it can clutter up a file to declare many properties, and that some shorthand could be beneficial. Not sure about the syntax as it can look a little unclear (my first thought was "custom media query" but that's not the syntax), however I could see something like: ``` @property --header-color: '<color>', blue; @property --corner-radius: '<length-percentage>'; ``` (where lengths have an implicit default of `0` (with a unit where relevant), colours implicitly have `black`, and so on — and `inherits` defaults to true) It stays compact while still being an explicit "hey I'm defining --prop" and uses the same syntax. (syntax would have to always be first in case you had a custom ident that looked like a syntax data type) Might even be able to follow the `@layer` approach and list several in one go, but parsing might get tricky: ``` @property --header-color, --header-background-color, --header-border-color: '<color>'; ``` -- GitHub Notification of comment by chriskirknielsen Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-1191805901 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 21 July 2022 18:30:22 UTC