Provide a @media query to target major platform/toolkits
Categories
(Toolkit :: Themes, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox99 | --- | fixed |
People
(Reporter: sfoster, Assigned: emilio)
References
Details
Attachments
(1 file, 1 obsolete file)
We currently use CONFIG["MOZ_WIDGET_TOOLKIT"] to determine which of the windows/osx/linux theme directory branches to package. We don't have a good way to make a similar distinction from the stylesheet itself however.
I'd like to be able to provide a media query and set of rules for each of the major platforms/toolkits we support, e.g.
@media (-moz-platform: windows) {
/* some rules targeting windows OS */
}
@media (-moz-platform: osx) {
/* some rules targeting mac OS */
}
@media (-moz-platform: linux {
/* some rules targeting linux (by which I think we normally mean gtk in practice? */
}
I'm not sure what the naming or query structure should be. We support @media (-moz-mac-rtl for example, but also @media (-moz-os-version: windows-win10).
| Reporter | ||
Comment 1•3 years ago
|
||
Not sure if this is in the right bug component, but there's that bug :emilio. Let me know if I can answer any more questions about the requirement.
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
Allow differentiating non-windows platforms on it.
Comment 4•3 years ago
|
||
| bugherder | ||
Comment 5•3 years ago
|
||
find . -type f -not -path ".hg/" -not -path "suite/" -regex "..css$" -exec sed -i -E 's/-moz-os-version/-moz-platform/g' {} ;
Updated•3 years ago
|
Description
•