diff --git a/_rules/content-present-reflow-sc9kkf b/_rules/content-present-reflow-sc9kkf new file mode 100644 index 0000000000..209f527394 --- /dev/null +++ b/_rules/content-present-reflow-sc9kkf @@ -0,0 +1,257 @@ +--- +id: sc9kkf +name: Content is not missing at 320 CSS pixels +rules_format: 1.1 +rule_type: atomic +description: | + This rule checks content is not missing when the viewport is set to 320 CSS pixels in the orientation of the text. +accessibility_requirements: + wcag21:1.4.10: # Reflow (AA) + forConformance: true + failed: not satisfied + passed: further testing needed + inapplicable: further testing needed +input_aspects: + - DOM Tree + - CSS Styling +acknowledgments: + authors: + - Helen Burge + previous_authors: + - +--- + +## Applicability + +This rule applies to any non-excepted element containing visible content or functional components, requiring text to reflow when the viewport is set to a width of 320 CSS pixels for horizontal languages or a height of 256 CSS pixels for vertical languages; to align applicability more closely with these reflow requirements, it can be refined to target only visible content with a height of at least 320 CSS pixels on pages with vertical scrolling, or a height of at least 256 CSS pixels on pages with horizontal scrolling. + +## Expectation (1) + +Each target element: + +Retains all content and functionality when viewed with a height of at least 320 CSS pixels on pages with vertical scrolling, or a height of at least 256 CSS pixels on pages with horizontal scrolling: +- Does not cut-off, remove, or make content unavailable as a result of viewport constraints, zoom, or responsive behaviour; and +- Ensures that any content that is visually cut-off at this viewport size is still programmatically available and accessible to users, even if not immediately visible; and +- Allows a scroll because the content cannot change to the size of the screen without losing meaning. + +## Background + +This rule supports WCAG 2.1 Success Criterion 1.4.10 Reflow, which requires that content be presented without loss of information or functionality at a width equivalent to 320 CSS pixels. When content is missing at smaller viewport sizes, users may lose access to essential information or controls, even if the layout appears functional. Responsive design should reposition or adapt content, not remove it entirely, unless an equivalent mechanism provides access. + +### Assumptions + +There are no assumptions. + +### Accessibility Support + +There are no accessibility support issues known. + +## Examples + +### Passed + +#### Passed Example 1 + +Content remains fully available after reflow. + +```html +
+ All text content remains visible and accessible when the viewport is reduced. +
++ Additional instructions available to screen reader users. +
+``` + +#### Passed Example 4 + +Content is moved in the layout but still present. + +```html + + +``` + +#### Passed Example 5 + +Images resize but are still visible. + +```html +
+```
+
+#### Passed Example 6
+
+Form fields collapse in an accordian but remain accessible when expended.
+
+```html
+
+```
+
+#### Passed Example 7
+
+Content requiring two-dimensional layout (covered under reflow exceptions).
+
+```html
+| Column | Column |
|---|
+```
+
+#### Failed Example 7
+
+Collapsed content has no mechanism to access it.
+
+```html
+
+```
+
+### Inapplicable
+
+#### Inapplicable Example 1
+
+Content explicitly hidden from all users.
+
+```html
+