15. CSS Content and Positioning
CSS Content
Identify Content
Use ANDI to identify all meaningful page content inserted by CSS using ::before or ::after. Include inline styles.
-
Launch ANDI: hidden content.
-
Determine whether content ::before ::after is revealed as an option.
- If there is no page content inserted using ::before or ::after, this option will not show.
If there is no such content, the result for the following test ID(s) is DOES NOT APPLY: 15.A.
Check 1.3.1-meaningful-content-css-before-after
Test Name | Test ID | Test Condition |
---|---|---|
1.3.1-meaningful-content-css-before-after | 15.A | For the meaningful content provided via CSS pseudo-elements ::before and ::after, equivalent information is available in another way. |
Applicability:
This Test Condition DOES NOT APPLY (DNA) if there is no content OR no meaningful content inserted using ::before or ::after.
How to Test:
-
Launch ANDI: hidden content and select content ::before ::after to reveal all content.
- Content inserted using ::before ::after will be outlined in red.
-
Review all content inserted using ::before and :after and find all meaningful content.
-
If there is no meaningful content, mark 15.A DNA.
-
If meaningful content is found, continue to the next step.
-
-
Review the web page and determine whether for every instance of CSS content highlighted as using ::before ::after, the information conveyed by the CSS content is available another way.
Evaluate Results:
If the following is TRUE, then the Test Condition is TRUE and the content PASSES:
- All meaningful content inserted using ::before and ::after has equivalent information presented in another way.
CSS Positioning
Identify Content
Use ANDI to identify all content positioned with CSS and inline styles.
-
Launch ANDI, then select the Advanced Settings button; then select “linearize page” to remove CSS positioning from elements on the page.
-
If content is positioned with CSS, the information will be displayed with blue highlighting around the elements and those elements will be placed in the page in the same order in which they appear in the page code.
If there is no such content, the result for the following test ID(s) is DOES NOT APPLY: 15.B.
Check 1.3.2-content-order-meaning-css-position
Test Name | Test ID | Test Condition |
---|---|---|
1.3.2-content-order-meaning-css-position | 15.B | The reading order of the content (in context) is correct and the meaning of the content (in context) is preserved without CSS positioning. |
Applicability:
This Test Condition DOES NOT APPLY (DNA) if there is no content positioned using CSS.
How to Test:
-
Review all highlighted, linearized content.
-
Determine whether the reading order of content is still understandable after linearization. If necessary, toggle the linearization button to view the original position of the content.
Evaluate Results:
If the following is TRUE, then the Test Condition is TRUE and the content PASSES:
- The sequence and meaning of the content (in context) is understandable without CSS positioning.
Note:
- ANDI: structures, and the “reading order” link can also be used to reveal the reading order prior to linearizing the content. But it will not identify which content has been positioned with CSS.
Applicable Standards
Section 508/WCAG Success Criteria | Baseline Requirements |
---|---|
WCAG SC 1.3.1 Info and Relationships: Information, structure, and relationships conveyed through presentation can be programmatically determined or are available in text. WCAG SC 1.3.2 Meaningful Sequence: When the sequence in which content is presented affects its meaning, a correct reading sequence can be programmatically determined. |
18. CSS Content and Positioning |
Home/Table of Contents | Previous – 14. Tables | Next – 16. Pre-Recorded Audio-Only, Video-Only, and Animations