Closed Bug 1693688 Opened 3 years ago Closed 3 years ago

radiosize.xhtml and checkboxsize.xhtml reftests fail on macOS with non-native theme enabled

Categories

(Core :: Widget: Cocoa, defect)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: spohl, Assigned: emilio)

References

Details

(Whiteboard: [mac:nonnativetheme])

Attachments

(1 file)

Emilio, I'm probably just missing something obvious here, but I can't seem to wrap my head around these two test failures here:

Reftest analyzer

I'm sure it has to do with our new minimum size for radio buttons and checkboxes, but I have been unable to tweak the test locally because it simply refuses to show any checkboxes or radio buttons when I run the reftest locally... Rather than kicking off a series of try runs to test potential fixes I thought it might make sense to ask you if you are able to spot an obvious fix here. Thank you!

Flags: needinfo?(emilio)

This reftest uses XUL, which cannot be used by regular web content. That's why it's loaded with the chrome://reftest/content/osx-theme/radiosize.xhtml URL. I'm not sure what the easiest way to run it in a normal browser (outside reftests) is.

Right, what I meant to say is: when I run this as a reftest locally, the data URLs that are logged as snapshots of the page are usually just a blank page, which means that I can't really compare expected vs. actual snapshots to tweak any potential fix...

Oh, weird, I don't know why that is.

FWIW I'm not too concerned about failing tests in toolkit/themes/osx. But sure, can poke.

This matches closer what Chrome and Safari do (Safari paints outside of
the box when this happens, but the layout box still respects the
author), see:

data:text/html,<button style="padding: 0; width: 0">
data:text/html,<input type=checkbox style="width: 0">

Etc. For checkboxes, this matches what OSX does, too.

Since we still want checkboxes to be slightly larger than what they'd be
otherwise, we add a hook to tweak it when non-native theme is enabled.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e0b1f4b79d4b
Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/d0bd198837ee
Remove unnecessarily hard-coded checkbox size that we now honor from a test.
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4bbe4ca120c5
Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange
Status: ASSIGNED → RESOLVED
Closed: 3 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: