MDN self-hosted library · e01.org

`image-resolution` CSS property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
image-resolution: from-image;
image-resolution: 300dpi;
image-resolution: from-image 300dpi;
image-resolution: 300dpi snap;

/* Global values */
image-resolution: inherit;
image-resolution: initial;
image-resolution: revert;
image-resolution: revert-layer;
image-resolution: unset;
css
@media print {
  .my-image {
    image-resolution: 300dpi;
  }
}
css
.my-image {
  image-resolution: from-image 300dpi;
}