monks/text_decoration_skip
{{SeeCompatTable}}
The text-decoration-skip CSS property sets what parts of an element’s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors.
Most other browsers are converging on supporting the simpler {{cssxref(“text-decoration-skip-ink”)}} property.
Values
pub const box_decoration: #(String, String)
- : The text decoration is skipped over the box’s margin, border, and padding areas. This only has an effect on decorations imposed by an ancestor; a decorating box never draws over its own box decoration.
pub const edges: #(String, String)
- : The start and end of the text decoration is inset slightly (e.g., by half of the line thickness) from the content edge of the decorating box. Thus, adjacent elements receive separate underlines. (This is important in Chinese, where underlining is a form of punctuation.)

pub const leading_spaces: #(String, String)
- : The same as
spaces, except that only leading spaces are skipped.
pub const none: #(String, String)
- : Nothing is skipped. Thus, text decoration is drawn for all text content and across atomic inline-level boxes.
pub const objects: #(String, String)
- : The entire margin box of the element is skipped if it is an atomic inline such as an image or inline-block.
pub fn raw(value: String) -> #(String, String)
Enter a raw string value for text-decoration-skip
pub const revert_layer: #(String, String)
pub const spaces: #(String, String)
- : All spacing is skipped: all Unicode white space characters and all word separators, plus any adjacent {{cssxref(“letter-spacing”)}} or {{cssxref(“word-spacing”)}}.
pub const trailing_spaces: #(String, String)
- : The same as
spaces, except that only trailing spaces are skipped.