text-decoration styling
Method of defining the type, style and color of lines in the text-decoration property. These can be defined as shorthand (e.g. text-decoration: line-through dashed blue
) or as single properties (e.g. text-decoration-color: blue
)
Spec | https://www.w3.org/TR/css-text-decor-3/#line-decoration |
---|---|
Status | W3C Candidate Recommendation |
IE | Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|---|
98 (5) | |||||
95 (4) | 97 (5) | ||||
94 (4) | 96 (5) | TP (2,3) | |||
11 | 95 (5) | 93 (4) | 95 (5) | 15 (2,3) | 80 (5) |
10 | 94 (5) | 92 (4) | 94 (5) | 14.1 (2,3) | 79 (5) |
9 | 93 (5) | 91 (4) | 93 (5) | 14 (2,3) | 78 (5) |
8 | 92 (5) | 90 (4) | 92 (5) | 13.1 (2,3) | 77 (5) |
Show all | |||||
7 | 91 (5) | 89 (4) | 91 (5) | 13 (2,3) | 76 (5) |
6 | 90 (5) | 88 (4) | 90 (5) | 12.1 (2,3) | 75 (5) |
5.5 | 89 (5) | 87 (4) | 89 (5) | 12 (2,3,*) | 74 (5) |
88 (5) | 86 (4) | 88 (5) | 11.1 (2,3,*) | 73 (5) | |
87 (5) | 85 (4) | 87 (5) | 11 (2,3,*) | 72 (5) | |
86 (5) | 84 (4) | 86 (5) | 10.1 (2,3,*) | 71 (5) | |
85 (5) | 83 (4) | 85 (5) | 10 (2,3,*) | 70 (5) | |
84 (5) | 82 (4) | 84 (5) | 9.1 (2,3,*) | 69 (5) | |
83 (5) | 81 (4) | 83 (5) | 9 (2,3,*) | 68 (5) | |
81 (5) | 80 (4) | 81 (5) | 8 (2,3,*) | 67 (5) | |
80 (5) | 79 (4) | 80 (5) | 7.1 (2,4,*) | 66 (5) | |
79 (5) | 78 (4) | 79 (5) | 7 | 65 (5) | |
18 | 77 (4) | 78 (5) | 6.1 | 64 (5) | |
17 | 76 (4) | 77 (5) | 6 | 63 (5) | |
16 | 75 (4) | 76 (5) | 5.1 | 62 (5) | |
15 | 74 (4) | 75 (5) | 5 | 60 (5) | |
14 | 73 (4) | 74 (5) | 4 | 58 (5) | |
13 | 72 (4) | 73 (5) | 3.2 | 57 (5) | |
12 | 71 (4) | 72 (5) | 3.1 | 56 (5) | |
70 (4) | 71 (5) | 55 (5) | |||
69 (4) | 70 (5) | 54 (5) | |||
68 (4) | 69 (5) | 53 (5) | |||
67 (4) | 68 (5) | 52 (5) | |||
66 (4) | 67 (5) | 51 (5) | |||
65 (4) | 66 (5) | 50 (5) | |||
64 (4) | 65 (5) | 49 (5) | |||
63 (4) | 64 (5) | 48 (5) | |||
62 (4) | 63 (5) | 47 (5) | |||
61 (4) | 62 (5) | 46 (5) | |||
60 (4) | 61 (5) | 45 (5) | |||
59 (4) | 60 (5) | 44 (5) | |||
58 (4) | 59 (5) | 43 (1,*) | |||
57 (4) | 58 (5) | 42 (1,*) | |||
56 (4) | 57 (5) | 41 (1,*) | |||
55 (4) | 56 (1,*) | 40 (1,*) | |||
54 (4) | 55 (1,*) | 39 (1,*) | |||
53 (4) | 54 (1,*) | 38 (1,*) | |||
52 (4) | 53 (1,*) | 37 (1,*) | |||
51 (4) | 52 (1,*) | 36 (1,*) | |||
50 (4) | 51 (1,*) | 35 (1,*) | |||
49 (4) | 50 (1,*) | 34 | |||
48 (4) | 49 (1,*) | 33 | |||
47 (4) | 48 (1,*) | 32 | |||
46 (4) | 47 (1,*) | 31 | |||
45 (4) | 46 (1,*) | 30 | |||
44 (4) | 45 (1,*) | 29 | |||
43 (4) | 44 (1,*) | 28 | |||
42 (4) | 43 (1,*) | 27 | |||
41 (4) | 42 (1,*) | 26 | |||
40 (4) | 41 (1,*) | 25 | |||
39 (4) | 40 (1,*) | 24 | |||
38 (4) | 39 (1,*) | 23 | |||
37 (4) | 38 (1,*) | 22 | |||
36 (4) | 37 (1,*) | 21 | |||
35 (4,*) | 36 (1,*) | 20 | |||
34 (4,*) | 35 (1,*) | 19 | |||
33 (4,*) | 34 (1,*) | 18 | |||
32 (4,*) | 33 (1,*) | 17 | |||
31 (4,*) | 32 (1,*) | 16 | |||
30 (4,*) | 31 (1,*) | 15 | |||
29 (4,*) | 30 (1,*) | 12.1 | |||
28 (4,*) | 29 (1,*) | 12 | |||
27 (4,*) | 28 (1,*) | 11.6 | |||
26 (4,*) | 27 (1,*) | 11.5 | |||
25 (4,*) | 26 (1,*) | 11.1 | |||
24 (4,*) | 25 | 11 | |||
23 (4,*) | 24 | 10.6 | |||
22 (4,*) | 23 | 10.5 | |||
21 (4,*) | 22 | 10.0-10.1 | |||
20 (4,*) | 21 | 9.5-9.6 | |||
19 (4,*) | 20 | 9 | |||
18 (4,*) | 19 | ||||
17 (4,*) | 18 | ||||
16 (4,*) | 17 | ||||
15 (4,*) | 16 | ||||
14 (4,*) | 15 | ||||
13 (4,*) | 14 | ||||
12 (4,*) | 13 | ||||
11 (4,*) | 12 | ||||
10 (4,*) | 11 | ||||
9 (4,*) | 10 | ||||
8 (4,*) | 9 | ||||
7 (4,*) | 8 | ||||
6 (4,*) | 7 | ||||
5 | 6 | ||||
4 | 5 | ||||
3.6 | 4 | ||||
3.5 | |||||
3 | |||||
2 |
Safari on iOS | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Android Chrome | Android Firefox | IE Mobile | Android UC Browser | Samsung Internet | QQ Browser | Baidu Browser | KaiOS Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|
15 (2,*) | all | 94 | 10 | 64 | 94 (5) | 92 | 11 | 12.12 (5) | 15.0 (5) | 10.4 | 7.12 | 2.5 (4) |
14.5-14.8 (2,*) | 4.4.3-4.4.4 | 7 | 12.1 | 10 | 14.0 (5) | |||||||
14.0-14.4 (2,*) | 4.4 | 12 | 13.0 (5) | |||||||||
13.4-13.7 (2,*) | 4.2-4.3 | 11.5 | 12.0 (5) | |||||||||
Show all | ||||||||||||
13.3 (2,*) | 4.1 | 11.1 | 11.1-11.2 (5) | |||||||||
13.2 (2,*) | 4 | 11 | 10.1 (5) | |||||||||
13.0-13.1 (2,*) | 3 | 10 | 9.2 (5) | |||||||||
12.2-12.5 (2,*) | 2.3 | 8.2 (5) | ||||||||||
12.0-12.1 (2,*) | 2.2 | 7.2-7.4 (5) | ||||||||||
11.3-11.4 (2,*) | 2.1 | 6.2-6.4 | ||||||||||
11.0-11.2 (2,*) | 5.0-5.4 | |||||||||||
10.3 (2,*) | 4 | |||||||||||
10.0-10.2 (2,*) | ||||||||||||
9.3 (2,*) | ||||||||||||
9.0-9.2 (2,*) | ||||||||||||
8.1-8.4 (2,*) | ||||||||||||
8 (2,*) | ||||||||||||
7.0-7.1 | ||||||||||||
6.0-6.1 | ||||||||||||
5.0-5.1 | ||||||||||||
4.2-4.3 | ||||||||||||
4.0-4.1 | ||||||||||||
3.2 |
Notes
All browsers support the CSS2 version of text-decoration
, which matches only the text-decoration-line
values (underline
, etc.)
Enabled in Chrome through the "experimental Web Platform features" flag in chrome://flags
Partial support refers to not supporting the
text-decoration-style
property.Safari 8+ supports
-webkit-text-decoration-skip
with valuesnone
andskip
(other values behave likenone
orskip
)Partial support refers to not supporting the
text-decoration-skip
property.Partial support refers to
text-decoration-skip
only supporting valueobjects
andink
.
- * Partial support with prefix.
Resources
- MDN Web Docs - text-decoration-style
- MDN Web Docs - text-decoration-color
- MDN Web Docs - text-decoration-line
- Microsoft Edge feature request on UserVoice
- MDN Web Docs - text-decoration-skip
- Firefox implementation bug
Data by caniuse.com
Licensed under the Creative Commons Attribution License v4.0.
https://caniuse.com/text-decoration