Skip to content

[css-shapes-2] Interpolation between shape() and path() needs more detail #10740

Closed
@smfr

Description

@smfr

CSS Basic Shapes 2 says that shape() and path() can interpolate if they have the same set of commands, specifically:

For this purpose, commands are "the same" if they use the same command keyword, and use the same keyword. For curve and smooth, they also must have the same number of control points.

But there's some ambiguity here, because shape() takes an initial "from", and it's not clear if that has to correspond to the first Move command in the path. Specifically, it's not clear if these should interpolate:

shape(from 0 0, move to 200px 200px, close)

and

path(M 100 100 z)

Likewise what if the first command in the path is not an absolute move?

shape(from 0 0, line to 200px 200px, close)

and

path(m 100 100 z)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Friday morning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions