You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==== I1 - Conflicting or incomplete image accessibility
3
3
4
-
*Rule description:* this rule checks that all images have complete and non-conflicting accessibility information. It flags images that are missing required accessibility attributes or are marked both decorative and informative (mixed signals).
4
+
*Rule description:* this rule checks that all images have complete and non-conflicting accessibility information. It flags images that send mixed signals about their purpose (both decorative and informative) or have incomplete accessibility information. When `+a11ychecker_allow_decorative_images+` is `+false+`, this rule also flags decorative images as not allowed.
<!-- When decorative not allowed (if a11ychecker_allow_decorative_images = false) -->
43
+
<img src="spacer.gif" alt="" role="presentation">
35
44
----
36
45
37
-
These examples show various accessibility issues: missing alt text, conflicting decorative and informative attributes, and inconsistent information between attributes.
46
+
These examples show various accessibility issues: mixed signals, incomplete intent, and decorative images when not allowed.
38
47
39
48
.Compliant examples
40
49
[source,html]
41
50
----
42
-
<!-- Informative image with appropriate alt text -->
43
-
<img src="logo.png" alt="Company Name Logo">
51
+
<!-- Informative image with meaningful alt text -->
Copy file name to clipboardExpand all lines: modules/ROOT/partials/a11y-rules/i2.adoc
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
[[I2]]
2
2
==== I2 - Missing `+alt+` attribute
3
3
4
-
*Rule description:* this rule checks that all `<img>` elements include an `+alt+` attribute, even if other accessible name properties like `+aria-label+`, `+aria-labelledby+`, or `+title+` are present. This ensures images are always programmatically identified.
4
+
*Rule description:* this rule checks that all `<img>` elements include an `+alt+` attribute, even if other accessible name properties like `+aria-label+`, `+aria-labelledby+`, or `+title+` are present. The `+alt+` attribute is required for all images, and informative images must have at least one meaningful text alternative.
These examples fail because they're missing the required alt attribute, even though some have other accessibility attributes.
38
+
These examples fail because they're missing the required `+alt+` attribute. Note: Images with no attributes at all trigger rule I1 for incomplete intent, not I2.
40
39
41
40
.Compliant examples
42
41
@@ -60,5 +59,5 @@ These examples fail because they're missing the required alt attribute, even tho
60
59
title="Settings">
61
60
----
62
61
63
-
These examples all include the required alt attribute, properly implementing image accessibility.
62
+
These examples all include the required `+alt+` attribute and provide meaningful text alternatives for informative images.
Copy file name to clipboardExpand all lines: modules/ROOT/partials/a11y-rules/i3.adoc
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
[[I3]]
2
2
==== I3 - Filename used as `+alt+` text
3
3
4
-
*Rule description:* this rule checks that the `+alt+` attribute does not use a filename (e.g., `+photo.jpg+`) as a substitute for meaningful image description. Using filenames as `+alt+` text does not help users understand the image's content.
4
+
*Rule description:* this rule checks that the `+alt+` attribute does not use a filename (e.g., `+photo.jpg+`) as a substitute for meaningful image description. Filenames like "IMG_1234.jpg" or "photo.png" don't help users understand the image content.
Copy file name to clipboardExpand all lines: modules/ROOT/partials/a11y-rules/i4.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
[[I4]]
2
2
==== I4 - Overly long `+alt+` text
3
3
4
-
*Rule description:* this rule checks for `+alt+` text that exceeds the configured character limit (default: 150 characters). Long descriptions may overwhelm screen reader users and should be replaced with concise summaries, with more detail provided in surrounding content if necessary.
4
+
*Rule description:* this rule checks for `+alt+` text that exceeds the configured character limit (default: 150 characters). Long descriptions can be difficult for screen reader users to process. Complex images might need detailed descriptions in the surrounding text instead, though some images may require longer descriptions to be fully understood.
0 commit comments