CSS shape() landed in Firefox 148. It's similar to path(), but allows the full expressiveness of CSS…
shape() - CSS | MDN

The shape() CSS function is used to define a shape for the clip-path and offset-path properties. It combines an initial starting point with a series of shape commands that define the path of the shape. The shape() function is a member of the <basic-shape> data type.

MDN Web Docs

Here's the heart demo https://random-stuff.jakearchibald.com/heart-css-shape/

Note that the :hover applies to a wrapper, otherwise the clipped area is used for hit-testing - an old gotcha reminiscent of the Flash days.

Heart CSS shape

Ohh this SVG path to CSS shape() convertor is better, as it lets you control the viewbox https://path-to-shape.netlify.app/
Path to CSS Shape

Convert SVG path data to CSS shape() function.