mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.03k stars 22.44k forks source link

Limitations of `path()` basic shape #33593

Closed estelle closed 21 hours ago

estelle commented 2 months ago

The required <string> is a single SVG Path string encompassed in quotes with numeric values representing pixel units.

The path page should include the above and following information:

While the path() function allows reuse of the SVG path syntax to define more arbitrary shapes than allowed by more specialized shape functions, it requires writing a path as a single string (which is not compatible with, for example, building a path piecemeal with var() and inherits a number of limitations from SVG, such as implicitly only allowing the px unit.

_Originally posted by @estelle in https://github.com/mdn/content/pull/33446#discussion_r1599064232_

dipikabh commented 2 months ago

path() is not supported in the shape-outside property:

This needs to be explicitly mentioned in both path() and shape-outside pages.

The following updates are especially needed on the shape-outside page: