SIA-R93Line height in style attributes is not !important

Accessibility requirements

This rule tests conformance of the following accessibility requirements:


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


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


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

An element has a wide enough line height if the computed value of its line-height property is at least 1.5 or 1.5 times the computed value of its font-size property.


This rule makes the following assumptions:

  • There is no mechanism available on the page to adjust line-height.

  • When the computed value of the line-height property is normal, user agents choose a used value below 1.5.

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


This document includes material copied from or derived from Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).