Switch from `-moz-proton-contextmenus` and win10+default theme checks to a single media query
Categories
(Firefox :: Theme, task)
Tracking
()
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?
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Comment 4•4 years ago
|
||
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.
Comment 5•4 years ago
|
||
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
.
Comment 6•4 years ago
|
||
Reporter | ||
Comment 7•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1ab906d9d30a
https://hg.mozilla.org/mozilla-central/rev/6cd24cb7b151
Description
•