Testar på krav:
Innhaldstype:
Alt tekstinnhald
Krav til samsvar:
Applicability
This rule applies to any visible character in a text node that is a child in the flat tree of an HTML element, except if the text node has an ancestor in the flat tree for which at least one of the following is true:
Expectation
For each test target, the highest possible contrast between the foreground colors and background colors is at least 7:1 or 4.5:1 for larger scale text, except if the test target is part of a text node that is purely decorative or does not express anything in human language.
Assumptions
- Success criterion 1.4.6 Contrast (Enhanced) has exceptions for "incidental" text, which includes inactive user interface components and decorative texts. The rule assumes that text nodes that should be ignored are disabled or hidden from assistive technologies. If this isn't the case, the text node could fail this rule while the success criterion could still be satisfied.
- Success criterion 1.4.6 Contrast (Enhanced) also has an exception for logos and brand names. Since logos and brand names are usually displayed through images to ensure correct rendering, this rule does not take logos or brand names into consideration. If a logo or brand name is included using text nodes, the text node could fail while the success criterion could still be satisfied.
- 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.
- The definition of disabled element 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.