[csswg-drafts] [css-ui] Tweaking outline-style: auto colors. (#7761)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-ui] Tweaking outline-style: auto colors. ==
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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7761 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 18 September 2022 09:12:24 UTC