W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

Re: [csswg-drafts] [css-shadow-parts] Unifying ::part() and ::--foo (#4900)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 07 May 2020 16:16:15 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-625353750-1588868174-sysbot+gh@w3.org>
> I wonder if ::--(foo bar) would work for the complex cases?

Hmm, it *would* work parsing-wise — that's a `--()` function, which is allowed by Syntax.

It looks a little clunky to me, but that might be a kneejerk. I suppose I'm not opposed to it. Is that something you want to champion, then?

----

**@web-padawan**: Note how, if these were built-in pseudos, you'd spell them `::form-field:pristine`. Doing `::--form-field:--pristine` keeps us as close to built-ins as possible without polluting the built-in namespace.


-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4900#issuecomment-625353750 using your GitHub account
Received on Thursday, 7 May 2020 16:16:17 UTC

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