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-09-24 name =dcterms.date >
15
+ < meta content =2013-09-27 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 24 September
54
+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 27 September
55
55
2013</ h2 >
56
56
57
57
< dl >
@@ -435,69 +435,72 @@ <h3 id=basic-shapes-from-svg-syntax><span class=secno>3.2. </span>Basic
435
435
< h4 id =supported-basic-shapes > < span class =secno > 3.2.1. </ span > Supported
436
436
Shapes</ h4 >
437
437
438
- < p > The following basic shapes are supported.
438
+ < p > The following basic shapes are supported. All basic shapes use
439
+ functional notation following the rules defined in < a
440
+ href ="http://www.w3.org/TR/css3-values/#functional-notation "> CSS Values
441
+ and Units</ a > < a href ="#CSS3VAL "
442
+ rel =biblioentry > [CSS3VAL]<!--{{CSS3VAL}}--> </ a > .
439
443
440
444
< dl >
441
- < dt > < dfn
442
- id =rectangle > rectangle</ dfn > ([<length>|<percentage>][,
443
- [<length>|<percentage>]]{3,5})
445
+ < dt > < dfn id =rectangle > rectangle</ dfn > () takes either four or six arguments
446
+ of <length> or <percentage>
444
447
445
448
< dd >
446
449
< ul >
447
- < li > The first four values represent < strong > x, y, width</ strong > and
450
+ < li > The first four arguments represent < strong > x, y, width</ strong > and
448
451
< strong > height</ strong > of the rectangle. Negative values for width and
449
452
height are invalid.
450
453
451
- < li > The last two optional values represent < strong > rx</ strong > and
454
+ < li > The last two optional arguments represent < strong > rx</ strong > and
452
455
< strong > ry</ strong > . For rounded rectangles they define the x-axis
453
456
radius and y-axis radius of the ellipse used to round off the corners
454
457
of the rectangle. Negative values for rx and ry are invalid. See notes
455
- below on edge cases for these values .
458
+ below on edge cases for these arguments .
456
459
</ ul >
457
460
458
- < dt > < dfn
459
- id =inset-rectangle > inset-rectangle</ dfn > ([<length>|<percentage>][,
460
- [<length>|<percentage>]]{3,5})
461
+ < dt > < dfn id =inset-rectangle > inset-rectangle</ dfn > () takes either four or
462
+ six arguments of <length> or <percentage>
461
463
462
464
< dd >
463
465
< ul >
464
- < li > The first four values represent the < strong > top, right,
465
- bottom</ strong > and < strong > left</ strong > offsets from the content
466
- rectangle inward that define the positions of the edges of the inset
467
- rectangle. Negative values for any of these insets are invalid.
466
+ < li > The first four arguments represent the < strong > top, right,
467
+ bottom</ strong > and < strong > left</ strong > offsets from the relevant box
468
+ inward that define the positions of the edges of the inset rectangle.
469
+ Negative values for any of these insets are invalid.
468
470
469
- < li > The last two optional values represent < strong > rx</ strong > and
471
+ < li > The last two optional arguments represent < strong > rx</ strong > and
470
472
< strong > ry</ strong > . For rounded inset rectangles they define the
471
473
x-axis radius and y-axis radius of the ellipse used to round off the
472
474
corners of the inset rectangle. Negative values for rx and ry are
473
- invalid. See notes below on edge cases for these values .
475
+ invalid. See notes below on edge cases for these arguments .
474
476
</ ul >
475
477
476
- < dt > < dfn id =circle > circle</ dfn > ([ <length>|<percentage>][,
477
- [ <length>|< percentage>]]{2})
478
+ < dt > < dfn id =circle > circle</ dfn > () takes three arguments of <length>
479
+ or <percentage>
478
480
479
481
< dd >
480
482
< ul >
481
- < li > The three values values represent < strong > cx</ strong > ,
483
+ < li > The three arguments represent < strong > cx</ strong > ,
482
484
< strong > cy</ strong > , and < strong > r</ strong > . They define the x-axis and
483
485
y-axis coordinates of the center of the circle and the radius of the
484
486
circle. A negative value for r is invalid.
485
487
</ ul >
486
488
487
- < dt > < dfn id =ellipse > ellipse</ dfn > ([ <length>|<percentage>][,
488
- [ <length>|< percentage>]]{3})
489
+ < dt > < dfn id =ellipse > ellipse</ dfn > () takes four arguments of <length>
490
+ or <percentage>
489
491
490
492
< dd >
491
493
< ul >
492
- < li > The four values represent < strong > cx</ strong > , < strong > cy </ strong > ,
493
- < strong > rx</ strong > , and < strong > ry</ strong > . They define the x-axis
494
- and y-axis coordinates of the center of the ellipse and the x-axis and
495
- y-axis radius of the ellipse. Negative values for rx and ry are
496
- invalid.
494
+ < li > The four arguments represent < strong > cx</ strong > ,
495
+ < strong > cy </ strong > , < strong > rx</ strong > , and < strong > ry</ strong > . They
496
+ define the x-axis and y-axis coordinates of the center of the ellipse
497
+ and the x-axis and y-axis radius of the ellipse. Negative values for rx
498
+ and ry are invalid.
497
499
</ ul >
498
500
499
- < dt > < dfn
500
- id =polygon > polygon</ dfn > ([<fill-rule>,]?[<length>|<percentage>]{2}#)
501
+ < dt > < dfn id =polygon > polygon</ dfn > () starts with an optional
502
+ <fill-rule> argument, followed by a list of arguments consisting of
503
+ <length> or <percentage> pairs.
501
504
502
505
< dd >
503
506
< ul >
@@ -507,7 +510,7 @@ <h4 id=supported-basic-shapes><span class=secno>3.2.1. </span>Supported
507
510
property in SVG for details. Possible values are nonzero or evenodd.
508
511
Default value when omitted is nonzero.
509
512
510
- < li > The two length values represent < strong > xi</ strong > and
513
+ < li > Each pair argument in the list represents < strong > xi</ strong > and
511
514
< strong > yi</ strong > - the < strong > x</ strong > and < strong > y</ strong >
512
515
axis coordinates of the i-th vertex of the polygon.
513
516
</ ul >
@@ -518,11 +521,11 @@ <h4 id=supported-basic-shapes><span class=secno>3.2.1. </span>Supported
518
521
</ dl >
519
522
520
523
< p > The values for corner radii on rectangle or inset-rectangle are
521
- determined implicitly if either the rx or ry values are not specified, or
522
- are specified but with invalid values. If neither rx nor ry are properly
523
- specified, the values are 0 for both. If only one value is properly
524
- specified, that value is used for both. And if the values cause any of the
525
- curves to overlap, the solution for < a
524
+ determined implicitly if either the rx or ry arguments are not specified,
525
+ or are specified but with invalid values. If neither rx nor ry are
526
+ properly specified, the values are 0 for both. If only one value is
527
+ properly specified, that value is used for both. And if the values cause
528
+ any of the curves to overlap, the solution for < a
526
529
href ="http://www.w3.org/TR/css3-background/#corner-overlap "> overlapping
527
530
curves</ a > from CSS Backgrounds and Borders < a href ="#CSS3BG "
528
531
rel =biblioentry > [CSS3BG]<!--{{!CSS3BG}}--> </ a > is used to avoid the
0 commit comments