Your display reports its dynamic-range two ways. Apply a JavaScript override and watch only one of them lie.
JavaScript
matchMedia('(dynamic-range: high)')
-
reads the real display
CSS · the engine
@media (dynamic-range: high)
-
evaluated in C++, JS can't reach it