Closed Bug 1578020 Opened 5 years ago Closed 5 years ago

Inconsistent spacing in Fonts panel, especially in RTL

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(firefox71 verified, firefox72 verified)

VERIFIED FIXED
Firefox 71
Tracking Status
firefox71 --- verified
firefox72 --- verified

People

(Reporter: fvsch, Assigned: fvsch)

Details

Attachments

(3 files)

I'm making a catch-all bug to fix a few CSS issues in Fonts.

In LTR:

  • Font preview input uses 14px of padding-left instead of 20px

In RTL:

  • The right-side padding seems too big for a bunch of elements.
  • Font preview input uses 22px of padding-right instead of 20px.
  • For sliders with min/max values displayed (for variable fonts), the min and max values are inverted.

Both:

  • @font-face blocks are shifted 4px to the left and end up misaligned with other content (mostly visible in LTR where other alignments are okay). I think the intent was to align the twisty icon to the 20px guide, but here we should only move that icon and not the whole <pre> element.
Assignee: nobody → florens
Status: NEW → ASSIGNED

Result of the above patch.

Pushed by florens@fvsch.com:
https://hg.mozilla.org/integration/autoland/rev/9b6f0f1deaed
Fix horizontal spacing and RTL issues in Fonts panel; r=rcaliman
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71

I successfully reproduced this issue on Firefox Nightly (2019-08-31) under Windows 10.

The issue seems to be fixed on latest Firefox Nightly 72.0a1 (2019-10-31). Tests were performed under Windows 10 (x64), macOS 10.15 and Ubuntu 18.04 (x64).

Is this patch going to 71 beta too?

Flags: needinfo?(florens)

The patch landed on 2019-09-02 a bit after the 71 branch, and should be on 71 (beta) already.

Flags: needinfo?(florens)

Yep. It seems to be fixed on Firefox 71.0b6 too. Thanks for the fast reply.

Status: RESOLVED → VERIFIED
Component: Inspector: Fonts → Inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: