property
Image resolution — CSS reference
Draft property controlling the intrinsic resolution of raster images, rather than the device pixel ratio of the screen. The installed Chromium rejects this declaration; explicit dimensions are a practical fallback for known-size artwork.
Formal Syntax & Structure
css syntaxcss
image-resolution: 2dppx;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>image-resolution</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{width:40px;height:20px;image-resolution:2dppx}</style><body><img id="a" alt="Two-color sample" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAABCAIAAAB7QOjdAAAAD0lEQVR4nGP4z8DAwPAfAAcAAf9+CLHQAAAAAElFTkSuQmCC"></body></html>