!important letter spacing in
style attribute is wide enough
This rule tests conformance of the following accessibility requirements:
- The computed value of the
letter-spacingproperty of the target element is at least 0.12 times the computed value of its
This rule makes the following assumption:
There is no mechanism available on the page to adjust
The font size is constant for all text node children of the element. If
font-sizechanges (e.g., through use of the
::first-linepseudo-element) then the required letter spacing would also change throughout the element.
WCAG's meaning for the "Letter spacing style property" is the value of the CSS
letter-spacingproperty rather than the actual space between letters. The value of the CSS property is added to whichever spacing already exist (for example, due to kerning or justification). Thus, the actual space between letters can be larger than the value of the
The target text nodes children express something in a human language written in a script that that uses the
While some assistive technologies are able to set user origin or user agent origin styles, others, such as browser extensions, are only able to set styles with the author origin. Such assistive technologies cannot create styles "winning" the cascade sort over a
style attribute with an important declaration. If accessibility support does not include assistive technologies that override
letter-spacing through author origin, this rule should not be used.
<p style="letter-spacing: 0.15em !important"> The quick brown fox jumps over the lazy dog. </p>
<div style="font-size: 16px; letter-spacing: 2px !important"> <p style="font-size: 10px;"> The quick brown fox jumps over the lazy dog. </p> </div>
<p style="letter-spacing: 0.1em !important"> The quick brown fox jumps over the lazy dog. </p>
<div style="letter-spacing: 0.1em !important;"></div>
<p style="letter-spacing: 0.1em"> The quick brown fox jumps over the lazy dog. </p>
This document includes material copied from or derived from https://www.w3.org/WAI/standards-guidelines/act/rules/24afc2/. Copyright © 2023 W3C® (MIT, ERCIM, Keio, Beihang).