Closed Bug 1714357 Opened 3 years ago Closed 3 years ago

Switch from `-moz-proton-contextmenus` and win10+default theme checks to a single media query

Categories

(Firefox :: Theme, task)

Desktop
All
task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: Gijs, Assigned: emilio)

References

Details

(Whiteboard: [proton-cleanups])

Attachments

(1 file, 1 obsolete file)

As per summary. This media query is a bit different from the other proton ones, in that it is always accompanied by other media queries that select for Windows 10 and the default theme (to avoid applying the styling in high contrast mode). Goals of this change:

  • remove the proton context menu pref
  • simplify the relevant media queries
  • make changing decisions about whether to apply this styling easier to maintain (changing the implementation of the single media query, instead of updating N locations of CSS with convoluted media queries)
  • maintain a way for win10 developers to easily check the non-win10 look&feel of the menu without spawning a separate win7/win8 VM (likely by flipping some other pref, perhaps under the ui.* namespace)

There are no other consumers of the pref left besides the existing media query and the CSS that uses it: https://searchfox.org/mozilla-central/search?q=proton.cont

Emilio, would you be interested in working on this?

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

Something like that should do :)

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1ab906d9d30a
Use a nicer media query for proton context menus. r=Gijs

Emilio, the menupopups are transparent with @media (-moz-windows-non-native-menus). Also the menulist menupopups are transparent.

You set them explicitly to transparent in your code.

Flags: needinfo?(emilio)

Found the issue: https://hg.mozilla.org/integration/autoland/rev/1ab906d9d30a#l6.14 you used -moz-proton-non-native-menus instead of -moz-windows-non-native-menus.

Flags: needinfo?(emilio)
Attachment #9225061 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: