content
renders differently: 0 of 2 examples match Chrome
css-content-3
The property takes effect, but our pixels are not Chrome’s. The difference map on this page shows where.
What the specification says
| Initial value | normal |
|---|---|
| Applies to | all elements, tree-abiding pseudo-elements, and page margin boxes |
| Inherited | no |
| Percentages | n/a |
| Computed value | See prose below |
| Syntax | normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> | <attr()> ]+ ]? | <element()> |
The measurements
2 examples, both render differently. 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.
content:linear-gradient(90deg,#f00,#00f), content:linear-gradient(90deg,#f00,#00f) / "X"
renders differently

| Pixels that differ from Chrome | 51,150 |
|---|---|
| The same, on the page without the declaration | 1,076 |
| Largest difference on one colour channel | 255 of 255 |
| The same, on the page without the declaration | 255 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
Which values were measured
A match on one example means a match at the value tried. The property’s grammar has 10 branches, and 2 of them carry a measurement.
| Value | Measured |
|---|---|
linear-gradient(90deg,#f00,#00f) | renders differently |
"X" | not measured |
contents | not measured |
open-quote | not measured |
close-quote | not measured |
no-open-quote | not measured |
no-close-quote | not measured |
linear-gradient(90deg,#f00,#00f) / "X" | renders differently |
normal | not measured |
none | not measured |
Tests that name this property
4 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