This rule checks that the style attribute is not used to lock text spacing properties (line-height,
letter-spacing, word-spacing) with !important, except when the values already meet accessibility
requirements:
word-spacing must be at least 0.16 times the font size. letter-spacing must be at least 0.12 times the font size line-height must be at least 1.5 times the font size. Text spacing directly affects readability. WCAG 2.2 requires that users be able to adjust spacing to meet their needs — for example, increasing line height to reduce crowding or adjusting letter/word spacing for better parsing.
When these properties are set with !important in inline styles, they override user stylesheets and accessibility tools. This can block
users with dyslexia, visual processing disorders, or other reading difficulties from customizing spacing. However, if the values already meet or
exceed the thresholds above, they are considered sufficiently accessible and !important is allowed.
If !important is applied with values below thresholds, some users may find the text difficult or impossible to read, potentially
violating WCAG 2.2 Level AA.
!important from these properties in inline styles, or <p style="line-height: 1.2 !important; letter-spacing: 0.1em !important;"> Text content </p>
<p style="line-height: 1.5 !important; letter-spacing: 0.12em !important;"> Text content </p>
<p style="line-height: 1.2; letter-spacing: 0.1em;"> Text content </p>