Skip to content

[css-pseudo-4] Other properties that should be included #5700

Open
@tigt

Description

@tigt

https://www.w3.org/TR/css-pseudo-4/#highlight-styling

ISSUE 1 Are there any other properties that should be included here?

Thinking about making ::highlight() work in Contrast-Mode, it seems like the following should be included:

  • outline and its sub-properties
  • border-width, -color, -style, -radius, and the assorted border-image properties
  • padding to support drawing outline/border-* properties further away
  • box-decoration-break (and I would argue for it to default to clone)

There’s also prior art for this in Electron-based text editors, such as this in VS Code: microsoft/vscode#54074

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