Codepen demo (https://codepen.io/vihanga/pen/XWPxNQe?editors=0010 ) is not centered
Categories
(Firefox :: Theme, defect)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
()
Details
Attachments
(2 files)
Go to https://codepen.io/vihanga/pen/XWPxNQe?editors=0010
ER: the Green cross should be centered inside the circle
AR: it is slightly towards the bottom.
Chrome has it centered.
Can repro on a build from 2021, so this is not a recent regression.
| Reporter | ||
Comment 1•3 years ago
|
||
Chrome vs Firefox
| Reporter | ||
Comment 2•3 years ago
|
||
| Reporter | ||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
This seems due to font metric.
Chrome uses Arial, Firefox is Tahoma on Windows10 and 11.
Updated•3 years ago
|
Comment 4•3 years ago
|
||
(In reply to Alice0775 White from comment #3)
This seems due to font metric.
Chrome uses Arial, Firefox is Tahoma on Windows10 and 11.
And on macOS, I'm seeing it use the Apple system font (.SF NS). AFAICS the page doesn't do anything to control the font used here. It mentions "Font Awesome 6 Free" in its CSS, but this + sign is within a <button> element, which ends up using whatever the browser's default font for button controls happens to be.
(FWIW, I see very different results on macOS between Chrome and Safari, too.)
So it's completely unsurprising that the exact rendering and positioning of the glyph will vary between browsers and platforms. To get more consistent results, the page would need to ensure the same font is used everywhere.
| Reporter | ||
Comment 5•3 years ago
|
||
closing based on the above comment.
Description
•