perspective
renders differently: 0 of 3 examples match Chrome
css-transforms-2
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 | none |
|---|---|
| Applies to | transformable elements |
| Inherited | no |
| Percentages | N/A |
| Computed value | the keyword none or an absolute length |
| Syntax | none | <length [0,∞]> |
The measurements
3 examples, all 3 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.
perspective:20px
renders differently

| Pixels that differ from Chrome | 33,522 |
|---|---|
| The same, on the page without the declaration | 593 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 158 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
perspective:4px
renders differently

| Pixels that differ from Chrome | 54,776 |
|---|---|
| The same, on the page without the declaration | 593 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 158 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
perspective:calc(20px + 4px)
renders differently

| Pixels that differ from Chrome | 30,174 |
|---|---|
| The same, on the page without the declaration | 593 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 158 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 2 branches, and 1 of them carries a measurement.
| Value | Measured |
|---|---|
20px4pxcalc(20px + 4px) | renders differently renders differently renders differently |
none | not measured |
Tests that name this property
30 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-transforms/css3-transform-perspective.html
- Passescss/css-transforms/overflow-perspective-001.html
- Passescss/css-transforms/overflow-perspective-002.html
- Passescss/css-transforms/overflow-perspective-003.html
- Passescss/css-transforms/perspective-children-only-abspos.html
- Passescss/css-transforms/perspective-children-only-fixpos.html
- Passescss/css-transforms/perspective-children-only-inline.html
- Not judgedcss/css-transforms/perspective-containing-block-dynamic-1a.html
- Not judgedcss/css-transforms/perspective-containing-block-dynamic-1b.html
- Passescss/css-transforms/perspective-origin-x.html
- Passescss/css-transforms/perspective-svg-001.html
- Passescss/css-transforms/perspective-transforms-equivalence.html
And 18 more.
Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured