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

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

From: Serhii Kulykov via GitHub <sysbot+gh@w3.org>
Date: Thu, 07 May 2020 08:34:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-625112662-1588840463-sysbot+gh@w3.org>
As a library maintainer, I find the new syntax questionable in terms of developer experience.

```css
::part(form-field):state(pristine)
```
👍  human friendly
👍  self-explanatory
👎  more verbose

```css
::--form-field:--pristine
```
👎  confusing
👍 somewhat BEM-ish
👍 fewer bytes


Off-topic: what if we make it even more BEM-ish? 🤔  

```css
::__form-field:--pristine
```

-- 
GitHub Notification of comment by web-padawan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4900#issuecomment-625112662 using your GitHub account
Received on Thursday, 7 May 2020 08:34:26 UTC

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