[css-shadow-parts-1] vendor prefixed pseudo elements support
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
As per the spec, the ::part() pseudo-element can take additional pseudo-elements after it such as ::before (source: https://drafts.csswg.org/css-shadow-parts/#part).
Does this extend to vendor-prefixed pseudo-elements as well? The current behavior in Chrome and the latest Safari Tech Preview (96 as of writing) is that prefixed pseudo elements do not work with shadow parts.
Example: https://codepen.io/liamdebeasi/pen/jOOpQKa
I'm wondering if this is just a browser bug, or maybe a part of the spec that just needs clarification. Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS Shadow Parts specification section linked in the issue and reproduce the CodePen example in Chrome and Safari Technology Preview. Compare support for ::part() followed by standard and vendor-prefixed pseudo-elements, then document whether the specification needs clarification or the browser behavior is a bug.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100