Skip to content
Skip the list of specifications

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 valuenone
Applies totransformable elements
Inheritedno
PercentagesN/A
Computed valuethe keyword none or an absolute length
Syntaxnone | <length [0,∞]>

The definition in css-transforms-2

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
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome33,522
The same, on the page without the declaration593
Largest difference on one colour channel204 of 255
The same, on the page without the declaration158 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

perspective:4px

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome54,776
The same, on the page without the declaration593
Largest difference on one colour channel204 of 255
The same, on the page without the declaration158 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

perspective:calc(20px + 4px)

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome30,174
The same, on the page without the declaration593
Largest difference on one colour channel204 of 255
The same, on the page without the declaration158 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

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.

ValueMeasured
20px
4px
calc(20px + 4px)
renders differently
renders differently
renders differently
nonenot 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.

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