negative margin on inline <a> not being nulled out by same value of padding
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
People
(Reporter: argyle, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Steps to reproduce:
Codepen demo https://codepen.io/argyleink/pen/YzJQmrB/99c54cad7f23f9161daa9b63fd4c3458
place-content: center seems to be making the <p> inline size .25rem shorter than it should be, causing line wrapping. Does not reproduce in other browsers.
The negative margin is also offset by padding of the same amount. It shouldnt matter that a negative margin was on the <a> right?
Actual results:
a new line is created even though there's plenty of space
Expected results:
demo is all on one line
Comment 1•3 years ago
|
||
Reproducible on MacOS 11 and Windows 10 as well.
I'm setting a component in order to get this checked out by the development team.
Thank you for reporting!
Comment 2•3 years ago
|
||
Simplified demo of similar behavior, without the huge CSS libraries: https://codepen.io/jfkthame/pen/poxprJq
We've seen this before; I'm pretty sure there's an existing bug on file....
Comment 3•3 years ago
|
||
Looks a lot like bug 1069849.
Updated•3 years ago
|
Description
•