Conversation
Graphics contrast SC plus two glossary terms for graphical object, and CSS pixel.
guidelines/index.html
Outdated
@@ -1157,6 +1173,10 @@ | |||
<dd> | |||
<p>any sequence where words and paragraphs are presented in an order that does not change the meaning of the content</p> | |||
</dd> | |||
<dt><dfn>CSS pixels</dfn></dt> | |||
<dd> | |||
<p>The reference size that browsers use to calculate the how large text and elements appear when presented on screen. The value of a CSS pixel is set as closely as possible to the <a href="https://www.w3.org/TR/css3-values/#reference-pixel">reference pixel</a>, which takes into account the assumed viewing distance. For example, 1px on a TV display at 3.5m away is much larger than 1px on a phone 30cm feet away. A high resolution display would include more physical (device) pixels for each CSS pixel used in the browser's calculations for text and layout size.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definition could do with a bit of tightening/tweaking. Possibly something along the lines of
A CSS pixel is the canonical unit of measure for all lengths and measurements in CSS. This unit is density-independent, and distinct from actual hardware pixels present in a display. User agents and operating systems should ensure that a CSS pixel is set as closely as possible to the reference pixel, which takes into account the physical dimensions of the display and the assumed viewing distance (factors which cannot be determined by content authors).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks. Pull request updated.
Responding to comments in the 7th Feb survey: @johnfoliot wrote:
Yes, assuming it is solid. So the printer symbol is the 'graphical object', and without associated text it would be 'essential for understanding'. If it is not solid, then the stroke/border needs to be greater than 3px to qualify for 3:1.
It is the intent, although it might be a small for an icon, it is bigger than the stroke of large text (as per the current colour contrast SC).
For a solid icon it would be large enough, but if the icon is an outline, then the 'stroke' / border thickness would need to be > 3px (not possible for an 8px icon??).
We have a whole host of possible 'graphical objects', some solid, some lines, some graduated, some moving?!! I think we need to keep the exception as simple as possible, if the 'graphical object' you need to perceive for understanding is over 3px square then is easier to see, and therefore the lower contrast threshold can apply. The LVTF went through quite a few examples, that principle seemed to work well for finding things that didn't need so much contrast. If it weren't for the WCAG format we'd probably say "3:1 for graphics is ok unless it is small, then use 4.5:1". Greg Lowney (no @ for github?) suggested a slight text change back to a previous iteration, but that change came from following the WCAG convention for exceptions, following the 1.4.3 example. @KimberleeD wrote:
No, if perceiving the outline is what you need in order to understand the icon then it would be the outline against the background of the icon. (If that failed then, you could possibly pass if the interior of the icon had good contrast against the outline and that were sufficient for understanding.)
See the response to John above.
Nope, hopefully that is answered above.
Yep, me to, so I tested it out with 10 of our designers first! :-) Adam Lund wrote:
No, that is what the 'essential to understanding' is intended to convey. @mbgower commented:
I really think that "essential to understanding" covers this, but obviously it will be a big topic of the understanding document. We also had a comment earlier on (not from me!) to take that type of note out of the SC as it duplicates the core SC text. |
Hi @shwetank, You asked:
I would like to keep this under the 'essential to understanding' aspect, where the answers are not essential to understanding the exam question, but other aspects are:
It is a good example, can we use that in the understanding document? (I.e. what's the licensing?) Does that 'essential to understanding' interpretation seem reasonable? If not, we could add an exception similar to alt text:
|
Hi @alastc A lot of times these courses have diagrams scanned from a book (would that come under 'photograph' and hence exempted?). It won't be possible to change any of the diagrams in that case as that would involve changing and republishing the entire back-catalog of the books and then scanning the new diagrams - a task nobody will do. A person might display an X-ray and making that conform to this SC would also probably not be possible without damaging the integrity of that x-ray (again, would this come under 'photograph'?). Sometimes anatomy diagrams need to show the muscles and other internal organs, and having to conform to the contrast requirements would be painful. Sometimes the use of translucency might be essential to understand the diagram which will again run counter to the SC. Would it be possible to reframe this SC to apply to graphs, charts, icons and maybe simple illustrations? Either that or treat such complex diagrams as photographs or paintings (so that they are not required to have the contrast requirement). Because once we go in the territory of complex diagrams (like, but not limited to, the medical field) then as I have pointed out in above examples, things become very tricky. In case of something like a test or exam, I think we would need to add an exception as you suggested. Big +1 to that. Regarding the images I shared as example in my previous post, I am not sure of the licensing. However, the images linked here in this post are all from Wikipedia, so I think they are good enough to be used. |
It sounds similar to the "essential" exception of 1.4.5:
Instead of text, it would be the graphic... I think that would cover all those scenarios? And can be further demonstrated with examples in the Understanding doc. |
Yes, that sounds good to me (along with the exception regarding the test/exam discussed above). I think that should cover everything that I can think of atm. |
I think the "essential" one covers the test/exam examples as well? Not providing the answers is essential! |
Yeah, makes sense! |
First bullet needs an "If, then". I think there could be an exception for photos: The visual presentation of graphical objects that are essential for understanding the content or functionality have a contrast ratio of at least 4.5:1 against their adjacent color(s), except for the following:
GLOSSARY |
Hi @DavidMacDonald, The lack of "if-then" for thicker keeps it to the same format as text contrast, should we change that? Also, I started with a similar exception for photographs, but from the discussion with @bruce-usab the "sensory" exception was intended to cover photographs and more. |
@bruce-usab I don't think the photo exception proposal a direct match to sensory experience ... what if the "primary intent" of the photo was not to provide a "sensory experience" but rather to increase understanding of the content. In WCAG, the sensory exception was primarily meant for Picasso paintings etc...so alt text wouldn't have to explain every swirl. It wasn't really meant for photos of explainable things in the natural world. We expected alt text for those. I'd say leave the exception in for first draft. |
Hmmm... but it doesn't read as clearly as 1.4.3... let's see...
I think that's a better match. |
Ok, I've updated 'thicker' (PR and description), thanks. On the photographs, if you look at @shwetank's examples we need a fairly broad category of: stuff that would become invalid if you changed the appearance. I think the "sensory" is "essential" is a good approach, but of course we'll get more examples when it goes out to a wider audience... |
OK, let's see what the public says. |
merged to FPWD_review |
The First Public Working Draft FPWD, is a good test case of this. The orange boxes around the "proposed" SCs Mike Elledge asks:
I think this is a good test for the new SC 1.4.12 Graphic contrast. How would I evaluate this in an audit?
There is a non graphical alternative, the word "Proposed". But there does not appear to be a provision for a visual text alternative under this SC. There is no exception where the important information is provided in another way such as in text. So I don't know whether I'd pass this orange box or not... I'm leaning toward "no".... but I think the word "proposed" is a sufficient means of conveying the information and would like to see an exception
Or
OR Add to the understanding
|
I think this is covered the core SC, a graphic is not “essential for understanding” if there is a visible text alternative. There used to be an explicit exception for conforming alternates, but we had comments to take it out as it duplicates the core text (I think Wilco was one, what's his github handle?) See the wiki page for a 1st draft understanding doc. |
Adding the graphics contrast SC #9 plus two glossary terms for graphical object, and CSS pixel.
Latest text:
Graphics Contrast
The visual presentation of graphical objects that are essential for understanding the content or functionality have a contrast ratio of at least 4.5:1 against the adjacent color(s), except for the following:
Glossary items
graphical object
A graphic or section of a graphic that represents a distinct object or sub-component with semantic meaning. It may be a component of a larger structured graphic such as a chart or map. There is a related concept in the ARIA graphics module for graphics with a document structure but this applies to bitmap and vector graphics, or distinct visual elements within them.
CSS Pixel
A CSS pixel is the canonical unit of measure for all lengths and measurements in CSS. This unit is density-independent, and distinct from actual hardware pixels present in a display. User agents and operating systems should ensure that a CSS pixel is set as closely as possible to the reference pixel, which takes into account the physical dimensions of the display and the assumed viewing distance (factors which cannot be determined by content authors).