User contrast preference for high contrast not reflected in prefers-contrast CSS media query
Steps to reproduce the problem:
- In Linux's settings, enable high contrast (in my case, in Ubuntu, this is under Settings > Accessibility > Seeing > High Contrast)
- Open https://codepen.io/patrickhlauke/full/NWyajBN which tests the various user preference media features of MQ Level 5
- Check the reported "prefers-contrast" values
Problem Description:
The expectation is that once High Contrast is enabled, the "prefers-contrast: more" media feature should evaluate to true. Instead, that currently evaluates to false and "prefers-contrast: no-preference" evaluates to true. I.e. Epiphany is not picking up on the OS-level preference. Note that this works as expected in Firefox/Linux (but fails the same way in Chrome/Linux - see https://bugs.chromium.org/p/chromium/issues/detail?id=1425734)
Tested in version 42.4 (the latest available from the Ubuntu software manager)
Relates to support for https://www.w3.org/TR/mediaqueries-5/#mf-user-preferences
Edited by Patrick H. Lauke