outlines are drawn outside (expanded by) outlines on descendant elements
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: bugs, Unassigned)
References
Details
(Keywords: dev-doc-needed)
Attachments
(2 files)
Comment 1•14 years ago
|
||
Comment 4•14 years ago
|
||
Comment 5•14 years ago
|
||
| Reporter | ||
Comment 7•14 years ago
|
||
| Reporter | ||
Comment 11•12 years ago
|
||
Comment 13•11 years ago
|
||
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•8 years ago
|
||
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
Has this been fixed in Firefox 65? I see correct results in Firefox and Chrome with identical CSS code now. This definitely wasn't the case before.
Comment 22•6 years ago
|
||
Not sure if this should be considered a separate bug or not, but I noticed that if you apply an outline to a <button> element containing an element with display: inline-block, there will be a considerable gap between the outline and the border box. This also happens with other elements as well but the gap is much larger on buttons for some reason.
https://codepen.io/ksugi/pen/dybvpWG
I am using Firefox 68 and macOS 10.14.5
Comment 23•6 years ago
|
||
(In reply to Yves Goergen from comment #21)
Has this been fixed in Firefox 65? I see correct results in Firefox and Chrome with identical CSS code now. This definitely wasn't the case before.
We've done some changes so that we don't include out-of-flow descendants (i.e., position: absolute / fixed).
(In reply to ken.sugiura from comment #22)
Not sure if this should be considered a separate bug or not, but I noticed that if you apply an outline to a
<button>element containing an element withdisplay: inline-block, there will be a considerable gap between the outline and the border box. This also happens with other elements as well but the gap is much larger on buttons for some reason.
This is because buttons have baseline alignment by default. You can see that the button and div position is the same in Firefox and Blink, only difference is where the outline gets painted. So I'd say this is this issue.
I'd note that there was a fair bit of discussion in the CSS Working Group about this not that long ago, see https://github.com/w3c/csswg-drafts/issues/2846.
Comment 24•6 years ago
|
||
I did look through the default browser styles but couldn't find any that makes the button behave consistently with the divs. I tried setting -moz-appearance: none !important and vertical-align: top but they have no effect.
Comment 25•5 years ago
|
||
Big vote from me in making Firefox exclude absolutely positioned (and transformed!) elements from the outline.
Just spent my evening bashing my head against this, without finding any solution.
I'd say this should be fixed even before the CSS Working Group issue is resolved - an easy win for webcompat, as seemingly all the other browsers are excluding it.
Updated•3 years ago
|
Comment 26•3 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates and 10 votes.
:dholbert, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 27•3 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Description
•