Toucaan / --inch

Inch:pixels polyfill for screen media.
MIT License
4 stars 1 forks source link

Missing OSX Breakpoint #9

Closed chaffeqa closed 2 years ago

chaffeqa commented 2 years ago
MacBook Pro (16-inch, 2021)
Your Screen Resolution:
1728 x 1117

Screen Width: 1728 pixels
Screen Height: 1117 pixels
DPR(Device Pixel Ratio): 2
Color depth: 30 bits per pixel

I had to add to the --inch.css:

:root {
  --inch: 96px;
}

@media (resolution: 192dpi) and (-webkit-device-pixel-ratio: 2) {
  :root {
    --inch: 130px;
  }
}
marvindanig commented 2 years ago

Awesomeness. Thank you for throwing in the new screen:pixel constant. I’ll review and merge this tomorrow.

marvindanig commented 2 years ago

Included.