Skip to content

Commit

Permalink
Update high resoultion media query
Browse files Browse the repository at this point in the history
This commit adds a the dppx variant of min-resolution to add an easier
to use value for the media query. `dppx` is not supported by all
browsers and needs the `dpi` fallblack.
`dppx` is more acurate than `dpi` since dots per inch refers to a
defined size of pixels wher one inch is 96px what so ever and does not
take physical inches into account.
Autoprefixer will include `-webkit-min-device-pixel-ratio` which is
needed for Safari and WebKit devices.

Reference #1474.
  • Loading branch information
drublic committed Apr 7, 2015
1 parent 1c93f0a commit 51013fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Update high resoultion media query
([#1474](https://github.com/h5bp/html5-boilerplate/issues/1474))

### 5.1.0 (April 1, 2015)

* Update Normalize.css to `v3.0.3`.
Expand Down
1 change: 1 addition & 0 deletions dist/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ textarea {

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}
Expand Down
1 change: 1 addition & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ textarea {
}

@media print,
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}
Expand Down

0 comments on commit 51013fd

Please sign in to comment.