-
Notifications
You must be signed in to change notification settings - Fork 707
[mediaqueries] Media Feature: "increase contrast" and/or "reduce transparency" user settings #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Allows web developers to know they should switch certain translucent views to an opaque or significantly less translucent rendering. Platform preference is shipping on iOS, macOS, watchOS, and tvOS. This can greatly increase readability for individuals with certain vision impairments. |
Changing these user settings don't change the rendering of anything. It just conveys a user preference that allows the frameworks, native apps, or web apps to adjust for this user preference/desire/need. I should also note these proposed names don't fit well within the "none or truthy" pattern of some existing media features. It'd be awkward to specify that prefers-reduced-transparency: [ default | reduce ]; |
The core reason this needs to expose a user preference rather than change something about the view is because UI varies greatly. There's no way a UA can reliably reduce transparency on behalf of the user and still guarantee a readable, usable interface. Exposing the pref gives authors a way to do this appropriately within the context of their own interfaces. |
(this comment is equally valid for this issue and for #442) This seems very reasonable and useful to me.
I think It would be very useful to see a broad survey of all such accessibility/preference settings across major OSes to determine:
reduced-transparency: none | preferred | forced; Not all OSes will use all modes, but it would be helpful to authors to know what's happening to them. How do handle the
I think this design is likely to be sound, but I would like second opinions, and to evaluate it against a few more media queries and a few more OSes to see if it holds up. |
Windows has a "high contrast" mode that forces colors to black/white binaries and removes background images. That may be equivalent to a PS. Let's avoid "preferred" given the commonality of spelling errors associated with double characters (referrer/referer) and variant localized spellings (labelled/labeled). |
For that matter, we could possibly roll the "increase foreground/background contrast" and "reduce transparency" into one media feature if the granularity of each isn't essential. FWIW, we tried something like this in the Indie UI User Context draft. See the following example demonstrating how Microsoft's high-contrast media feature proposal fit into an MF we called "user contrast" |
Yes, this is exactly the kind of thing I'm talking about.
I make the mistake too, so sure.
Possibly. I'd like to get feedback about this from somebody who knows about the various disabilities that lead various people to seek one or the other of these settings. If they are the same, or at least if there is no conflict, this kind of merging could be a good thing. |
In our experience, they are used for the same purpose, but both are not necessarily used by the same people (some use both, others don't). Low vision disabilities are too diverse to make sweeping generalizations like, "People who what higher contrast text also want zero transparency" but it might be okay to generalize an interface change such as: "If the only relevant CSS media feature is It's also possible that people just don't use both simultaneously to avoid existing implementation bugs, and that they'd enable both once the remaining bugs are fixed in first-, second-, and third-party app. For example, a popular app that rhymes with Zulu can look bad when you enable 'reduce transparency' on tvOS. |
So long as we don't have a case of "some people who need no transparency also need low contrast", then merging it is OK. That's kind of the question I'd like to put to accessibility experts (if you are one, let me know, so that I can stop addressing you as an abstract group of people). If that's cleared, merging is an option. Whether it is better is a bit of a separate question. I'd be tempted to say yes, but that's just a highly subjective opinion about the best way to design the API to maximize its chances of being used often and across platforms. |
I am, though anyone would be foolish to claim they had a definitive answer to that question. I'm certain we can find people who prefer both low contrast colors and an opaque UI. I will ask around. However, determining whether that combination is necessary as a CSS media feature is a more difficult question. For the time being, I'm comfortable stating that, "most people who use any of the related settings on any platform do so as a way to increase the contrast of the UI." Therefore, I think adding a general "increase contrast" media feature won't preclude us from adding more granular sub-level features (reduce transparency, avoid certain colors, etc.) later if we determine them to be necessary. |
Listing related potential media features for contrast and inversion, since "inverted-colors" was also deferred again from CSS MQ Level 4 earlier this year.
Mutually exclusive user prefs ideas for color
Example usage of user color MQs and user-pref() variables
Example usage of the "-luminosity" suffix for HSLA-based MQs
|
My action from TPAC for @frivoal was to list the other known platform-specific contrast-related settings.
|
Tracking issue for Media Feature "prefers-reduced-transparency"
Discussed in thread:
https://lists.w3.org/Archives/Public/www-style/2016Feb/0037.html
For spec:
https://drafts.csswg.org/mediaqueries/
The text was updated successfully, but these errors were encountered: