SIA-R92Word spacing in style attributes is not !important

Accessibility requirements

This rule tests conformance of the following accessibility requirements:

Description

This rule checks that the style attribute is not used to prevent adjusting word-spacing by using !important, except if it's at least 0.16 times the font size.

Applicability

This rule applies to every element in the HTML namespace that is visible and for which the style attribute declares the word-spacing CSS property.

Expectations

  1. For the element, one of the following is true:

An element has a wide enough word spacing if the computed value of its word-spacing property is at least 0.16 times the computed value of its font-size property.

Assumptions

This rule makes the following assumption:

  • There is no mechanism available on the page to adjust word-spacing.

Accessibility support

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 word-spacing through author origin, this rule should not be used.

Acknowledgments

This document includes material copied from or derived from https://act-rules.github.io/rules/9e45ec/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).