- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Wed, 16 Aug 2023 12:42:46 +0000
- To: public-css-archive@w3.org
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-ui-4] influence of outline-width on auto style outlines == CSS-UI [claims that](file:///Users/florian/src/csswg-drafts/css-ui-4/Overview.html#outline-style) it's up to user agents to determine whether and how to influence the rendering of outlines with `outline-style` auto. However, this is problematic, for the similar reasons as discussed about color in https://github.com/w3c/csswg-drafts/issues/7761: `outline: auto` sets `outline-style` to `auto` and `outline-width` to `medium`, and [`medium` means `3px`](https://drafts.csswg.org/css-backgrounds-3/#valdef-line-width-medium). The default UA sheet in the HTML spec has `:focus-visible { outline: auto; }`, and so, in browsers that want to take `outline-width` into account, it effectively calls for the default rendering of focus outlines to be native outlines *somehow tweaked to be 3px wide*. That seems unfortunate. I think we should either: * remove the claim that `outline-width` is allowed to influence the rendering of auto style outlines. * similarly to what we did in https://github.com/w3c/csswg-drafts/issues/7761, allow `outline-width` to influence the rendering of auto style outlines, but to make that work sensibly, add an `auto` initial value to `outline-width` which computes to `medium` when `outline-style` is anything but `auto`, but lets auto style outlines render at their natural size unless the author has explicitly called for something else. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9201 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 August 2023 12:42:49 UTC