Skip to content

[css-pseudo] more clearly define which pseudo-elements are tree-abiding or part-like #10794

Open
@dbaron

Description

@dbaron

css-pseudo-4 defines the terms "tree-abiding pseudo-element" and (a stricter subset) "part-like pseudo-element". Some pseudo elements fall into these categories.

These cause various things to be allowed. In particular, I think the current list is that tree-abiding pseudo-elements are:

  • allowed to change the results of getComputedStyle
  • allowed after ::slotted()
  • support the content property [ Edit: this is what the spec says but it probably doesn't match reality ]

and part-like pseudo-elements do all of the above and also:

However, there are multiple specifications that define pseudo-elements, some of which define pseudo-elements that probably belong in one of these categories but don't say so, and some of which define pseudo-elements as tree-abiding when they may want the newer part-like definition instead.

We should audit all pseudo-elements and make sure that they're defined appropriately. We should probably also get a group resolution on the result of that audit, since the changes in feature support for many of these pseudo-elements are substantive. (The initial introduction of the part-like term defined a bunch of pseudo-elements as part-like, and I think we could probably use a resolution to approve that.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Friday afternoon

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions