CSS text-decoration-skip-ink Property

The CSS text-decoration-skip-ink property controls whether underlines and overlines are interrupted where they would cross the shapes of text characters.

It helps prevent decoration lines from obscuring parts of letters, particularly descenders in characters such as g, j, p, q, and y. The property accepts auto, none, and all, allowing browsers to adjust decorations automatically or draw them continuously.

Unlike the deprecated text-decoration-skip property, text-decoration-skip-ink specifically addresses intersections between decoration lines and glyph ink. It does not control skipping around whitespace, inline objects, or element boundaries.

text-decoration-skip-ink Syntax

The property accepts one of three keywords: auto, none, or all.

Basic Syntax

.example {
  text-decoration-skip-ink: auto;
}

This allows the browser to interrupt decoration lines where they would cross glyph ink.

Available Values

.example {
  text-decoration-skip-ink: auto;
}
.example {
  text-decoration-skip-ink: none;
}
.example {
  text-decoration-skip-ink: all;
}

Only one of these keywords can be specified in a declaration.

CSS-Wide Keywords

.example {
  text-decoration-skip-ink: initial;
}
.example {
  text-decoration-skip-ink: inherit;
}
.example {
  text-decoration-skip-ink: unset;
}
.example {
  text-decoration-skip-ink: revert;
}
.example {
  text-decoration-skip-ink: revert-layer;
}

The initial value is auto. Because the property is inherited, unset normally behaves like inherit.

Valid Examples

a {
  text-decoration-skip-ink: auto;
}
h2 {
  text-decoration-skip-ink: none;
}
.decorated-text {
  text-decoration-skip-ink: all;
}

Invalid Examples

.example {
  text-decoration-skip-ink: yes;
}
.example {
  text-decoration-skip-ink: always;
}
.example {
  text-decoration-skip-ink: auto none;
}
.example {
  text-decoration-skip-ink: 3px;
}
.example {
  text-decoration-skip-ink: underline;
}

These declarations are invalid because the property accepts only its defined keywords or CSS-wide keywords.

Property Values

Value Description
auto Allows the browser to skip glyph ink where appropriate, particularly for underlines crossing descenders.
none Disables glyph ink skipping, allowing decoration lines to pass through character shapes.
all Requests skipping around all glyph intersections, including cases where automatic skipping might be avoided.

Property Characteristics

Characteristic Value
Initial value auto
Inherited Yes
Applies to All elements
Computed value As specified
Animation type Discrete
Percentages Not applicable
Affects Underlines and overlines
Initial behavior Automatic glyph ink skipping
Specification CSS Text Decoration Module Level 4

Important Distinction

The auto and all values can produce similar results with ordinary Latin text. Their intended differences are more noticeable in certain scripts and typographic situations.

Browser support for all is less consistent than support for auto and none.

How It Works

When a browser draws an underline or overline, the decoration may intersect the visible shapes of characters. The text-decoration-skip-ink property determines whether those intersections are avoided.

Step 1: Create an Underline

.example {
  text-decoration-line: underline;
}

The browser draws an underline using the normal text decoration rules.

Step 2: Enable Automatic Skipping

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

The browser may interrupt the underline where it intersects character descenders.

Step 3: Disable Skipping

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
}

The underline remains continuous through glyph intersections.

Step 4: Request All Intersections Be Skipped

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: all;
}

Where supported, the browser skips all glyph intersections rather than applying the selective behavior associated with auto.

Step 5: Customize the Decoration

.example {
  text-decoration-line: underline;
  text-decoration-color: #2563eb;
  text-decoration-thickness: 3px;
  text-decoration-skip-ink: auto;
}

The browser draws a blue underline and applies automatic glyph ink skipping.

Important Consideration

Ink skipping affects how a decoration is painted. It does not remove text, change character spacing, or alter the element's layout dimensions.

The auto Value

The auto keyword allows the browser to interrupt underlines and overlines where they would cross glyph ink.

It is the initial value and is generally the preferred setting for readable underlined text.

Basic Example

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

Link Underline

a {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

The underline can be interrupted around letter descenders to improve readability.

Colored Underline

.example {
  text-decoration-line: underline;
  text-decoration-color: #2563eb;
  text-decoration-skip-ink: auto;
}

Thick Underline

.example {
  text-decoration-line: underline;
  text-decoration-thickness: 4px;
  text-decoration-skip-ink: auto;
}

Thicker underlines can make glyph intersections more noticeable, depending on their position.

Why auto Is Useful

Automatic skipping reduces the chance that decoration lines will obscure parts of characters while preserving the familiar appearance of underlined text.

Important Consideration

The browser determines where interruptions are appropriate. The exact gaps can vary with font metrics, script, decoration thickness, and browser implementation.

The none Value

The none keyword disables glyph ink skipping. Decoration lines remain continuous even where they cross character shapes.

Basic Example

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
}

Continuous Decorative Underline

.decorative-heading {
  text-decoration-line: underline;
  text-decoration-color: #2563eb;
  text-decoration-thickness: 3px;
  text-decoration-skip-ink: none;
}

The underline remains continuous beneath the heading.

Continuous Overline

.overlined-text {
  text-decoration-line: overline;
  text-decoration-skip-ink: none;
}

The overline is not interrupted to avoid glyph intersections.

Using none With the Shorthand

.example {
  text-decoration: underline solid #2563eb 2px;
  text-decoration-skip-ink: none;
}

The shorthand creates the underline, while text-decoration-skip-ink controls glyph skipping separately.

When none Is Useful

Continuous decorations can be appropriate for decorative headings, typography experiments, and designs where an uninterrupted line is intentional.

Important Consideration

Disabling ink skipping can reduce readability when an underline crosses descenders. Test the result with the actual font and text used on the page.

The all Value

The all keyword requests that decoration lines skip all glyph intersections, including cases where auto may preserve continuous decoration.

Basic Example

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: all;
}

Colored Decoration

.example {
  text-decoration-line: underline;
  text-decoration-color: #059669;
  text-decoration-skip-ink: all;
}

Thick Decoration

.example {
  text-decoration-line: underline;
  text-decoration-thickness: 4px;
  text-decoration-skip-ink: all;
}

How all Differs From auto

The auto value allows browsers to apply script-sensitive skipping rules. The all value requests skipping even for glyphs that automatic behavior may leave untouched.

Browser Support

The all value is not as consistently implemented as auto and none. Check compatibility before using it in production.

Fallback Example

.example {
  text-decoration-skip-ink: auto;
  text-decoration-skip-ink: all;
}

A browser that does not recognize all can retain the earlier auto declaration.

Important Consideration

Use all only when the intended typographic result requires its broader skipping behavior and the target browsers support it.

Glyph Intersections and Descenders

Glyph ink refers to the visible shapes of characters. Some letters extend below the baseline, and an underline may cross those extensions.

Common Descenders

In many Latin fonts, the lowercase letters g, j, p, q, and y extend below the baseline.

Example Text

<p class="descender-example">Typography improves page quality.</p>

Automatic Skipping

.descender-example {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

The browser may leave small gaps where the underline would otherwise touch descenders.

Continuous Underline

.descender-example {
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
}

The underline can cross those descenders.

Font Differences

Different fonts use different glyph shapes and underline positions. Some fonts naturally place underlines far enough below the text that few intersections occur.

Script Differences

Automatic skipping can vary across writing systems. The all value is intended to provide broader skipping behavior where supported.

Important Consideration

Do not assume every character with a descender will produce a visible interruption. Skipping occurs only where the decoration intersects the glyph ink and the applicable rules permit a gap.

Underline Positioning

The position and thickness of an underline affect whether it intersects glyph ink. Related CSS properties can therefore influence how noticeable ink skipping becomes.

Default Underline

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

Adjusting Underline Offset

.example {
  text-decoration-line: underline;
  text-underline-offset: 4px;
  text-decoration-skip-ink: auto;
}

Moving the underline farther from the text may reduce intersections with descenders.

Adjusting Underline Thickness

.example {
  text-decoration-line: underline;
  text-decoration-thickness: 4px;
  text-decoration-skip-ink: auto;
}

A thicker line can intersect more glyph ink, making automatic skipping more visible.

Using Relative Thickness

.example {
  text-decoration-line: underline;
  text-decoration-thickness: 0.1em;
  text-decoration-skip-ink: auto;
}

The underline thickness scales with the font size.

Changing Underline Position

.example {
  text-decoration-line: underline;
  text-underline-position: under;
  text-decoration-skip-ink: auto;
}

The under value places the underline below the text's descenders where appropriate, which may reduce the need for ink skipping.

Important Consideration

Underline offset and position are separate from ink skipping. One controls where the line is drawn, while the other controls interruptions where the line intersects glyphs.

Decoration Types

The text-decoration-skip-ink property applies to underlines and overlines, not to every type of text decoration.

Underlines

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

The browser may interrupt the underline around glyph intersections.

Overlines

.example {
  text-decoration-line: overline;
  text-decoration-skip-ink: auto;
}

Overlines can also be interrupted where they intersect glyph ink.

Strikethroughs

.example {
  text-decoration-line: line-through;
  text-decoration-skip-ink: auto;
}

Ink skipping does not apply to line-through decorations. The strikethrough remains drawn according to the normal decoration rules.

Multiple Decoration Lines

.example {
  text-decoration-line: underline overline;
  text-decoration-skip-ink: auto;
}

Both the underline and overline are eligible for glyph ink skipping.

Decoration Styles

.example {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-skip-ink: auto;
}

Ink skipping can interact with different decoration styles, although the visible result depends on the browser and the shape of the decoration.

Several CSS properties work with text-decoration-skip-ink to control text decoration appearance.

Property Purpose
text-decoration Shorthand for decoration line, color, style, and thickness.
text-decoration-line Specifies underline, overline, or line-through decorations.
text-decoration-color Controls the color of decoration lines.
text-decoration-style Controls solid, double, dotted, dashed, or wavy decoration styles.
text-decoration-thickness Controls decoration line thickness.
text-decoration-skip Deprecated legacy property for several types of decoration skipping.
text-underline-offset Adjusts the distance between an underline and its normal position.
text-underline-position Controls underline positioning.

Combining Related Properties

.example {
  text-decoration-line: underline;
  text-decoration-color: #2563eb;
  text-decoration-style: solid;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}

This creates a blue underline with a custom thickness and offset while allowing automatic glyph ink skipping.

Relationship With text-decoration

The text-decoration-skip-ink property is not one of the longhand components of the text-decoration shorthand.

.example {
  text-decoration-skip-ink: none;
  text-decoration: underline solid #2563eb 2px;
}

The shorthand does not reset the independently specified ink-skipping value.

Inheritance

Unlike text-decoration-line, the text-decoration-skip-ink property is inherited.

.parent {
  text-decoration-skip-ink: none;
}
.parent span {
  text-decoration-line: underline;
}

The descendant inherits the parent's none setting unless another declaration overrides it.

Practical Examples

Readable Link Underline

a {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

Allows underlines to avoid glyph intersections.

Custom Link Styling

.custom-link {
  color: #1d4ed8;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}

Creates a clearly visible underline with automatic ink skipping.

Continuous Heading Underline

.heading-underline {
  text-decoration-line: underline;
  text-decoration-color: #2563eb;
  text-decoration-thickness: 3px;
  text-decoration-skip-ink: none;
}

Maintains an uninterrupted decorative underline.

Automatic Overline Skipping

.overlined-text {
  text-decoration-line: overline;
  text-decoration-skip-ink: auto;
}

Allows the browser to avoid intersections between the overline and glyph ink.

Underline and Overline

.double-decoration {
  text-decoration-line: underline overline;
  text-decoration-color: #7c3aed;
  text-decoration-skip-ink: auto;
}

Applies automatic skipping to both decoration lines.

Thick Underline

.thick-underline {
  text-decoration-line: underline;
  text-decoration-thickness: 5px;
  text-decoration-skip-ink: auto;
}

Automatic skipping can help prevent a thick underline from obscuring descenders.

Wavy Underline

.wavy-underline {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #dc2626;
  text-decoration-skip-ink: auto;
}

Combines a wavy decoration with automatic glyph skipping.

Fallback for the all Value

.skip-all {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
  text-decoration-skip-ink: all;
}

Browsers that do not recognize all can retain the earlier auto value.

Inherited Skipping Behavior

.article-content {
  text-decoration-skip-ink: auto;
}
.article-content a {
  text-decoration-line: underline;
}

Links within the article inherit the automatic ink-skipping setting.

Responsive Underline Thickness

.responsive-link {
  font-size: 16px;
  text-decoration-line: underline;
  text-decoration-thickness: 0.1em;
  text-decoration-skip-ink: auto;
}
@media (min-width: 768px) {
  .responsive-link {
    font-size: 20px;
  }
}

The underline thickness scales with the font size while retaining automatic ink skipping.

text-decoration-skip-ink Example

This example compares automatic ink skipping with a continuous underline. Both samples use the same font, text, color, and underline thickness.

HTML Example

<div class="skip-ink-demo">
  <div class="skip-ink-sample">
    <strong>auto - Automatic Ink Skipping</strong>
    <p class="skip-auto">Typography improves page quality.</p>
  </div>
  <div class="skip-ink-sample">
    <strong>none - Continuous Underline</strong>
    <p class="skip-none">Typography improves page quality.</p>
  </div>
</div>

CSS Example

.skip-ink-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.skip-ink-demo .skip-ink-sample {
  padding: 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
.skip-ink-demo strong {
  display: block;
  margin-bottom: 12px;
  color: #334155;
  font-size: 14px;
}
.skip-ink-demo p {
  margin: 0;
  color: #1f2937;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.6;
  text-decoration-line: underline;
  text-decoration-color: #2563eb;
  text-decoration-thickness: 3px;
}
.skip-ink-demo .skip-auto {
  text-decoration-skip-ink: auto;
}
.skip-ink-demo .skip-none {
  text-decoration-skip-ink: none;
}
Browser Result
auto - Automatic Ink Skipping

Typography improves page quality.

none - Continuous Underline

Typography improves page quality.

Comparing the Results

Value Expected Result
auto The underline may contain small gaps where it intersects glyph descenders.
none The underline remains continuous through glyph intersections.

The difference is most noticeable around letters such as g, p, q, and y. The exact result depends on font metrics and browser rendering.

Changing the Underline Thickness

.skip-ink-demo p {
  text-decoration-thickness: 5px;
}

A thicker underline may make the difference between the two settings more visible.

Changing the Underline Offset

.skip-ink-demo p {
  text-underline-offset: 5px;
}

Increasing the offset moves the underline farther from the text, potentially reducing glyph intersections.

Using a Different Font

.skip-ink-demo p {
  font-family: Arial, sans-serif;
}

Different fonts have different descenders and underline metrics, so the visible interruptions may change.

Accessibility Considerations

Automatic ink skipping can improve text readability by preventing decoration lines from crossing character shapes.

Preserve Readable Characters

Use auto when underline intersections make characters difficult to distinguish.

Keep Links Recognizable

Small gaps in an underline should not prevent readers from identifying hyperlinks.

Avoid Excessively Thick Decorations

Thick underlines can obscure text, particularly when ink skipping is disabled.

Maintain Contrast

Decoration colors should remain visible against the background.

Test Different Fonts

Fonts vary in descender shapes and underline positions. Test the actual fonts used on the website.

Support Text Resizing

Check that underlines remain readable at larger font sizes and browser zoom levels.

Do Not Rely on Ink Skipping for Meaning

Ink skipping is a visual refinement. It should not be used as the only way to communicate information.

Use Semantic HTML

Use appropriate HTML elements for links, deleted text, and other meaningful content. Decoration styling does not replace semantic markup.

Common Mistakes

Using an Invalid Keyword

.example {
  text-decoration-skip-ink: always;
}

Use auto, none, or all.

Combining Multiple Values

.example {
  text-decoration-skip-ink: auto none;
}

The property accepts one keyword at a time.

Expecting the Property to Create an Underline

.example {
  text-decoration-skip-ink: auto;
}

Ink skipping does not create a decoration. Use text-decoration-line or the text-decoration shorthand to add an underline.

Confusing Ink Skipping With Underline Offset

Ink skipping controls interruptions, while text-underline-offset controls underline positioning.

Expecting Strikethroughs to Be Affected

.example {
  text-decoration-line: line-through;
  text-decoration-skip-ink: auto;
}

The property does not apply ink skipping to strikethrough decorations.

Assuming all Has Universal Support

Support for all varies. Provide a fallback when necessary.

Confusing the Property With text-decoration-skip

The deprecated property addressed several different skipping behaviors. The modern ink-skipping property specifically addresses glyph intersections.

Expecting Identical Gaps in Every Font

Glyph shapes and underline positions vary between fonts.

Expecting Skipping When There Is No Intersection

If an underline is positioned below all glyph ink, no visible interruption may be necessary.

Using a Color Value

.example {
  text-decoration-skip-ink: blue;
}

Use text-decoration-color to control decoration color.

Using a Length Value

.example {
  text-decoration-skip-ink: 4px;
}

Use text-decoration-thickness or text-underline-offset for supported length-based decoration adjustments.

Assuming the Property Is Not Inherited

The property is inherited. A value specified on a parent can affect descendant text decorations.

Important Considerations

Keep the following points in mind when using text-decoration-skip-ink:

  • The property controls interruptions where underlines and overlines intersect glyph ink.
  • The initial value is auto.
  • The property is inherited.
  • The auto value allows browser-controlled ink skipping.
  • The none value disables glyph ink skipping.
  • The all value requests skipping around all glyph intersections.
  • Support for all varies across browsers.
  • The property does not create text decoration lines.
  • Use text-decoration-line to create underlines and overlines.
  • The property does not apply to line-through decorations.
  • Ink skipping can improve readability around descenders.
  • Common Latin descenders include g, j, p, q, and y.
  • Visible interruptions depend on actual glyph intersections.
  • Font metrics affect underline placement and skipping behavior.
  • Different writing systems may use different automatic skipping rules.
  • Underline thickness can influence how noticeable skipping becomes.
  • Underline offset can reduce or increase intersections.
  • Underline position is controlled separately.
  • The property does not control decoration color.
  • The property does not control decoration style.
  • The property does not control decoration thickness.
  • The property is not part of the text-decoration shorthand.
  • The shorthand does not reset the ink-skipping value.
  • Ink skipping affects painting rather than layout dimensions.
  • The property does not remove or modify text characters.
  • The property does not control skipping around spaces or inline objects.
  • Use auto for typical readable link underlines.
  • Use none when a continuous decoration is intentional.
  • Test all before relying on its behavior.
  • Maintain recognizable links and accessible text.
  • Test decorations with different fonts, browsers, and zoom levels.

Browser Support

The CSS text-decoration-skip-ink property is widely available in modern browsers, including Chrome, Edge, Firefox, and Safari.

The auto and none values have broad support. The all value has more limited or inconsistent implementation, so compatibility should be checked separately.

For current compatibility information, visit Can I Use? and search for text-decoration-skip-ink.

Basic Compatibility

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: auto;
}

Automatic ink skipping is supported across modern browsers.

Continuous Underline

.example {
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
}

Disabling ink skipping is also broadly supported.

Feature Detection

@supports (text-decoration-skip-ink: auto) {
  .example {
    text-decoration-skip-ink: auto;
  }
}

This feature query checks whether the browser recognizes the automatic ink-skipping declaration.

Detecting the all Value

.example {
  text-decoration-skip-ink: auto;
}
@supports (text-decoration-skip-ink: all) {
  .example {
    text-decoration-skip-ink: all;
  }
}

This applies all only when the browser recognizes that value. Feature detection confirms syntax support, not identical rendering across browsers.

Fallback Example

.example {
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}

The underline remains visible even if the browser ignores the ink-skipping declaration.

Testing Recommendations

Test the actual font, underline thickness, and underline offset used in the design. Compare results with characters containing descenders and verify that links remain readable.

Specifications

The text-decoration-skip-ink property is defined in the CSS Text Decoration Module Level 4 specification.

CSS Text Decoration Module Level 4 - text-decoration-skip-ink Property

The specification defines the auto, none, and all values and describes how decoration lines interact with glyph ink.

For additional documentation and examples, consult MDN Web Docs.

MDN Web Docs: text-decoration-skip-ink