@@ -322,16 +322,48 @@ Basic Shapes</h2>
322
322
<h3 id="supported-basic-shapes">
323
323
Supported Shapes</h3>
324
324
325
- The following shapes are supported.
326
- All <<basic-shape>> values use
327
- <a href="https://www.w3.org/TR/css3-values/#functional-notation">functional notation</a>
328
- and are defined here using the
329
- <a href="https://www.w3.org/TR/css3-values/#value-defs">Value Definition Syntax</a> .
325
+ The <<basic-shape>> functions are:
326
+
327
+ <pre class=prod>
328
+ <<inset()>> = inset(
329
+ <<length-percentage>> {1,4}
330
+ [ round <<'border-radius'>> ]?
331
+ )
332
+
333
+ <<xywh()>> = xywh(
334
+ <<length-percentage>> {2} <<length-percentage [0, ∞]>> {2}
335
+ [ round <<'border-radius'>> ]?
336
+ )
337
+
338
+ <<rect()>> = rect(
339
+ [ <<length-percentage>> | auto ]{4}
340
+ [ round <<'border-radius'>> ]?
341
+ )
342
+
343
+ <<circle()>> = circle(
344
+ <<shape-radius>> ?
345
+ [ at <<position>> ]?
346
+ )
347
+
348
+ <<ellipse()>> = ellipse(
349
+ <<shape-radius>> {2}?
350
+ [ at <<position>> ]?
351
+ )
352
+
353
+ <<polygon()>> = polygon(
354
+ <<'fill-rule'>> ? ,
355
+ [<<length-percentage>> <<length-percentage>> ]#
356
+ )
357
+
358
+ <<path()>> = path(
359
+ <<'fill-rule'>> ? ,
360
+ <<string>>
361
+ )
362
+ </pre>
363
+
330
364
331
365
<dl dfn-for="<basic-shape> ">
332
- <dt> <dfn>inset()</dfn> =
333
- inset( <<length-percentage>> {1,4} [ round <<'border-radius'>> ] ? )
334
- </dt>
366
+ <dt> <dfn>inset()</dfn>
335
367
<dd>
336
368
Defines an inset rectangle
337
369
via insets from each edge of the [=reference box=] .
@@ -364,8 +396,7 @@ Supported Shapes</h3>
364
396
define rounded corners for the rectangle
365
397
using the 'border-radius' shorthand syntax.
366
398
367
- <dt> <dfn>xywh()</dfn> =
368
- xywh( <<length-percentage>> {2} <<length-percentage [0, ∞]>> {2} [ round <<'border-radius'>> ] ? )
399
+ <dt> <dfn>xywh()</dfn>
369
400
<dd>
370
401
Defines a rectangle
371
402
via offsets from the top and left edge of the [=reference box=] ,
@@ -385,7 +416,6 @@ Supported Shapes</h3>
385
416
using the 'border-radius' shorthand syntax.
386
417
387
418
<dt> <dfn>rect()</dfn> =
388
- rect( [ <<length-percentage>> | auto ] {4} [ round <<'border-radius'>> ] ? )
389
419
<dd>
390
420
Defines a rectangle
391
421
via insets from the top and left edges of the [=reference box=] .
@@ -425,9 +455,7 @@ Supported Shapes</h3>
425
455
define rounded corners for the rectangle
426
456
using the 'border-radius' shorthand syntax.)
427
457
428
- <dt> <dfn>circle()</dfn> =
429
- circle( <<shape-radius>> ? [ at <<position>> ] ? )
430
- </dt>
458
+ <dt> <dfn>circle()</dfn>
431
459
<dd>
432
460
<ul>
433
461
<li>
@@ -447,10 +475,8 @@ Supported Shapes</h3>
447
475
this defaults to <css> center</css> if omitted.
448
476
</li>
449
477
</ul>
450
- </dd>
451
- <dt> <dfn>ellipse()</dfn> =
452
- ellipse( [ <<shape-radius>>{2} ] ? [ at <<position>> ] ? )
453
- </dt>
478
+
479
+ <dt> <dfn>ellipse()</dfn>
454
480
<dd>
455
481
<ul>
456
482
<li>
@@ -473,10 +499,8 @@ Supported Shapes</h3>
473
499
this defaults to <css> center</css> if omitted.
474
500
</li>
475
501
</ul>
476
- </dd>
477
- <dt> <dfn>polygon()</dfn> =
478
- polygon( <<'fill-rule'>> ? , [<<length-percentage>> <<length-percentage>>] # )
479
- </dt>
502
+
503
+ <dt> <dfn>polygon()</dfn>
480
504
<dd>
481
505
<ul>
482
506
<li>
@@ -499,9 +523,7 @@ Supported Shapes</h3>
499
523
by connecting the last vertex
500
524
with the first vertex of the list.
501
525
502
- </dd>
503
- <dt> <dfn>path()</dfn> =
504
- path( <<'fill-rule'>> ? , <<string>> )
526
+ <dt> <dfn>path()</dfn>
505
527
</dt>
506
528
<dd dfn-type=value dfn-for="path()">
507
529
<ul>
0 commit comments