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: Miriam Suzanne via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Jan 2021 16:51:37 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-768420773-1611766296-sysbot+gh@w3.org>
Worth noting that this syntax can also be used inside a (currently comma-separated) list of layers. To show a few of those options:

```css
@layer framework.default, framework.theme;
@layer framework default, framework theme;
@layer framework / default, framework / theme;
```

Or in the block syntax:

```css
@layer framework.theme {
	blockquote { color: rebeccapurple; }
}

@layer framework theme {
	blockquote { color: rebeccapurple; }
}

@layer framework / theme {
	blockquote { color: rebeccapurple; }
}
```

I think the space works well in both cases, and adding punctuation feels unnecessary.

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5791#issuecomment-768420773 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 16:51:40 UTC

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