Skip to content

[css-pseudo] Should probably have a note about it not being OK to have a UA ::selection rule #1122

@bzbarsky

Description

@bzbarsky

Maybe this is already covered by the "The UA should use the OS-default highlight colors when neither color nor background-color has been specified by the author." bit, in that such a rule should be ignored anyway?

But if it should not be ignored, then I think the interaction with https://compat.spec.whatwg.org/#the-webkit-text-fill-color makes it impossible to use one anyway, while keeping the current behavior of browsers. See https://bugzilla.mozilla.org/show_bug.cgi?id=234102#c60

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