@function: checking…
Classic · everywhere
Selector + @media
With @function · Chromium
--surface()
Switch your system to dark mode. Both panels change colour, on the left via a second selector with @media, on the right the function decides itself. Right only in Chromium.