2.1.1.33 text-underline-position

textunderlinepositionof type DOMString, read/write

Sets or retrieves the position of the underline decoration that is set through the textDecoration property of the object. This property has a default value of auto. The other possible values are above, below, and auto-pos.

text-underline-position

Value:

[ auto | above | below | auto-pos ]

Initial:

auto

Applies to:

All elements

Inherited:

yes

Percentages:

N/A

Media:

visual

Computed value:

As specified

Values have the following meaning:

auto

Decoration appears above the text if the lang attribute is set to ja, which is the language code abbreviation for Japanese, and the -ms-writing-mode attribute is set to tb-rl, which causes vertical inline text progression. If not, the decoration appears below the text.

above

Decoration appears above the text.

below

Decoration appears below the text.

auto-pos

Same as auto.