File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,17 @@ The ''shape()'' Function</h4>
147
147
and inherits a number of limitations from SVG,
148
148
such as implicitly only allowing the ''px'' unit.
149
149
150
- The ''shape()'' function uses a set of commands equivalent to the ones used by ''path()'' ,
150
+ The ''shape()'' function uses a set of commands roughly equivalent to the ones used by ''path()'' ,
151
151
but does so with more standard CSS syntax,
152
152
and allows the full range of CSS functionality,
153
153
such as additional units and math functions.
154
154
The commands used by ''shape()'' are dynamically turned into path segments when it is used for rendering,
155
155
e.g., when computing the rendered 'clip-path' .
156
156
157
+ In that sense, ''shape()'' is a superset of ''path()'' . A ''path()'' can be easily converted to a ''shape()'' ,
158
+ but to convert a ''shape()'' back to a ''path()'' or to SVG requires information about the CSS environment (e.g.
159
+ current values of CSS custom properties, current font size for ''em'' units, etc).
160
+
157
161
<pre class=prod>
158
162
<dfn>shape()</dfn> = shape( <<'fill-rule'>> ? from <<position>> , <<shape-command>> #)
159
163
</pre>
You can’t perform that action at this time.
0 commit comments