monks/text_underline_position

The text-underline-position CSS property specifies the position of the underline which is set using the {{cssxref(“text-decoration”)}} property’s underline value.

Values

pub const auto_: #(String, String)
  • : The {{glossary(“user agent”)}} uses its own algorithm to place the line at or under the {{glossary(“/Baseline/Typography”, “alphabetic baseline”)}}.
pub const from_font: #(String, String)
  • : If the font file includes information about a preferred position, use that value. If the font file doesn’t include this information, behave as if auto was set, with the browser choosing an appropriate position.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const left: #(String, String)
  • : In vertical writing-modes, this keyword forces the line to be placed on the left side of the text. In horizontal writing-modes, it is a synonym of auto.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-underline-position

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)
  • : In vertical writing-modes, this keyword forces the line to be placed on the right side of the text. In horizontal writing-modes, it is a synonym of auto.
pub const under: #(String, String)
  • : Forces the line to be set below the alphabetic baseline, at a position where it won’t cross any descenders. This is useful for ensuring legibility with chemical and mathematical formulas, which make a large use of subscripts.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for text-underline-position. It will be wrapped in var() and have -- prepended.

Search Document