W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-cascade] What is the appropriate syntax for appending to nested layers? (#5791)

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Jan 2021 18:19:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-768478819-1611771590-sysbot+gh@w3.org>
Regarding commas; now that I can safely use comma-less color functions in CSS [[1]](#user-content-jonathantneal-ref1), commas read as fallbacks, consistent now too with my experience in `color()` and `var()`. The idea of it being a fallback may even be written into a spec somewhere.

Regarding forward slashes, I have read those as separators, which is how they are used in color functions and grid.

Therefore, I would interpret `@layer framework / default, framework / theme` to mean "_the layers 'framework' and 'default', or (as a fallback?) the layers 'framework' and 'theme'_".

<a name=jonathantneal-ref1 href="#user-content-jonathantneal-ref1">1</a>: An example of a comma-less color function would be `rgb(#663399)`. This also the syntax automatically generated in Chrome devtools when adjusting the color system)

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 27 January 2021 18:19:53 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:25 UTC