by donatj · 5y ago · 0 comments
CSS dpi media queries are unsupported in Safari mobile and desktop, so that increases the complexity significantly.
Beyond that, the fact is most web layout is still done in px or other non-fraction-of-the-width units, so it’s often a matter of the wider layout simply being broken at smaller widths, rather than just refusing the display.
Just design for the default and then people will zoom or change resolution if the default isn’t enough.
@media only screen and (-webkit-min-device-pixel-ratio: 1.3),
only screen and (min-resolution: 120dpi)
{
/* High DPI code */
}I wish I could ask the browser "what are the dimensions you the browser use for your buttons" so I can use same dimensions too and the user could configure this in his browsers and everything would follow it.
Note that this is different from { font-family : system-ui } which doesn’t include size information.
Caniuse sadly doesn’t have much info on font: caption support.