Description
This rule verifies if there is defined font-style
type italic
for a text with length more than 80 characters.
Context
WCAG Understanding Guideline 3.1 includes an advisory technique for avoiding chunks of italic text
. Similarly WebAIM advises as follows: Do not use italics or bold on long sections of text
, but at the same time use various stylistic elements (italics, bold, color, brief animation, or differently-styled content) to highlight important content
.
This rule checks 2 cases:
- Determine reasonable text length – must be less than 80 characters.
- Determine if element has defined
font-style
typeitalic
.
How to fix it
The rule passes when specified element contains text with a length of more than 80 characters and has no defined style font-style
type italic
.
Standard
Best Practices