Skip to content

Add dppx and dpcm units to parser dimensions#889

Merged
Synchro merged 3 commits intoless:masterfrom
feelepxyz:master
Aug 10, 2012
Merged

Add dppx and dpcm units to parser dimensions#889
Synchro merged 3 commits intoless:masterfrom
feelepxyz:master

Conversation

@feelepxyz
Copy link
Copy Markdown
Contributor

dppx is currently supported by Firefox >= 16.
This can be used to target retina setups:
@media (min-resolution: 2dppx) {}

http://www.w3.org/TR/css3-values/#resolution
http://www.w3.org/blog/CSS/2012/06/14/unprefix-webkit-device-pixel-ratio/

PS. My editor removed some trailing whitespace in the process.

Cheers

dppx is currently supported by Firefox > 16.
This can be used to target retina setups:
@media (min-resolution: 2dppx) {}

http://www.w3.org/TR/css3-values/#resolution
@Synchro
Copy link
Copy Markdown
Member

Synchro commented Aug 10, 2012

Fancy rejigging this commit so it doesn't clash with your other one in #890?

@feelepxyz
Copy link
Copy Markdown
Contributor Author

@Synchro merged upstream master

@feelepxyz
Copy link
Copy Markdown
Contributor Author

The related tests now pass..

Synchro added a commit that referenced this pull request Aug 10, 2012
Add dppx and dpcm units to parser dimensions
@Synchro Synchro merged commit be8a239 into less:master Aug 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants