|
12 | 12 | rel=dcterms.rights> |
13 | 13 | <meta content="CSS Shapes Module Level 1" name=dcterms.title> |
14 | 14 | <meta content=text name=dcterms.type> |
15 | | - <meta content=2013-10-03 name=dcterms.date> |
| 15 | + <meta content=2013-10-04 name=dcterms.date> |
16 | 16 | <meta content="Vincent Hardy" name=dcterms.creator> |
17 | 17 | <meta content="Rossen Atanassov" name=dcterms.creator> |
18 | 18 | <meta content="Alan Stearns" name=dcterms.creator> |
|
51 | 51 |
|
52 | 52 | <h1 id=css-shapes-module>CSS Shapes Module Level 1</h1> |
53 | 53 |
|
54 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 3 October 2013</h2> |
| 54 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 4 October 2013</h2> |
55 | 55 |
|
56 | 56 | <dl> |
57 | 57 | <dt>This version: |
@@ -400,7 +400,7 @@ <h2 id=relation-to-box-model-and-float-behavior><span class=secno>2. |
400 | 400 | <p> |
401 | 401 |
|
402 | 402 | <pre><code class=css> |
403 | | - shape-outside: rectangle(0,0,0%,0%); |
| 403 | + shape-outside: rectangle(0 0 0% 0%); |
404 | 404 | </code></pre> |
405 | 405 | </div> |
406 | 406 |
|
@@ -508,27 +508,45 @@ <h3 id=supported-basic-shapes><span class=secno>3.1. </span>Supported |
508 | 508 | invalid. See notes below on edge cases for these arguments. |
509 | 509 | </ul> |
510 | 510 |
|
511 | | - <dt><dfn id=circle>circle</dfn>() takes three arguments of <length> |
512 | | - or <percentage> |
| 511 | + <dt><dfn id=circle>circle</dfn>() takes two arguments of <length> or |
| 512 | + <percentage>, then a third argument of <length>, |
| 513 | + <percentage>, or a radius keyword |
513 | 514 |
|
514 | 515 | <dd> |
515 | 516 | <ul> |
516 | | - <li> The three arguments represent <strong>cx</strong>, |
517 | | - <strong>cy</strong>, and <strong>r</strong>. They define the x-axis and |
518 | | - y-axis coordinates of the center of the circle and the radius of the |
519 | | - circle. A negative value for r is invalid. |
| 517 | + <li> The first two arguments represent <strong>cx</strong>, |
| 518 | + <strong>cy</strong>. They define the x-axis and y-axis coordinates of |
| 519 | + the center of the circle. |
| 520 | + |
| 521 | + <li> The third argument represents <strong>r</strong>, the radius of the |
| 522 | + circle. This argument can be one of these keywords: ‘<code |
| 523 | + class=property>height</code>’, ‘<code |
| 524 | + class=property>width</code>’, ‘<code |
| 525 | + class=property>cover</code>’, or ‘<code |
| 526 | + class=property>contain</code>’ which are the height, width, |
| 527 | + max(height,width) and min(height,width) of the relevant box, |
| 528 | + respectively. A negative value for r is invalid. |
520 | 529 | </ul> |
521 | 530 |
|
522 | | - <dt><dfn id=ellipse>ellipse</dfn>() takes four arguments of <length> |
523 | | - or <percentage> |
| 531 | + <dt><dfn id=ellipse>ellipse</dfn>() takes two arguments of <length> |
| 532 | + or <percentage>, then a two arguments of <length>, |
| 533 | + <percentage>, or a radius keyword |
524 | 534 |
|
525 | 535 | <dd> |
526 | 536 | <ul> |
527 | | - <li> The four arguments represent <strong>cx</strong>, |
528 | | - <strong>cy</strong>, <strong>rx</strong>, and <strong>ry</strong>. They |
529 | | - define the x-axis and y-axis coordinates of the center of the ellipse |
530 | | - and the x-axis and y-axis radius of the ellipse. Negative values for rx |
531 | | - and ry are invalid. |
| 537 | + <li> The first two arguments represent <strong>cx</strong>, |
| 538 | + <strong>cy</strong>. They define the x-axis and y-axis coordinates of |
| 539 | + the center of the ellipse. |
| 540 | + |
| 541 | + <li> The last two arguments represent <strong>rx</strong>, and |
| 542 | + <strong>ry</strong>, the x-axis and y-axis radii of the ellipse. These |
| 543 | + arguments can be one of these keywords: ‘<code |
| 544 | + class=property>height</code>’, ‘<code |
| 545 | + class=property>width</code>’, ‘<code |
| 546 | + class=property>cover</code>’, or ‘<code |
| 547 | + class=property>contain</code>’ which are the height, width, |
| 548 | + max(height,width) and min(height,width) of the relevant box, |
| 549 | + respectively. Negative values for rx and ry are invalid. |
532 | 550 | </ul> |
533 | 551 |
|
534 | 552 | <dt><dfn id=polygon>polygon</dfn>() starts with an optional |
@@ -577,20 +595,20 @@ <h3 id=basic-shape-syntax><span class=secno>3.2. </span>Syntax of Basic |
577 | 595 | Shapes</h3> |
578 | 596 |
|
579 | 597 | <pre> |
580 | | -rectangle() = |
581 | | - rectangle( <shape-arg>, <shape-arg>, <shape-arg>, <shape-arg> [, <shape-arg>]? [, <shape-arg>]? ) |
| 598 | +rectangle() = rectangle( <shape-arg>{4,4} <shape-arg>? <shape-arg>? ) |
582 | 599 |
|
583 | | -inset-rectangle() = |
584 | | - inset-rectangle( <shape-arg>, <shape-arg>, <shape-arg>, <shape-arg> [, <shape-arg>]? [, <shape-arg>]? ) |
| 600 | +inset-rectangle() = inset-rectangle( <shape-arg>{4,4} <shape-arg>? <shape-arg>? ) |
585 | 601 |
|
586 | | -circle() = circle( <shape-arg>, <shape-arg>, <shape-arg> ) |
| 602 | +circle() = circle( <shape-arg>{2,2} <shape-radius> ) |
587 | 603 |
|
588 | | -ellipse() = ellipse( <shape-arg>, <shape-arg>, <shape-arg>, <shape-arg> ) |
| 604 | +ellipse() = ellipse( <shape-arg>{2,2} <shape-radius>{2,2} ) |
589 | 605 |
|
590 | | -polygon() = polygon( [<fill-rule>,]? [<shape-arg>]{2}# ) |
| 606 | +polygon() = polygon( [<fill-rule>,]? [<shape-arg> <shape-arg>]# ) |
591 | 607 |
|
592 | 608 | <shape-arg> = <length> | <percentage> |
593 | 609 |
|
| 610 | +<shape-radius> = <length> | <percentage> | width | height | cover | contain |
| 611 | + |
594 | 612 | <fill-rule> = nonzero | evenodd |
595 | 613 | </pre> |
596 | 614 |
|
|
0 commit comments