Re: [csswg-drafts] [css-ui][css-backgrounds] Negative outline-offset is not interoperable and spec is not clear (#8786)

As depicted in my last comment, deriving the inner outline edge from the outer can look quite wrong.

Deriving the outer outline edge from the inner one doesn't seem great either: if the inner edge is inside the element, its radius may have been shrunk to 0, and then the outer edge wouldn't be rounded either.

![](https://github.com/w3c/csswg-drafts/assets/7477678/6cbcd323-7c32-4760-b6cc-673b8507d27c)

So I think it will look best if both the inner and the outer edges are derived directly from the border edge.

There's still the question of how to ensure that the outline remains visible when `outline-offset` is very negative. I guess we should floor by the infimum of the offsets that would result in a positive area within the inner outline edge, but computing this value doesn't seem trivial in general.


-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8786#issuecomment-1559660373 using your GitHub account


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

Received on Tuesday, 23 May 2023 15:23:26 UTC