Skip to content

Commit

Permalink
[css-shapes-2] Refine use of the word "path" in the intro (#11586)
Browse files Browse the repository at this point in the history
* [css-shapes-2] Refine use of the word "path" in the introl

A "shape" is a set of commands to generate a path dynamically, rather
than them being synonomous terms.

* nits
  • Loading branch information
noamr authored Jan 28, 2025
1 parent 3a040fa commit af27ebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion css-shapes-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ The ''shape()'' Function</h4>
and inherits a number of limitations from SVG,
such as implicitly only allowing the ''px'' unit.

The ''shape()'' function defines a path in the same way,
The ''shape()'' function uses a set of commands equivalent to the ones used by ''path()'',
but does so with more standard CSS syntax,
and allows the full range of CSS functionality,
such as additional units and math functions.
The commands used by ''shape()'' are dynamically turned into path segments when it is used for rendering,
e.g., when computing the rendered 'clip-path'.

<pre class=prod>
<dfn>shape()</dfn> = shape( <<'fill-rule'>>? from <<coordinate-pair>>, <<shape-command>>#)
Expand Down

0 comments on commit af27ebd

Please sign in to comment.