Closed Bug 1689355 Opened 4 years ago Closed 4 years ago

1134744-radio-checkbox-baseline-1.html fails with the non-native theme

Categories

(Core :: Widget, defect, P3)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Fission Milestone M7
Tracking Status
firefox87 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

(Whiteboard: fission-nnt)

Attachments

(1 file)

No description provided.

The non-native theme does two things which, combined, cause this test to
fail.

The first one is that it has slightly bigger checkboxes than other
themes (14px vs. 13px).

The second one is that it has a 2px widget-imposed border, like Mac:

https://searchfox.org/mozilla-central/rev/0dfbe5a699cc6c73cf8c14d1aa10ba10ef3ec8fa/widget/nsNativeBasicTheme.cpp#1367-1369

Which causes its baseline to go down by that amount. This was done
intentionally in bug 1675389, though I guess it could be reconsidered.

These two things combined make the checkbox grow the line slightly in
this test-case, causing the elements to move 1px apart.

The test is intended to check that the baseline calculation of a
checkbox/radio is correct, which it is, so prevent that undesired side
effect by resetting the margin to zero.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Severity: -- → S3
Fission Milestone: --- → M7
Priority: -- → P3
Whiteboard: fission-nnt
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3704df974877 Prevent uneven checkbox margin from growing the line with the non-native theme. r=spohl
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: