Skip to content

CSS shape() basic shape function #1046

@jsnkuhn

Description

@jsnkuhn

Description

The shape() function can be thought of as a more CSS friendly version of the existing path() function that is based in SVG. path() only allows fixed SVG like unit-less pixel values shape() allows the use of different CSS value (px, em, rem, %). shape() also supports CSS functions like calc() and var() which allows shape() to be used for responsive design something that path() can't do.

Specification

https://drafts.csswg.org/css-shapes/#shape-function

web-feature

https://web-platform-dx.github.io/web-features-explorer/features/shapes/ (shape() is mentioned here but it should probably have it's own listing)

Test Links

https://wpt.fyi/results/css/css-shapes/shape-functions?label=master&label=experimental&aligned

Additional Signals

Chrome and edge had the test implementation on this. Safari and Firefox have already done some work.

Firefox

Standards position:
mozilla/standards-positions#1153

Bugzilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=1910328

Experimental features page:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features#shape_function

Safari

Bugzilla:
https://bugs.webkit.org/show_bug.cgi?id=238371

Standards position (support):
WebKit/standards-positions#377

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions