Closed Bug 1703866 Opened 5 years ago Closed 4 years ago

<select> popups on Bugzilla have square corners

Categories

(Core :: Widget: Cocoa, defect, P2)

All
macOS
defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- wontfix
firefox87 --- unaffected
firefox88 --- unaffected
firefox89 --- wontfix
firefox90 --- wontfix
firefox91 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix
firefox102 --- fixed

People

(Reporter: mstange, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

After bug 1702847, <select> popups on Bugzilla with the default Light Bugzilla theme now have square corners.
This seems to be because these <select> elements have color: rgb(40, 41, 42) set on them. Setting color: black makes the popups look mostly-native again.

Can we find a different solution for this? For example, could we stop inheriting color into the <option>s? Or is there web content out there which sets color on the <select> and only background-color on the <option>?
Alternatively, could we pick a "light native" or "dark native" background appearance based on the brightness of the text color?

Flags: needinfo?(emilio)

On Mac other browsers disable non-native styling, fwiw, so that might be a sensible solution (just it might just be a matter of pref-flipping the dom.forms.select.customstyling pref).

Alternatively, how hard it is to support arbitrary background colors in the "native-like" popups? That's what Windows does.

Flags: needinfo?(emilio) → needinfo?(mstange.moz)

Set release status flags based on info from the regressing bug 1702847

(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)

On Mac other browsers disable non-native styling, fwiw, so that might be a sensible solution (just it might just be a matter of pref-flipping the dom.forms.select.customstyling pref).

I would be very happy to do that, but don't think I have the authority to make that decision. It seems like something we should revisit after 89.

Alternatively, how hard it is to support arbitrary background colors in the "native-like" popups? That's what Windows does.

Well, the "native-like" look is only about the background and the rounded corners, and a bit of padding at the top and the bottom so that the rounded corners aren't clipped. We can easily apply the padding and rounded corners to arbitrary background colors.

Flags: needinfo?(mstange.moz)
Severity: -- → S3
Priority: -- → P2

Stephen, is there anything planned for 89 with this bug? Thanks

Flags: needinfo?(spohl.mozilla.bugs)

(In reply to Pascal Chevrel:pascalc from comment #4)

Stephen, is there anything planned for 89 with this bug? Thanks

Markus might be better positioned to answer this question.

Flags: needinfo?(spohl.mozilla.bugs) → needinfo?(mstange.moz)

P2/S3 and no assignee, we are out of betas so this is a wontfix for 89.

Has Regression Range: --- → yes

(In reply to Markus Stange [:mstange] from comment #3)

(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)

On Mac other browsers disable non-native styling, fwiw, so that might be a sensible solution (just it might just be a matter of pref-flipping the dom.forms.select.customstyling pref).

I would be very happy to do that, but don't think I have the authority to make that decision. It seems like something we should revisit after 89.

Who does have the authority for this, now that we're well past 89 - Emilio, do you know? :-)

Flags: needinfo?(emilio)

It seems you, me, and Markus are in agreement on doing this. Stephen is the owner of the Cocoa module, so if he's fine with it too, that seems enough consensus to me between the front-end and core :)

Maybe worth at least pinging UX as a heads-up?

Flags: needinfo?(emilio)

I'm on board with this too.

Flags: needinfo?(mstange.moz)
Assignee: nobody → emilio
Status: NEW → ASSIGNED

Otherwise the pref set in
browser/base/content/test/forms/browser_selectpopup_colors.js doesn't
always work.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/be91ae588a25 Use a lazy pref getter in SelectParent.jsm. r=mconley
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2662564f566c Disable custom select styling on macOS. r=spohl,Gijs
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: