Skip to content

[css-pseudo-4] Clarify ::selection background-color in presence of fill/stroke #4720

@fantasai

Description

@fantasai

We currently have a rule (which exists due to compat reasons) that if the author sets either background-color or color on ::selection, then the UA's rules for both background-color and color get dropped. So, for example, if the author sets color, then background-color becomes transparent.

What about if the author sets fill or stroke? Should they also make the background-color become transparent, or should the selection continue to use the OS default selection background color?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions