--- title: text-decoration-skip slug: Web/CSS/text-decoration-skip translation_of: Web/CSS/text-decoration-skip ---
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.
/* 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;
{{cssinfo}}
none
objects
spaces
ink
edges
box-decoration
{{csssyntax}}
<p>Hey, grab a cup of coffee!</p>
p { margin: 0; font-size: 3em; text-decoration: underline; text-decoration-skip: ink; }
{{EmbedLiveSample("Example", "100%", 60)}}
Спецификация | Статус | Комментарий |
---|---|---|
{{SpecName("CSS3 Text Decoration", "#text-decoration-skip-property", "text-decoration-skip")}} | {{Spec2("CSS3 Text Decoration")}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | {{CompatChrome(57)}} | {{CompatNo}}[2] | {{CompatNo}}[1] | {{CompatNo}} | {{CompatOpera(44)}} | {{CompatNo}}[3] |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatChrome(57)}} | {{CompatChrome(57)}} | {{CompatNo}}[1] | {{CompatNo}} | {{CompatOperaMobile(44)}} | {{CompatNo}}[3] |
[1] This feature is not implemented yet. See {{bug(812990)}}.
[2] This feature is not implemented yet. See the related request.
[3] Safari implements a {{property_prefix("-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.