-
Notifications
You must be signed in to change notification settings - Fork 55
Text Color #74
Comments
Is it an invitation for authors to implement feature to let user choose background / text color he want ? in that case better to be AAA I think because can be costly to implement |
Happy to pick this one up too as SC Manager |
I like the wording of this short description, which removes the onus from the author to cover user agent features and lets the author focus on good authoring practices. That may be a good approach for a number of other LVTF candidates which also touch on user agent features. |
I guess we are requiring the site to support client side custom CSS style sheet substitution? Is that what we are requiring? |
@mbgower : As to ruling out CSS background images to provide contrast for foreground text: |
Merged with #78 |
SC Shortname
Text ColorsSC Text
Users must be able to change foreground and background colors chosen from the full range of color choices provided by the user agent, without loss of important information.
Suggested Priority Level
Level A
Related Glossary additions or changes
Use COGA's important information definition:What Principle and Guideline the SC falls within.
Principle 1, Guideline 1.4
Description
Simply Put: Users can choose any colors available from the user agent's pallet, and information on the web page must still be perceivable. If the user needs high contrast, the user can set high contrast. If the user needs high contrast with minimal brightness, that can be done if that lies within the capability of the user agent. If a color pattern makes the user just feel comfortable when reading, a significant challenge for most people with low vision, then that is possible, within the capabilities of the user agent.
Attaching the limits of the user agent to color choices available to the user enables authors to support full-color choice on devices with user agents that support full color choice. However, if the user agent can support only a limited pallet, the author is not responsible for writing special code to extend the color choices. For full color, the user must choose a device and a user agent that support full color. The only limit this places on content authors is to not go out of their way to create color patterns that cannot be changed by mechanisms that are available to user agents.
The things that a website can do to prevent this from working are the following.
Note: The barrier created by placing important information in background images works as follows: The user may need to remove the background image to achieve color accommodation, such as high contrast. Important information will be lost when the background image is removed. That will prevent necessary color accommodation. This barrier prevents many operating system color contrast mechanisms from working properly.
The images below give examples of custom color settings in HTML and PDF respectively. Most browsers on desktops and laptops enable custom style sheets, meaning that the color pallet available to HTML is 16M on laptops and desktops. The portable document format (PDF) also has user agents that enable 16M on similar platforms. Thus, the author must do nothing to prevent the choice of 16M colors for HTML or PDF where the user agent supports 16M colors.
The figure above shows the W3 Wiki page with custom colors to meet this Success Criterion. The color is optimized for a user with contrast insensitivity and photo-sensitivity (a common combination that is missed by most high contrast color schemes). Note that all controls remain visible and operational.
The figure above is a PDF file with a custom color. It too was drawn from a pallet of 16M colors.
Benefits
Testability
HTML / CSS
When browsers include a mechanism to apply user style sheets, use one of these mechanisms, and apply the following CSS:
body {
background-image: none !important;
color: #222222 !important;
background-color: #B1ADA7 !important;
}
If the page loses important information because of the loss of background images, then the test fails. If, for some reason the colors are not changed, then the test fails. Of course, this will work with any choice of 16M colors available; just change the HEX values. Note: HTML with CSS enable element-by-element color changes that may not be available for other formats. To pass, only a global change in foreground and background color needs to be allowed.
PDF
Choose a user agent that has a color picker that allows a 16M color choice. Choose a foreground color and a background color that are different from the author's choice. If the page fails to change color, the test fails. At least one vendor provides a user agent with this capability.
Techniques
Existing Relevant Techniques
New Techniques
Example: HTML - The Test Case above uses CSS in a form that will override color preferences on a page. This transformation will fail if the author uses embedded style for each element, and sets it to !important.
Related Information
Email
GitHub
Minutes
Resolution
Wiki Pages
The text was updated successfully, but these errors were encountered: