Add windows-win11 for -moz-platform media query
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
People
(Reporter: aminomancer, Unassigned)
Details
It'd be useful to be able to select for windows 11 in CSS in the same way as 10, 8, and 7. Thanks!
Comment 1•2 years ago
|
||
Main question would be... Right now windows-win10
matches win11 as well. Do we want for it to keep matching? Maybe it'd be better to have a @media (-moz-windows-version)
that you could use with @media (-moz-windows-version >= 10)
or so?
Reporter | ||
Comment 2•2 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
Main question would be... Right now
windows-win10
matches win11 as well. Do we want for it to keep matching? Maybe it'd be better to have a@media (-moz-windows-version)
that you could use with@media (-moz-windows-version >= 10)
or so?
Yeah excluding win11 from win10 seems like it adds a lot of work, right? Then every stylesheet with it would need to be updated to add 2 queries in place of one. But yeah having windows-win10
actually mean win10/11, yet windows-win11
meaning just win11, would be confusing. So I definitely agree -moz-windows-version
seems like a good idea. Just curious, that seems really familiar to me for some reason. Did we used to have something like that?
Reporter | ||
Comment 3•2 years ago
•
|
||
I suppose -moz-windows-build
might actually be better yet. If implementing -moz-windows-version
, would we be ultimately computing its value from the windows build number (e.g. I think win11 == 22000)? If so, maybe using build number is simpler anyway? In OMC's message targeting we use the build number, and I noticed some test files on m-c using build number as a proxy for version number. I can imagine some possible future use cases for selecting by build number, as we already target minor releases like 1903 or 1703 for message variants.
Description
•