Skip to content

[css-transforms-2] Interpolation of perspective. #3084

@emilio

Description

@emilio

I think it's really weird that perspective the transform function gets interpolated differently than perspective the property.

https://drafts.csswg.org/css-transforms-2/#propdef-perspective says:

Animatable: as length

However for the transform function it says:

The transform functions matrix(), matrix3d() and perspective() get converted into 4x4 matrices first and interpolated as defined in section Interpolation of Matrices afterwards.

I just fixed the perspective() function interpolation in Gecko in https://bugzilla.mozilla.org/show_bug.cgi?id=1488414. I haven't tested what other browsers do for the perspective property yet, but I wanted to leave this filed because it seems that if this inconsistency is intended, it should be at least be clarified and explicitly pointed out.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions