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
Description
The
shape()function can be thought of as a more CSS friendly version of the existingpath()function that is based in SVG.path()only allows fixed SVG like unit-less pixel valuesshape()allows the use of different CSS value (px, em, rem, %).shape()also supports CSS functions like calc() and var() which allowsshape()to be used for responsive design something thatpath()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