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
Copy file name to clipboardExpand all lines: _rules/text-contrast-afw4f7.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ For each test target, the [highest possible contrast][] between the [foreground
46
46
47
47
- Text that has the same foreground and background color (a contrast ratio of 1:1) is not considered to be "visual presentation of text", making it inapplicable to the success criterion. Text hidden in this way can still cause accessibility issues under other success criteria, depending on the content.
48
48
49
+
- The definition of [disabled element][disabled] assumes that when the `aria-disabled` attribute is specified on an element, this element has also been disabled for users that do not rely on [assistive technology][]. If this is not the case, that definition may produce incorrect results and in consequence this rule might be Inapplicable to some text nodes that still require a good contrast ratio.
50
+
49
51
## Accessibility Support
50
52
51
53
- Different browsers have different levels of support for CSS. This can cause contrast issues in one browser that do not appear in another. Because of that, this rule can produce different results depending on the browser that is used. For example, a text that is positioned using CSS transform may be on a different background in a browser that does not support CSS transform.
@@ -380,6 +382,7 @@ This text is part of a label of a [disabled][] widget, because it is in a `label
380
382
381
383
[accessible name]: #accessible-name'Definition of Accessible Name'
Copy file name to clipboardExpand all lines: pages/glossary/disabled-element.md
+10-29Lines changed: 10 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -7,38 +7,19 @@ input_aspects:
7
7
- DOM tree
8
8
---
9
9
10
-
An element is considered disabled when it has been rendered [inoperable][]using one of the following properties:
10
+
An element is _disabled_when it has been rendered [inoperable][]in one of the following ways:
11
11
12
-
1. The [`disabled`][disabled] attribute. The presence of this attribute, regardless of its value, on a
12
+
1. The element matches the [`:disabled` pseudo-class][disabled pseudo-class]. For HTML elements this means that the element is [actually disabled][].
13
13
14
-
-[`button`][button],
15
-
-[`input`][input],
16
-
-[`select`][select],
17
-
-[`textarea`][textarea],
18
-
-[form-associated custom element][],
19
-
- or [`fieldset`][fieldset] element
14
+
2. The element has a [shadow-including ancestor][] whose `aria-disabled`[attribute value][] is "true".
20
15
21
-
will disable the element itself if it is not a [`fieldset`][fieldset] or, if it is, will disable any [descendants][descendant] of the element, excluding those that are [descendants][descendant] of the first [`legend`][legend][child][] of the element.
16
+
#### Assumptions
22
17
23
-
**Note:** When the [`disabled`][disabled] attribute is specified on a [`fieldset`][fieldset]element, [shadow-including descendants][shadow-including descendant] are **not** disabled by default. Such behavior may however be explicitly implemented by [form-associated custom elements][form-associated custom element].
18
+
This definition assumes that when the `aria-disabled` attribute is specified on an element, this element has also been disabled for users that do not rely on [assistive technology][]. For example, this can be done by disabling pointer events using the `pointer-events` property and by disabling keyboard interactions using the `tabindex` attribute. If this is not the case, the definition will produce incorrect results.
24
19
25
-
2. The [`aria-disabled`][aria-disabled] attribute. The presence of this attribute with a value that is an [ASCII case-insensitive](https://infra.spec.whatwg.org/#ascii-case-insensitive) match for `true` on an element will communicate its state, and the state of its [shadow-including descendants][shadow-including descendant], as "disabled" to [assistive technology][].
26
-
27
-
**Note:** When the [`aria-disabled`][aria-disabled] attribute is specified on an element, it is assumed that the element has also been disabled for users that do not rely on [assistive technology][]. For example, this can be done by disabling pointer events using the [`pointer-events`][pointer-events] property and by disabling keyboard interactions using the [`tabindex`][tabindex] attribute.
0 commit comments