Skip to content

[css-color-adjust] It's a bit unfortunate that user stylesheets can't specify arbitrary colors. #5779

@emilio

Description

@emilio

I don't think this is enough of an issue to revert the resolution of #4915, but I don't think it was discussed there so I wanted to raise it just in case there's any case we hadn't thought about.

One of the nice things of the revert-based forced-colors is that user and user-agent stylesheets worked as-is. We fixed UA stylesheets to use system colors where they weren't doing so, so that's covered, but user stylesheets won't be able to specify arbitrary colors anymore.

I think most of the use cases that I could think of for having arbitrary colors in a user sheet if you're using forced-colors are either minor, covered by system colors, or spec issues (#5778).

But there are probably other use cases which I might have missed (I know lots of extensions inject user stylesheets, for example...), so I think it'd be worth a look from other WG/community members just in case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions