Closed Bug 1418963 Opened 7 years ago Closed 7 years ago

Expose -moz-os-version and related media queries in userChrome.css

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox58 --- wontfix
firefox59 --- fixed

People

(Reporter: bugzilla, Assigned: emilio)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20171115114231 Steps to reproduce: 1396066 made many media features chrome-only, but support for them has also been removed from userChrome.css Not being able to define styles per-os using these queries can be quite limiting.
Flags: needinfo?(emilio)
I wonder if it'd make sense to just enable all chrome-only features in user sheets too. WDYT Cameron?
Flags: needinfo?(cam)
Blocks: 1396066
Flags: needinfo?(emilio)
So the chrome-only but not "ua-only" features, right? That would probably be ok, I suspect...
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to Boris Zbarsky [:bz] (no decent commit message means r-) from comment #2) > So the chrome-only but not "ua-only" features, right? Right, we wouldn't expose stuff like the anon box selectors and all those, only ua-only media-queries and properties.
Sounds OK to me.
Flags: needinfo?(cam)
Okie dookie.
Assignee: nobody → emilio
Sorry for the drive-by cleanup, couldn't resist.
Comment on attachment 8930397 [details] Bug 1418963: Enable chrome-only CSS features in user stylesheets. https://reviewboard.mozilla.org/r/201562/#review206800 ::: servo/components/style/properties/properties.mako.rs:1359 (Diff revision 1) > } > } > > /// Parsing Context for PropertyId. > pub struct PropertyParserContext { > /// Whether the property is parsed in a chrome:// stylesheet. Update this comment?
Attachment #8930397 - Flags: review?(cam) → review+
(In reply to Emilio Cobos Álvarez [:emilio] from comment #7) > Sorry for the drive-by cleanup, couldn't resist. Heh, I didn't mind this time. :-)
(In reply to Emilio Cobos Álvarez [:emilio] from comment #10) > Comment on attachment 8930397 [details] > Bug 1418963: Enable chrome-only CSS features in user stylesheets. > > Review request updated; see interdiff: > https://reviewboard.mozilla.org/r/201562/diff/1-2/ Now with a (very simple) test.
Pushed by ecoal95@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ed6b21b2945d Enable chrome-only CSS features in user stylesheets. r=heycam
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
This issue is still present in Firefox 58. Can somebody uplift the fix to Fx58?
Comment on attachment 8930397 [details] Bug 1418963: Enable chrome-only CSS features in user stylesheets. I'm not sure it'll be accepted (it's in release already), but worth a try I guess. Approval Request Comment [Feature/Bug causing the regression]: bug 1396066 [User impact if declined]: User stylesheets being a bit less powerful. [Is this code covered by automated tests?]: yes [Has the fix been verified in Nightly?]: yes [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: none, patch here should apply cleanly to m-r. [Is the change risky?]: not risky [Why is the change risky/not risky?]: this change has been in nightly for a long time already. [String changes made/needed]: none
Attachment #8930397 - Flags: approval-mozilla-release?
Sorry, we're shipping tomorrow, I don't think this qualifies for delaying the release, or for inclusion in a dot release.
Comment on attachment 8930397 [details] Bug 1418963: Enable chrome-only CSS features in user stylesheets. Yup, as expected, but it was worth a shot :). Thanks Julien!
Attachment #8930397 - Flags: approval-mozilla-release?
What about uplifting for a 58.0.1 release (next week or later)?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: