2.1.97 [CSS-Level2-2009] Section 16.3.1, Underlining, overlining, striking, and blinking: the 'text-decoration' property


The specification states:

 Value:                 none | [ underline || overline || line-through || blink ] | 
 Initial:               none
 Applies to:            all elements
 Inherited:             no (see prose)
 Percentages:           N/A
 Media:                 visual
 Computed value:        as specified

Quirks Mode and IE7 Mode (All Versions)

The inherit value of the text-decoration property is not supported.

An inline element that has the text-decoration property set to underline is not underlined.


The specification states:

 This property describes decorations that are added to the text of an element using the element's color. When specified on or propagated to an inline element, it affects all the boxes generated by that element, and is further propagated to any in-flow block-level boxes that split the inline (see section For block containers that establish an inline formatting context, the decorations are propagated to an anonymous inline element that wraps all the in-flow inline-level children of the block container. For all other elements it is propagated to any in-flow children. Note that text decorations are not propagated to floating and absolutely positioned descendants, nor to the contents of atomic inline-level descendants such as inline blocks and inline tables

Quirks Mode and IE7 Mode (All Versions)

The following variations apply:

  • The text-decoration property is incorrectly propagated to floated children and inline-block children.

  • inline-table elements are not supported.