unit
dpcm — CSS reference
Dots per CSS centimeter; approximately 37.7953dpcm equals 96dpi. Exact equality queries can be sensitive to rounding. Resolution describes density relative to CSS units, not necessarily the physical density printed on the device. Zoom and device settings can affect media-query results. Prefer ranges such as min-resolution when exact equality is unnecessary.
Formal Syntax & Structure
css syntaxcss
@media (resolution: 37.79527559055118dpcm) { /* rules */ }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Numeric dimension lab</title><style>body {margin:0} .sample {height:12px;background:#006050}#a {background:#ececec} @media (resolution: 37.79527559055118dpcm) {#a {background:#d4e9ef}}</style><body><p id="a">Density-specific style</p></body></html>