Skip to content

Relation between HighlightRange#priority and other highlight pseudo elements #71

@gked

Description

@gked

moving from https://github.com/dlibby-/highlight/issues/13
@Reinmar as FYI

As I understand, HighlightRange#priority is needed to control which highlight is rendered above which. Since we have other highlight pseudo-elements like ::selection or :spelling-error, could we prioritize our highlight range above those?

In other words – do the UA's highlight pseud-elements have defined priorities?

Crazy idea – couldn't z-index be used for that instead of priorities?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions