Html is a mishmash of nonsense units. It even uses the names of metric units with alternative definitions. Read this page and cry
Device pixel ratio: -
Calibrated scale (including dpr) = -
This ruler has the correct size if your computer, monitor, browser combo respect the metric system. Desktop computers with full HD monitors usually do so in rough approximation.