-
Notifications
You must be signed in to change notification settings - Fork 667
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
[css-color] Accessibility of examples in §2.2 and §3.6 #7690
Comments
By the way its a shame that putting a description in the SVG Here is the <desc>Show the L=50 plane of the CIE Lab color space.
Two colors to be mixed are visualized on this plane,
with an arc to show where the intermediate colors lie.
peru lch(62.253% 54.011 63.677) rgb(80.39% 52.16% 24.71%) lab(62.253, 23.95015324432121, 48.41051828449609)
lightgoldenrod lch(91.374% 31.415 98.821) rgb(93.33% 90.98% 66.67%) lab(91.374, -4.8174283819125385, 31.043431008590908)
40% mix is lch(79.7256% 40.4534 84.7634) rgb(87.41% 76.03% 47.64%) lab(79.7256, 3.69213016556943, 40.28455965255785)
</desc> |
There are three colors: the origin color, the hue-rotated color, and the gamut mapped version of the hue rotated color. On the diagram, these are labelled:
In the figure caption, these are all identified: <figcaption>
This diagram shows the sRGB gamut, in the CIE ab plane.
Small circles indicate the primary and secondary color.
The <span class="swatch" style="--color: rgb(86.1% 33.4% 97.6%)"></span>
origin color, shown as a large circle, is in gamut for sRGB;
but becomes <span class="swatch oog" style="--color: #AAA"></span> out of gamut (shown as a grey fill and red border)
when the LCH hue is rotated -120°.
The gamut-mapped <span class="swatch" style="--color: rgb(0% 64.2% 66.3%)"></span> result has much lower chroma.
</figcaption> Help me understand what labeling is missing, please. |
I checked the Editor's Draft and see the updated SVGs in which you've labelled the colours on the plots with their names; this is great! Example 2 (Editor's Draft) is very clear. I also see that these are SVGs now (as opposed to |
They were SVG before, but indeed pointed to by an Please do let me know about the |
From Using ARIA to enhance SVG accessibility by Léonie Watson:
It seems things have not improved much since that 2013 article :( |
@matatk any update on |
Unfortunately the Editor's Draft is still down, so I can't check with the latest changes you made. I did find that if you have an I also found that both The only way to tell how much of this transfers to the use of Update: It's odd that I couldn't get the description stuff to work; it seems some things may even be less well supported now than when Léonie did all that testing back in 2013. I found this proposed ACT page about accessible names for SVGs. |
Closing as the one remaining sub-issue, |
This comment is from the APA WG and relates to our review of CSS Color Module Level 5.
Example 2
<img>
element lacks analt
attribute. Thealt
text should mention that the image shows three colours (the two inputs, and the mixed output) on a plane with two axes. The axes are labelled "a" and "b" and cross at the origin, which is in the centre of the plot. We are looking down the L axis onto an ab plane.<img>
that hasalt
text in Example 22 (in §3.6) refers to this plane as the CH plane. This seems to be conventional, but it may be helpful for people who are not familiar with color spaces to mention it in the document's text.Example 3
The above three issues apply here too.
Example 22
In the spirit of the issue reported above, we don't feel this needs extensive
alt
text (though describing the axes and general situation would be helpful). However, it would be particularly helpful to ensure that the different colors can be identified on the plot, e.g. via labelling.The text was updated successfully, but these errors were encountered: