w3c / w3c/csswg-drafts

[css-shadow-parts-1] vendor prefixed pseudo elements support

Open
#4,530 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-shadow-parts-1
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.