Skip to content

:root::part(some-input) doesn't seem to work #7

@davidmaxwaterman

Description

@davidmaxwaterman

https://github.com/fergald/docs/blob/master/explainers/css-shadow-parts-1.md#the-all-buttons-in-this-app-should-be-blue-theming-problem

Indicates that theming could be acheived by adding styles like:

:root::part(some-input) { ... }

However, while I could get the exportparts attribute to work as described, I wasn't able to style them from a rule involving :root.

It seems to me that it should be:

:root ::part(some-input) { ... }

ie with a space between :root and ::part.

Here's an example.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions