Closed Bug 741644 Opened 13 years ago Closed 12 years ago

Implement dppx unit for resolution media query

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: fantasai.bugs, Assigned: dbaron)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

CSS3 Values and Units defines a 'dppx' unit for <resolution>. http://www.w3.org/TR/css3-values/#resolution This bug is for implementing it. Note: This would implement the same functionality as the non-standard 'device-pixel-ratio' query added in bug 474356.
Note that there's currently a discussion about renaming 'dppx' to just 'x': http://lists.w3.org/Archives/Public/www-style/2012May/0915.html Sebastian
Attached patch patchSplinter Review
goes on top of bug 771390
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
Attachment #639544 - Flags: review?(bzbarsky)
Basically passed try (though a few Windows tests still pending): try: --build d --platform linux,macosx64,win32,android --unittests all --talos none --no-emails https://tbpl.mozilla.org/?tree=Try&rev=afa60b026c46
Attachment #639544 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
I've updated: https://developer-new.mozilla.org/en-US/docs/CSS/Resolution who describes the <resolution> data type and https://developer-new.mozilla.org/en-US/docs/Firefox_16_for_developers. (For the moment, until Kuma goes live in a few days, it isn't visible on the main wiki, only via the link given — later remove -new from the URL)
Can you also update our page on 'device-pixel-ratio' to show 'resolution: Ndppx' as the standardized alternative?
I've indicate the info on -moz-device-pixel-ratio in https://developer-new.mozilla.org/en-US/docs/CSS/Media_queries (with a link to your CSSWG article) Thanks for the hint. It was clearly needed.
I've update the |resolution| section too.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: