Re: [csswg-drafts] [css-ui] Proposal: allow multiple outlines per element (#10343)

To clarify what I said, outlines being loosely defined doesn't make the implementation of multiple outlines more difficult. It's just that the result may not look at all like the author expected on some browsers.

Like, imagine you want a 3px black inner outline and a 3px white outer outline. You could try 2 outlines, the inner one with an offset of 0, and the outer one with an offset of 3px. Oh, but the offset is from the border edge, and the outline is not guaranteed to have the shape of the border edge. I recall some browsers can put (or used to) the outlines further away if there are overflowing descendants. Then your 2 outlines could potentially end up overlapping in some places.

Or think `outline-style: auto`, it totally ignores `outline-width`, so the offset of the outer outline could be totally wrong.

The good thing about `<image-1D>` is that, whatever the shape of the outline the browser decides, it can be painted in different colors. Also, browsers are allowed to ignore `outline-color` for `outline-style: auto`, avoiding the problem of `auto` being UA-specific.

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


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

Received on Monday, 2 September 2024 09:58:20 UTC