8000 [css-shapes] Allow CSS grammar for path shapes · Issue #5674 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-shapes] Allow CSS grammar for path shapes #5674

@noamr

Description

@noamr

Currently, when using shapes in e.g. clip-path, some features are only allowed in polygon, and some only in path.

  • Polygon: CSS custom properties as coordinates, relative or other non-pixel units
  • Path: Rounded corners with quadratic/bezier curves

So it's currently impossible to create a non-rect polygon that has both rounded corners and relative (or em) coordinates, or custom properties, for example a speech bubble with an arrow.

I suggest one of the following:

  • Allow some form of radius in polygon() (easier)
  • Allow resolving of non-pixel units in path() (more powerful)

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

      0