Skip to content

Commit 4da5300

Browse files
Assumptions:
- adding "whitespace via CSS" clause to address review comment #2075 (comment) - rewording other parts.
1 parent 9723ed1 commit 4da5300

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_rules/visible-label-in-accessible-name-2ee8b8.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ For the target element, the [visible inner text][] is contained within the [acce
4343

4444
## Assumptions
4545

46-
This rule assumes that the [visible inner text][] is equal to the [label][https://www.w3.org/WAI/WCAG21/Understanding/label-in-name#dfn-label] in most cases (enough cases to be useful) even though "label" is not precisely defined at this point in history.
46+
This rule assumes that the [visible inner text][] is equal to the [label][https://www.w3.org/WAI/WCAG21/Understanding/label-in-name#dfn-label], even though "label" is not precisely defined at this point in history.
4747

48-
This rule assumes that neither the label nor the [visible inner text][] are rearranged with CSS so that they appear to the user in a different order than they appear in the DOM.
48+
This rule assumes that the visible label isn't rearranged with CSS so that it appears to the user in a different order than it appears in the DOM.
49+
50+
This rule assumes that the visible label doesn't use CSS to add whitespace where none exists in the DOM.
4951

5052
This rule assumes that for any word which appears in both the accessible name and the visible label, the same spelling and hyphenation is used in both places. For example: if "non-negative" is used in the accessible name and "nonnegative" is used in the visible label, that would violate this assumption. Or if "color" is used in the accessible name and "colour" is used in the visible label, that would also violate this assumption.
5153

0 commit comments

Comments
 (0)