Skip to main content
Version: v6

Important directive in word spacing style attributes is not wide enough

Important directive in word spacing style attributes is not wide enough — rule summary
FieldValue
Rule codeText_WordSpacing_Important_Detect
WCAG conformance levelAA
WCAG success criterion1.4.12 Text Spacing
Must be fixed at sourceYes

Description

We detected the use of the CSS '!important' directive applied on the word-spacing attribute. When the !important CSS directive is used, users with their own stylesheets are prevented from applying them to certain elements on the page and as a result, are unable to restylize text and prevents tools from providing assitive style enhancements. We recommend modifying style attributes without the CSS !important directive to allow user-based enhancements that may assist with the readability of the text presentation.

How to fix

If the word-spacing is not at least 0.16 times the utilized font-size, remove the '!important' directive from text-based word-spacing styles and ensure proper CSS inheritance is utilized instead. You can be more specific about CSS selector targetting such as: 'body main .wordspaced { word-spacing: 0.15rem; }' instead of forced, important styles like '.spacedlines { word-spacing: 0.15rem !important; }'.