Skip to content

Commit 1987e5a

Browse files
committed
Update HiDPI CSS @media rule
Provide greater cross-browser support. Thanks to Wordpress - http://core.trac.wordpress.org/changeset/22629 - and @marcedwards - see issue h5bp#1127.
1 parent 4644672 commit 1987e5a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### HEAD
22

3+
* Update HiDPI example media query ([#1127](https://github.com/h5bp/html5-boilerplate/issues/1127)).
4+
35
### 4.0.2 (9 December, 2012)
46

57
* Update placeholder icons.

css/main.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,10 @@ textarea {
220220
/* Style adjustments for viewports that meet the condition */
221221
}
222222

223-
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
224-
only screen and (min-resolution: 144dpi) {
223+
@media print,
224+
(-o-min-device-pixel-ratio: 5/4),
225+
(-webkit-min-device-pixel-ratio: 1.25),
226+
(min-resolution: 120dpi) {
225227
/* Style adjustments for high resolution devices */
226228
}
227229

0 commit comments

Comments
 (0)