CARVIEW |
Select Language
HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://webplatform.github.io/docs/css/properties/text-decoration-skip/
access-control-allow-origin: *
expires: Thu, 16 Oct 2025 03:35:54 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: B39C:66128:198B4:24791:68F065C1
accept-ranges: bytes
age: 0
date: Thu, 16 Oct 2025 03:25:54 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210095-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760585154.191608,VS0,VE289
vary: Accept-Encoding
x-fastly-request-id: f436acf11d14e8da1edc6807ed084e936ab8056c
content-length: 162
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Thu, 09 Jan 2020 08:57:10 GMT
access-control-allow-origin: *
etag: W/"5e16eae6-1e15"
expires: Thu, 16 Oct 2025 03:35:54 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 7F2F:122D57:19E39:24CF5:68F065C2
accept-ranges: bytes
age: 0
date: Thu, 16 Oct 2025 03:25:54 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210095-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760585154.494300,VS0,VE299
vary: Accept-Encoding
x-fastly-request-id: e8bae44c320d2ed3f639d42bc892579213fc1b64
content-length: 2712
text-decoration-skip · WebPlatform Docs
This page is Ready to Use
Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.
text-decoration-skip
Summary
Specifies what parts of an element’s content are skipped over when applying any text decoration.
Overview table
- Initial value
objects
- Applies to
- All elements
- Inherited
- Yes
- Media
- visual
- Computed value
- as specified
- Animatable
- No
- CSS Object Model Property
textDecorationSkip
Syntax
text-decoration-skip: box-decoration
text-decoration-skip: edges
text-decoration-skip: ink
text-decoration-skip: none
text-decoration-skip: object
text-decoration-skip: spaces
Values
- none
- Will not skip anything; the text decoration will be drawn for all text content
- object
- Will skip the element (including it’s margin) if it’s atomic inline
- spaces
- Will skip white space, including:
- regular spaces - U+0020
- tabs - U+0009
- nbsp - U+00A0
- ideographic space - U+3000
- all fixed width spaces - examples: U+2000 to U+200A, U+202F and U+205F
- any adjacent letter-spacing or word-spacing
- ink
- Will skip over where any glyphs are drawn. It will interrupt the decoration line so that the text will show through where otherwise the decoration would cross through the text. This commonly includes ascenders and descenders of glyphs.
Note: The UA also may skip over small distances on the right or the left side of the glyph outline
- box-decoration
- Will skip over the box’s margin, border, and padding areas.
Note: It is not known yet if this is a needed value
- edges
- The text decoration will be inset slightly, so that two side by side elements do not appear to have a single continuous decoration. This is important for Chinese content, where underlining is a form of punctuation.
Examples
Skip ascenders and descenders, allowing text to show through any decoration.
p {
text-decoration-skip: ink;
}
Notes
This property inherits so the descendent elements can have different setting.
Related specifications
- CSS Text Decoration Module Level 3
- Candidate Recommendation
Attributions
Microsoft Developer Network: Article