Skip to content

Commit fb73ce2

Browse files
committed
[css-shapes] Fixed basic shape grammar to use comma separators
1 parent 82f51f6 commit fb73ce2

2 files changed

Lines changed: 40 additions & 35 deletions

File tree

css-shapes/Overview.html

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
rel=dcterms.rights>
1313
<meta content="CSS Shapes Module Level 1" name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2013-07-12 name=dcterms.date>
15+
<meta content=2013-07-15 name=dcterms.date>
1616
<meta content="Vincent Hardy" name=dcterms.creator>
1717
<meta content="Rossen Atanassov" name=dcterms.creator>
1818
<meta content="Alan Stearns" name=dcterms.creator>
@@ -51,7 +51,7 @@
5151

5252
<h1 id=css-shapes-module>CSS Shapes Module Level 1</h1>
5353

54-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 12 July 2013</h2>
54+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 15 July 2013</h2>
5555

5656
<dl>
5757
<dt>This version:
@@ -410,41 +410,42 @@ <h4 id=supported-basic-shapes><span class=secno>3.2.1. </span>Supported
410410

411411
<dl>
412412
<dt><dfn
413-
id=rectangle>rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;]{4} [
414-
curve [&lt;length&gt;|&lt;percentage&gt;]{1,2} ]? )
413+
id=rectangle>rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;][,
414+
[&lt;length&gt;|&lt;percentage&gt;]]{3,5})
415415

416416
<dd>
417417
<ul>
418-
<li> The four values represent <strong>x, y, width</strong> and
418+
<li> The first four values represent <strong>x, y, width</strong> and
419419
<strong>height</strong>. They define the bounding box of the rectangle.
420420
Negative values for width and height are invalid.
421421

422-
<li> The two <code class=property>curve</code>’ values represent
423-
<strong> rx</strong> and <strong>ry</strong>. For rounded rectangles
424-
they define the x-axis radius and y-axis radius of the ellipse used to
425-
round off the corners of the rectangle. Negative values for rx and ry
426-
are invalid. See notes below on edge cases for these values.
422+
<li> The last two optional values represent <strong> rx</strong> and
423+
<strong>ry</strong>. For rounded rectangles they define the x-axis
424+
radius and y-axis radius of the ellipse used to round off the corners
425+
of the rectangle. Negative values for rx and ry are invalid. See notes
426+
below on edge cases for these values.
427427
</ul>
428428

429429
<dt><dfn
430-
id=inset-rectangle>inset-rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;]{4}
431-
[ curve [&lt;length&gt;|&lt;percentage&gt;]{1,2} ]? )
430+
id=inset-rectangle>inset-rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;][,
431+
[&lt;length&gt;|&lt;percentage&gt;]]{3,5})
432432

433433
<dd>
434434
<ul>
435-
<li> The four values represent the <strong>top, right, bottom</strong>
436-
and <strong>left</strong> insets that define the bounding box of the
437-
inset rectangle. Negative values for any of these insets are invalid.
438-
439-
<li> The two ‘<code class=property>curve</code>’ values represent
440-
<strong> rx</strong> and <strong>ry</strong>. For rounded inset
441-
rectangles they define the x-axis radius and y-axis radius of the
442-
ellipse used to round off the corners of the inset rectangle. Negative
443-
values for rx and ry are invalid. See notes below on edge cases for
444-
these values.
435+
<li> The first four values represent the <strong>top, right,
436+
bottom</strong> and <strong>left</strong> insets that define the
437+
bounding box of the inset rectangle. Negative values for any of these
438+
insets are invalid.
439+
440+
<li> The last two optional values represent <strong> rx</strong> and
441+
<strong>ry</strong>. For rounded inset rectangles they define the
442+
x-axis radius and y-axis radius of the ellipse used to round off the
443+
corners of the inset rectangle. Negative values for rx and ry are
444+
invalid. See notes below on edge cases for these values.
445445
</ul>
446446

447-
<dt><dfn id=circle>circle</dfn>([&lt;length&gt;|&lt;percentage&gt;]{3})
447+
<dt><dfn id=circle>circle</dfn>([&lt;length&gt;|&lt;percentage&gt;][,
448+
[&lt;length&gt;|&lt;percentage&gt;]]{2})
448449

449450
<dd>
450451
<ul>
@@ -454,7 +455,8 @@ <h4 id=supported-basic-shapes><span class=secno>3.2.1. </span>Supported
454455
circle. A negative value for r is invalid.
455456
</ul>
456457

457-
<dt><dfn id=ellipse>ellipse</dfn>([&lt;length&gt;|&lt;percentage&gt;]{4})
458+
<dt><dfn id=ellipse>ellipse</dfn>([&lt;length&gt;|&lt;percentage&gt;][,
459+
[&lt;length&gt;|&lt;percentage&gt;]]{3})
458460

459461
<dd>
460462
<ul>
@@ -465,8 +467,8 @@ <h4 id=supported-basic-shapes><span class=secno>3.2.1. </span>Supported
465467
invalid.
466468
</ul>
467469

468-
<dt><dfn id=polygon>polygon</dfn>([&lt;fill-rule&gt;,]?
469-
[&lt;length&gt;|&lt;percentage&gt;]{2}#)
470+
<dt><dfn
471+
id=polygon>polygon</dfn>([&lt;fill-rule&gt;,]?[&lt;length&gt;|&lt;percentage&gt;]{2}#)
470472

471473
<dd>
472474
<ul>
@@ -1293,6 +1295,8 @@ <h3 class=no-num id=since-june-20th-2013>Since <a
12931295
2013</a></h3>
12941296

12951297
<ul>
1298+
<li>Fixed basic shape grammar to use comma separators
1299+
12961300
<li>Remove ‘<code class=css>percentages based on auto-sizing resolve to
12971301
0</code>
12981302

css-shapes/Overview.src.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -305,19 +305,19 @@ <h3 id="basic-shapes-from-svg-syntax">Basic Shapes</h3>
305305
<h4 id="supported-basic-shapes">Supported Shapes</h4>
306306
<p>The following basic shapes are supported.
307307
<dl>
308-
<dt><dfn id="rectangle">rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;]{4} [ curve [&lt;length&gt;|&lt;percentage&gt;]{1,2} ]? )</dt>
308+
<dt><dfn id="rectangle">rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;][, [&lt;length&gt;|&lt;percentage&gt;]]{3,5})</dt>
309309
<dd>
310310
<ul>
311311
<li>
312-
The four values represent
312+
The first four values represent
313313
<strong>x, y, width</strong> and
314314
<strong>height</strong>.
315315
They define the bounding box
316316
of the rectangle.
317317
Negative values for width and height are invalid.
318318
</li>
319319
<li>
320-
The two 'curve' values represent
320+
The last two optional values represent
321321
<strong> rx</strong> and <strong>ry</strong>.
322322
For rounded rectangles they define
323323
the x-axis radius and y-axis radius
@@ -328,19 +328,19 @@ <h4 id="supported-basic-shapes">Supported Shapes</h4>
328328
</li>
329329
</ul>
330330
</dd>
331-
<dt><dfn id="inset-rectangle">inset-rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;]{4} [ curve [&lt;length&gt;|&lt;percentage&gt;]{1,2} ]? )</dt>
331+
<dt><dfn id="inset-rectangle">inset-rectangle</dfn>([&lt;length&gt;|&lt;percentage&gt;][, [&lt;length&gt;|&lt;percentage&gt;]]{3,5})</dt>
332332
<dd>
333333
<ul>
334334
<li>
335-
The four values represent the
335+
The first four values represent the
336336
<strong>top, right, bottom</strong> and
337337
<strong>left</strong> insets that
338338
define the bounding box
339339
of the inset rectangle.
340340
Negative values for any of these insets are invalid.
341341
</li>
342342
<li>
343-
The two 'curve' values represent
343+
The last two optional values represent
344344
<strong> rx</strong> and <strong>ry</strong>.
345345
For rounded inset rectangles they define
346346
the x-axis radius and y-axis radius
@@ -351,7 +351,7 @@ <h4 id="supported-basic-shapes">Supported Shapes</h4>
351351
</li>
352352
</ul>
353353
</dd>
354-
<dt><dfn id="circle">circle</dfn>([&lt;length&gt;|&lt;percentage&gt;]{3})</dt>
354+
<dt><dfn id="circle">circle</dfn>([&lt;length&gt;|&lt;percentage&gt;][, [&lt;length&gt;|&lt;percentage&gt;]]{2})</dt>
355355
<dd>
356356
<ul>
357357
<li>
@@ -366,7 +366,7 @@ <h4 id="supported-basic-shapes">Supported Shapes</h4>
366366
</li>
367367
</ul>
368368
</dd>
369-
<dt><dfn id="ellipse">ellipse</dfn>([&lt;length&gt;|&lt;percentage&gt;]{4})</dt>
369+
<dt><dfn id="ellipse">ellipse</dfn>([&lt;length&gt;|&lt;percentage&gt;][, [&lt;length&gt;|&lt;percentage&gt;]]{3})</dt>
370370
<dd>
371371
<ul>
372372
<li>
@@ -383,7 +383,7 @@ <h4 id="supported-basic-shapes">Supported Shapes</h4>
383383
</li>
384384
</ul>
385385
</dd>
386-
<dt><dfn id="polygon">polygon</dfn>([&lt;fill-rule&gt;,]? [&lt;length&gt;|&lt;percentage&gt;]{2}#)</dt>
386+
<dt><dfn id="polygon">polygon</dfn>([&lt;fill-rule&gt;,]?[&lt;length&gt;|&lt;percentage&gt;]{2}#)</dt>
387387
<dd>
388388
<ul>
389389
<li><strong>fill-rule</strong> - The filling rule used to determine the interior of the
@@ -848,6 +848,7 @@ <h2 class="no-num" id="change-log">Change Log</h2>
848848

849849
<h3 class="no-num" >Since <a href="http://www.w3.org/TR/2013/WD-css-shapes-1-20130620/">June 20th 2013</a></h3>
850850
<ul>
851+
<li>Fixed basic shape grammar to use comma separators</li>
851852
<li>Remove 'percentages based on auto-sizing resolve to 0'</li>
852853
<li>Change initial value of shape-image-threshold to 0.0</li>
853854
<li>Change float positioning to be unaffected by shape-outside</li>

0 commit comments

Comments
 (0)