Skip to content

[css-shapes-2] Consider allowing <position> for the from and some other points #10644

@smfr

Description

@smfr

Splitting from #5841.

The shape() function in CSS Shapes Level 2 is specified with the from position being a coordinate-pair, but this doesn't allow for keywords like top left.

Similarly, you can't use <position> arguments as the to point or control points on the various commands. Maybe we could allow if it's an absolute (to) point. This would enable very natural shapes like shape(from center top, line to right center, line to center bottom, line to left center, close).

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