Skip to content

[css-color][css-ui] Better Fallback for outline-color: invert #4611

Open
@Crissov

Description

@Crissov

The support for outline-color: invert is very limited #423, because, as I understand it, it is complicated to achieve the effect with current technology while it used to be simple when fewer layers of abstraction stood between hardware and browser. CSS-UI therefore allows browsers to ignore the value altogether. Can we perhaps do a little better? I propose that browsers should, instead, fall back, to inverting the computed value of the background-color property. In some simple cases with the same plain background, this will actually yield the expected visual result.

With this convention in place, invert might even become useful as a keyword for other *-color properties, but, to avoid cycles, not for background-color itself and thus not for the <color> type.

  • caret-color
  • color
  • text-emphasis-color
  • text-decoration-color
  • border-color
  • column-rule-color
  • stroke-color
  • fill-color

Plans and proposals for more sophisticated color modifications should not be affected by this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions