CKTIS / CSS
text-decoration-skip-ink
Controls gaps in underlines and overlines where they cross glyph shapes; it does not create decorations.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
text-decoration-skip-ink: auto | none | all;text-decoration-skip-ink controls glyph avoidance for underlines and overlines. It neither affects line-throughs nor enables decorations.
The initial auto lets the browser choose gaps, considering the script. none forbids these gaps; all requires them at intersections, including a small clearance on either side of the glyph.
The property is inherited. It controls ink skipping over the element’s text, including for decoration lines drawn by an ancestor. Setting it on a descendant can therefore change the gaps in an ancestor’s line over that descendant’s text. The example compares values. Verify support and rendering locally, especially for all; geometry depends on the font and browser.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>text-decoration-skip-ink</title>
<style>
.sample {
font: 48px serif;
text-decoration: underline;
}
.none { text-decoration-skip-ink: none; }
.auto { text-decoration-skip-ink: auto; }
.all { text-decoration-skip-ink: all; }
</style>
<p class="sample none">none: gyp</p>
<p class="sample auto">auto: gyp</p>
<p class="sample all">all: gyp</p>
</html>Result
Three underlined rows: none: gyp; auto: gyp; all: gyp. With supported values, none prevents glyph-related gaps; auto permits them; all requires them wherever the underline crosses glyph ink. Exact geometry depends on the font and browser.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.