monks/text_decoration_line

The text-decoration-line CSS property sets the kind of decoration that is used on text in an element, such as an underline or overline.

Values

pub const blink: #(String, String)
  • : The text blinks (alternates between visible and invisible). Conforming user agents may not blink the text. This value is deprecated in favor of CSS animations.
pub const grammar_error: #(String, String)
  • : Each line of text uses the user agents’ method of highlighting grammar mistakes, which is a dotted green line in most browsers.> [!NOTE]> When using spelling-error and grammar-error values, the browser disregards the other properties in the {{cssxref(“text-decoration”)}} shorthand (such as {{cssxref(“text-underline-position”)}}, color, or stroke).
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const line_through: #(String, String)
  • : Each line of text has a decorative line going through its middle.
pub const none: #(String, String)
  • : Produces no text decoration.
pub const overline: #(String, String)
  • : Each line of text has a decorative line above it.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-decoration-line

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const spelling_error: #(String, String)
  • : Each line of text uses the user agents’ method of highlighting spelling mistakes, which is a dotted red line in most browsers.
pub const underline: #(String, String)
  • : Each line of text has a decorative line beneath it.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document