Skip to content

[css-ui] Tweaking outline-style: auto colors. #7761

Closed
@emilio

Description

@emilio

https://bugzilla.mozilla.org/show_bug.cgi?id=1791051 shows an interesting interop difference: https://jsfiddle.net/ht85jacp/

  • Firefox allows customizing auto-style outline using accent-color.
  • Chrome allows that using outline-color.
  • WebKit doesn't allow that.

I can provide some reasoning to why I implemented the Firefox behavior. outline-style: auto is intended to be the OS accent color by default. It behaves more like appearance: auto form control borders, so using outline-color would be rather weird. On the flip side, using border-color on form controls disables native appearance altogether, so maybe it's not that weird.

I have a preference for Gecko's behavior, but I'd be happy to listen to reasoning from Chrome's folks about why they honor outline-color instead... I think part of the issue I don't love it is because outline: auto would set outline-color: currentColor, which seems pretty unfortunate.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions