Closed Bug 1827063 Opened 3 years ago Closed 3 years ago

Categories

(Firefox :: Theme, defect)

defect

Tracking

()

RESOLVED INVALID

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.

Attached image bug.png —

Chrome vs Firefox

Attached file about:support —
Summary: Codepen demo (https://codepen.io/vihanga/pen/XWPxNQe?editors=0010) is not centered (Chrome gets it right) → Codepen demo (https://codepen.io/vihanga/pen/XWPxNQe?editors=0010) is not centered

This seems due to font metric.

Chrome uses Arial, Firefox is Tahoma on Windows10 and 11.

Component: Layout → Layout: Text and Fonts
Component: Layout: Text and Fonts → Theme
Product: Core → Firefox

(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.

closing based on the above comment.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: