W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

[csswg-drafts] [css-shadow-parts] What's the purpose of multiple idents in ::part()? (#4412)

From: Peter Linss via GitHub <sysbot+gh@w3.org>
Date: Fri, 11 Oct 2019 01:42:11 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-505591578-1570758130-sysbot+gh@w3.org>
plinss has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-shadow-parts] What's the purpose of multiple idents in ::part()? ==
I get multiple elements having the same part name, as well as multiple part names on a single element. But what's the point of being able to select parts by multiple names?

The example in the spec: `::part(tab active)` would be better addressed by `::part(tab):state(active)` rather than conflating state and structure. Are there any non-state use cases?

FWIW, the spec should also be clear about the difference between state and structure and recommend ::part() for structure and ::state() for state (and not give a state example for a structural feature). Pseudo-classes and pseudo-elements are different for a reason, let's not break that.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4412 using your GitHub account
Received on Friday, 11 October 2019 01:42:13 UTC

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