Skip to content

Commit 580ac71

Browse files
committed
[css-shapes] add back in some basic shape text snipped with SVG element removal
1 parent 3ff7661 commit 580ac71

2 files changed

Lines changed: 40 additions & 30 deletions

File tree

css-shapes/Overview.html

Lines changed: 19 additions & 22 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-06-14 name=dcterms.date>
15+
<meta content=2013-06-20 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>
@@ -55,14 +55,14 @@
5555

5656
<h1 id=css-shapes-module>CSS Shapes Module Level 1</h1>
5757

58-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 14 June 2013</h2>
58+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 20 June 2013</h2>
5959

6060
<dl>
6161
<dt>This version:
6262

6363
<dd><a
6464
href="http://dev.w3.org/csswg/css-shapes/">http://dev.w3.org/csswg/css-shapes/</a></dd>
65-
<!--<dd><a href="http://dev.w3.org/csswg/css-shapes/">http://www.w3.org/TR/2013/WD-css-shapes-20130614/</a></dd>-->
65+
<!--<dd><a href="http://dev.w3.org/csswg/css-shapes/">http://www.w3.org/TR/2013/WD-css-shapes-20130620/</a></dd>-->
6666

6767
<dt>Latest version:
6868

@@ -333,19 +333,26 @@ <h3 id=basic-shapes-from-svg-syntax><span class=secno>3.2. </span>Basic
333333
href="http://www.w3.org/TR/SVG/shapes.html">basic shapes</a>. The
334334
definitions use <code><a
335335
href="http://www.w3.org/TR/css3-values/#lengths">&lt;length&gt;</a></code>
336-
type and the <code><a href="">&lt;percentage&gt;</a></code> types (see <a
337-
href="#CSS3VAL" rel=biblioentry>[CSS3VAL]<!--{{!CSS3VAL}}--></a>).
338-
Percentages are resolved from the computed value of the <a
336+
type and the <code><a
337+
href="http://www.w3.org/TR/css3-values/#percentages">&lt;percentage&gt;</a></code>
338+
types <a href="#CSS3VAL" rel=biblioentry>[CSS3VAL]<!--{{!CSS3VAL}}--></a>.
339+
When using this syntax to define shapes, the relevant box is determined by
340+
the computed value of the <a
339341
href="http://www.w3.org/TR/css3-ui/#box-sizing"><code
340-
class=property>box-sizing</code></a> property <a href="#CSS3UI"
341-
rel=biblioentry>[CSS3UI]<!--{{!CSS3UI}}--></a> on the element to which the
342-
property applies. For the radius <code>r</code> of the <a
342+
class=property>box-sizing</code></a> property. The coordinate system
343+
for the shape has its origin on the top-left corner of the relevant box
344+
with the x-axis running to the right and the y-axis running downwards. All
345+
the lengths expressed in percentages are resolved from the relevant box.
346+
For the radius <code>r</code> of the <a
343347
href="#circle"><code>circle</code></a> shape, a percentage value is
344348
resolved as <a
345349
href="http://www.w3.org/TR/SVG/coords.html#Units">specified</a> in the SVG
346-
recommendation (see <a href="#SVG11"
347-
rel=biblioentry>[SVG11]<!--{{!SVG11}}--></a>). Path styling like stroking
348-
is not considered part of the specified shape.
350+
recommendation <a href="#SVG11"
351+
rel=biblioentry>[SVG11]<!--{{!SVG11}}--></a>. If the relevant box of the
352+
element is dependent on auto sizing (i.e., the element's ‘<code
353+
class=property>width</code>’ or ‘<code class=property>height</code>
354+
property is ‘<code class=property>auto</code>’), then the percentage
355+
values resolve to 0.
349356

350357
<h4 id=supported-basic-shapes><span class=secno>3.2.1. </span>Supported
351358
Shapes</h4>
@@ -1053,16 +1060,6 @@ <h3 class=no-num id=normative-references>Normative references</h3>
10531060
</dd>
10541061
<!---->
10551062

1056-
<dt id=CSS3UI>[CSS3UI]
1057-
1058-
<dd>Tantek Çelik. <a
1059-
href="http://www.w3.org/TR/2012/WD-css3-ui-20120117/"><cite>CSS Basic
1060-
User Interface Module Level 3 (CSS3 UI).</cite></a> 17 January 2012. W3C
1061-
Working Draft. (Work in progress.) URL: <a
1062-
href="http://www.w3.org/TR/2012/WD-css3-ui-20120117/">http://www.w3.org/TR/2012/WD-css3-ui-20120117/</a>
1063-
</dd>
1064-
<!---->
1065-
10661063
<dt id=CSS3VAL>[CSS3VAL]
10671064

10681065
<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a

css-shapes/Overview.src.html

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,31 @@ <h3 id="basic-shapes-from-svg-syntax">Basic Shapes</h3>
211211
Shapes can be specified using
212212
syntax similar to SVG's <a href="http://www.w3.org/TR/SVG/shapes.html">basic shapes</a>.
213213
The definitions use
214-
<code><a href="http://www.w3.org/TR/css3-values/#lengths">&lt;length&gt;</a></code> type
215-
and the <code><a href="">&lt;percentage&gt;</a></code> types (see [[!CSS3VAL]]).
216-
Percentages are resolved
217-
from the computed value of the
214+
<code><a href="http://www.w3.org/TR/css3-values/#lengths">&lt;length&gt;</a></code> type and the
215+
<code><a href="http://www.w3.org/TR/css3-values/#percentages">&lt;percentage&gt;</a></code>
216+
types [[!CSS3VAL]].
217+
When using this syntax
218+
to define shapes,
219+
the relevant box is determined
220+
by the computed value of the
218221
<a href="http://www.w3.org/TR/css3-ui/#box-sizing">'box-sizing'</a>
219-
property [[!CSS3UI]]
220-
on the element to which the property applies.
222+
property.
223+
The coordinate system for the shape
224+
has its origin on the top-left corner of the
225+
relevant box with the x-axis
226+
running to the right
227+
and the y-axis running downwards.
228+
All the lengths expressed in percentages
229+
are resolved from the relevant box.
221230
For the radius <code>r</code> of the <code>circle</code> shape,
222231
a percentage value is resolved as
223232
<a href="http://www.w3.org/TR/SVG/coords.html#Units">specified</a>
224-
in the SVG recommendation (see [[!SVG11]]).
225-
Path styling like stroking is not considered part of the specified shape.
233+
in the SVG recommendation [[!SVG11]].
234+
If the relevant box of the element
235+
is dependent on auto sizing
236+
(i.e., the element's 'width' or 'height' property is 'auto'),
237+
then the percentage values
238+
resolve to 0.
226239
</p>
227240

228241

0 commit comments

Comments
 (0)