text-decoration-line
matches Chrome on some values: 1 of 5 examples match Chrome
css-text-decor-4
Some of the examples match Chrome and some do not: the count says how many, and the values that differ are listed first, each with its difference map.
The 4 that do not: text-decoration-line:overline, text-decoration-line:line-through, text-decoration-line:spelling-error, text-decoration-line:grammar-error. They come first below, each with its difference map.
What the specification says
| Initial value | none |
|---|---|
| Applies to | all elements |
| Inherited | no (but see prose, above) |
| Percentages | n/a |
| Computed value | specified keyword(s) |
| Syntax | none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error |
The measurements
5 examples: four render differently and come first and one matches Chrome. Each is one declaration on a small page, drawn by Chrome and by our engine. Drag on a picture to move the line between them.
text-decoration-line:overline
renders differently

| Pixels that differ from Chrome | 6,192 |
|---|---|
| The same, on the page without the declaration | 1,402 |
| Largest difference on one colour channel | 187 of 255 |
| The same, on the page without the declaration | 45 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
text-decoration-line:line-through
renders differently

| Pixels that differ from Chrome | 5,594 |
|---|---|
| The same, on the page without the declaration | 1,402 |
| Largest difference on one colour channel | 187 of 255 |
| The same, on the page without the declaration | 45 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
text-decoration-line:spelling-error
parsed, no effect

| Pixels that differ from Chrome | 2,046 |
|---|---|
| The same, on the page without the declaration | 1,402 |
| Largest difference on one colour channel | 178 of 255 |
| The same, on the page without the declaration | 45 of 255 |
Our page is the same with and without the declaration; Chrome’s page changes.
text-decoration-line:grammar-error
parsed, no effect

| Pixels that differ from Chrome | 1,834 |
|---|---|
| The same, on the page without the declaration | 1,402 |
| Largest difference on one colour channel | 76 of 255 |
| The same, on the page without the declaration | 45 of 255 |
Our page is the same with and without the declaration; Chrome’s page changes.
text-decoration-line:underline
same effect as Chrome

| Pixels that differ from Chrome | 1,402 |
|---|---|
| The same, on the page without the declaration | 1,402 |
| Largest difference on one colour channel | 45 of 255 |
| The same, on the page without the declaration | 45 of 255 |
The pages differ by 1,402 pixels with the declaration and by 1,402 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.
Which values were measured
A match on one example means a match at the value tried. The property’s grammar has 7 branches, and 5 of them carry a measurement.
| Value | Measured |
|---|---|
underline | same effect as Chrome |
overline | renders differently |
line-through | renders differently |
blink | not measured |
spelling-error | parsed, no effect |
grammar-error | parsed, no effect |
none | not measured |
Tests that name this property
11 web-platform-tests link to this property’s definition. Few tests carry such a link, so a short list says little about the property.
- Passescss/css-text-decor/line-through-vertical.html
- Passescss/css-text-decor/text-decoration-line-010.xht
- Passescss/css-text-decor/text-decoration-line-011.xht
- Passescss/css-text-decor/text-decoration-line-012.xht
- Passescss/css-text-decor/text-decoration-line-013.xht
- Not judgedcss/css-text-decor/text-decoration-line-recalc.html
- Failscss/css-text-decor/text-decoration-line-through-wavy-covers-whole-line-length-001.html
- Passescss/css-text-decor/text-decoration-line.html
- Not judgedcss/css-text-decor/text-decoration-lines-001.html
- Failscss/css-text-decor/text-decoration-overline-wavy-covers-whole-line-length-001.html
- Failscss/css-text-decor/text-decoration-underline-wavy-covers-whole-line-length-001.html
Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured