Page MenuHomePhorge

Remove non-existing min-device-pixel-ratio CSS syntax
ClosedPublic

Authored by aklapper on Fri, Apr 25, 09:53.

Details

Summary

min-device-pixel-ratio/device-pixel-ratio do not exist.

For the records,

  • Standard min-resolution has been supported since Firefox 16 released 08/2012, Opera 12.1 released 11/2012, Chromium 29 released 07/2013, and Edge 12 released 07/2015
  • Safari 15.8 released 07/2022 still requires -webkit-min-device-pixel-ratio
  • Non-standard min--moz-device-pixel-ratio syntax was supported from Firefox 4 to Firefox 15 according to https://developer.mozilla.org/en-US/docs/Web/CSS/@media/-moz-device-pixel-ratio
Test Plan

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

If the CSS rule should not change anything, why does it change something?

Anyway, I've enlarged all these pictures at 300x, and I'm not able to distinguish any change whatsoever. Plus, I see we are saving ELEVEN Kilobytes. Wow.

Let's unlock this extra computer firepower.

whatcouldgowrong

This revision is now accepted and ready to land.Tue, Apr 29, 21:28