text-decoration
matches Chrome on some values: 3 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 2 that do not: text-decoration:spelling-error, text-decoration:grammar-error. They come first below, each with its difference map.
What the specification says
| Initial value | see individual properties |
|---|---|
| Applies to | see individual properties |
| Inherited | see individual properties |
| Percentages | see individual properties |
| Computed value | see individual properties |
| Syntax | <'text-decoration-line'> || <'text-decoration-thickness'> || <'text-decoration-style'> || <'text-decoration-color'> |
The measurements
5 examples: two render differently and come first and three match 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: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: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-through
same effect as Chrome

| Pixels that differ from Chrome | 1,270 |
|---|---|
| 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,270 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.
text-decoration:overline
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.
text-decoration: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 21 branches, and 5 of them carry a measurement.
| Value | Measured |
|---|---|
underline | same effect as Chrome |
overline | same effect as Chrome |
line-through | same effect as Chrome |
blink | not measured |
spelling-error | parsed, no effect |
grammar-error | parsed, no effect |
from-font | not measured |
20px | not measured |
50% | not measured |
hairline | not measured |
thin | not measured |
medium | not measured |
thick | not measured |
solid | not measured |
double | not measured |
dotted | not measured |
dashed | not measured |
wavy | not measured |
#e07a1f | not measured |
none | not measured |
auto | not measured |
Tests that name this property
2 web-platform-tests link to this property’s definition. Few tests carry such a link, so a short list says little about the property.
Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured