Last Comment Bug 741644 - Implement dppx unit for resolution media query
: Implement dppx unit for resolution media query
: dev-doc-complete
Product: Core
Classification: Components
Component: CSS Parsing and Computation (show other bugs)
: unspecified
: All All
P3 normal with 1 vote (vote)
: mozilla16
Assigned To: David Baron :dbaron: ⌚️UTC-8
: Jet Villegas (:jet)
Depends on:
Blocks: css3-values
  Show dependency treegraph
Reported: 2012-04-02 16:54 PDT by fantasai
Modified: 2013-07-11 20:02 PDT (History)
9 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

patch (7.04 KB, patch)
2012-07-05 18:18 PDT, David Baron :dbaron: ⌚️UTC-8
bzbarsky: review+
Details | Diff | Splinter Review

Description User image fantasai 2012-04-02 16:54:28 PDT
CSS3 Values and Units defines a 'dppx' unit for <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.
Comment 1 User image Sebastian Zartner 2012-05-25 02:09:02 PDT
Note that there's currently a discussion about renaming 'dppx' to just 'x':

Comment 2 User image David Baron :dbaron: ⌚️UTC-8 2012-07-05 18:18:27 PDT
Created attachment 639544 [details] [diff] [review]

goes on top of bug 771390
Comment 3 User image David Baron :dbaron: ⌚️UTC-8 2012-07-06 10:37:37 PDT
Basically passed try (though a few Windows tests still pending):
try: --build d --platform linux,macosx64,win32,android --unittests all --talos none --no-emails
Comment 4 User image Boris Zbarsky [:bz] (still a bit busy) 2012-07-07 21:19:33 PDT
Comment on attachment 639544 [details] [diff] [review]

Comment 5 User image David Baron :dbaron: ⌚️UTC-8 2012-07-07 22:34:46 PDT
Comment 6 User image Ryan VanderMeulen [:RyanVM] 2012-07-08 10:51:04 PDT
Comment 7 User image Jean-Yves Perrier [:teoli] 2012-07-20 07:58:19 PDT
I've updated: who describes the <resolution> data type


(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)
Comment 8 User image fantasai 2012-07-20 08:31:15 PDT
Can you also update our page on 'device-pixel-ratio' to show 'resolution: Ndppx' as the standardized alternative?
Comment 9 User image Jean-Yves Perrier [:teoli] 2012-07-21 13:54:19 PDT
I've indicate the info on -moz-device-pixel-ratio in (with a link to your CSSWG article)

Thanks for the hint. It was clearly needed.
Comment 10 User image Tim Guan-tin Chien [:timdream] (please needinfo) 2013-07-11 20:02:22 PDT
I've update the |resolution| section too.

Note You need to log in before you can comment on or make changes to this bug.