This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The text-decoration-skip
CSS property specifies what parts of the 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.
Initial value | objects |
---|---|
Applies to | all elements |
Inherited | yes |
Media | visual |
Computed value | as specified |
Animation type | discrete |
Canonical order | order of appearance in the formal grammar of the values |
/* Single keyword */ text-decoration-skip: none; text-decoration-skip: objects; text-decoration-skip: spaces; text-decoration-skip: ink; text-decoration-skip: edges; text-decoration-skip: box-decoration; /* Multiple keywords */ text-decoration-skip: objects spaces; text-decoration-skip: ink edges box-decoration; /* Global keywords */ text-decoration-skip: inherit; text-decoration-skip: initial; text-decoration-skip: unset;
none
objects
spaces
letter-spacing
or word-spacing
.ink
edges
box-decoration
none | [ objects || spaces || ink || edges || box-decoration ]
<p>Hey, grap a cup of coffee!</p>
p { margin: 0; font-size: 3em; text-decoration: underline; text-decoration-skip: ink; }
Specification | Status | Comment |
---|---|---|
CSS Text Decoration Module Level 3 The definition of 'text-decoration-skip' in that specification. | Candidate Recommendation | Initial definition |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | No support[1] | No support[3] | No support[2] | No support | No support[1] | No support[4] |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | No support[1] | No support[1] | No support[2] | No support | No support[1] | No support[4] |
[1] This feature is not implemented yet. See Chromium bug 477917.
[2] This feature is not implemented yet. See bug 812990.
[3] This feature is not implemented yet. See the related request.
[4] Safari implements a -webkit prefixed version of this property since version 8, though only supports the value none
and the non-standard value skip
. All other values behave like those two values.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-skip