Skip to content

Commit fccd494

Browse files
Update image-no-text-0va7u6.md
1 parent fed8e51 commit fccd494

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

_rules/image-no-text-0va7u6.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ Each test target has no [visible][] [text][human language], except if at least o
4242

4343
- <dfn id="0va7u6:decorative">decorative</dfn>: The image with text is [purely decorative][]; or
4444
- <dfn id="0va7u6:incidental">incidental</dfn>: The text is not a [significant][insignificant] part of the image; or
45-
- <dfn id="0va7u6:essential">essential</dfn>: The presentation of the text is [essential][].
45+
- <dfn id="0va7u6:essential">essential</dfn>: The presentation of the text is [essential][]; or
46+
- <dfn id="0va7u6:redundant">redundant</dfn>: The same information conveyed by the image of text is also available as real text.
4647

4748
## Background
4849

4950
This rule is designed specifically for [SC 1.4.5 Images of Text][sc1.4.5]. There are however only minimal differences between this criterion and [SC 1.4.9 Images of Text (No Exception)][sc1.4.9]. The two differences are that customizable images of text are allowed, and that images of text are allowed when the presentation cannot otherwise be achieved. These scenarios are so rare the rule ignores them as part of the assumptions, and so the [accessibility requirements mapping](#accessibility-requirements-mapping) of these two criteria is the same.
5051

52+
[SC 1.4.5 Images of Text][sc1.4.5] explicitly clarifies in its note that the success criterion is meant to address cases where images of text are used instead of actual text. If images of text are used in addition to real text to convey the same information, then the success criterion is satisfied.
53+
5154
### Assumptions
5255

5356
- This rule assumes that there is no mechanism to change the rendering of text within image resources on the page. For pages that _do_ provide such a mechanism, this rule might fail even if [SC 1.4.5 Images of Text][sc1.4.5] is satisfied.
@@ -166,6 +169,15 @@ These image resources referenced by the `input` elements are images of text (the
166169
/>
167170
```
168171

172+
#### Passed Example 9
173+
174+
This image resource referenced by the `img` element contains text that provides [redundant](#0va7u6:redundant) information. In fact, the same information conveyed by the image of text is also available as real text.
175+
176+
```html
177+
<img src="/test-assets/0va7u6/welcome.png" alt="" />
178+
<p>Welcome to our website</p>
179+
```
180+
169181
### Failed
170182

171183
#### Failed Example 1
@@ -195,15 +207,6 @@ This image resource referenced by the `background-image` property of the `div` e
195207
<div style="background-image: url(/test-assets/0va7u6/textimage.jpg); width: 500px; height: 200px;" />
196208
```
197209

198-
#### Failed Example 4
199-
200-
This image resource referenced by the `img` element contains text that provides redundant information, but it still is information, therefore it is not [decorative](#0va7u6:decorative).
201-
202-
```html
203-
<img src="/test-assets/0va7u6/welcome.png" alt="" />
204-
<p>Welcome to our website</p>
205-
```
206-
207210
#### Failed Example 5
208211

209212
This `img` element loads an SVG with text as an image resource. Because the SVG is loaded as an image resource, instead of being embedded in HTML the text cannot be selected or customized.

0 commit comments

Comments
 (0)