Skip to content

Commit 726151f

Browse files
committed
[css-shapes] Defined shape-box instead of redefining box
1 parent 9fd97c9 commit 726151f

2 files changed

Lines changed: 26 additions & 13 deletions

File tree

css-shapes/Overview.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</p>
6464
<h1 class="p-name no-ref" id=title>CSS Shapes Module Level 1</h1>
6565
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
66-
<span class=dt-updated><span class=value-title title=20140102>2 January 2014</span></span></span></h2>
66+
<span class=dt-updated><span class=value-title title=20140103>3 January 2014</span></span></span></h2>
6767
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-shapes/>http://dev.w3.org/csswg/css-shapes/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-shapes/>http://www.w3.org/TR/css-shapes/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-shapes/>http://dev.w3.org/csswg/css-shapes/</a>
6868
<dt>Feedback:</dt>
6969
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-shapes%5D%20feedback">www-style@w3.org</a>
@@ -702,7 +702,11 @@ <h2 class="heading settled heading" data-level=4 id=shapes-from-image><span clas
702702
<h2 class="heading settled heading" data-level=5 id=shapes-from-box-values><span class=secno>5 </span><span class=content>
703703
Shapes from Box Values</span><a class=self-link href=#shapes-from-box-values></a></h2>
704704

705-
<p> Shapes can be defined by reference to edges in the <a href=http://www.w3.org/TR/CSS21/box.html#box-dimensions>CSS Box Model</a>. These edges include <a href=http://www.w3.org/TR/css3-background/#corner-shaping>border-radius curvature</a> <a data-biblio-type=normative data-link-type=biblio href=#css3bg title=css3bg>[CSS3BG]</a>. The definitions of the <dfn class=css-code data-dfn-type=type data-export="" id=typedef-box><a class="production css-code" data-link-type=type href=#typedef-box title="<box>">&lt;box&gt;</a><a class=self-link href=#typedef-box></a></dfn> values are:
705+
<p> Shapes can be defined by reference to edges in the <a href=http://www.w3.org/TR/CSS21/box.html#box-dimensions>CSS Box Model</a>. These edges include <a href=http://www.w3.org/TR/css3-background/#corner-shaping>border-radius curvature</a> <a data-biblio-type=normative data-link-type=biblio href=#css3bg title=css3bg>[CSS3BG]</a>. The <a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>">&lt;shape-box&gt;</a> value extends the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-backgrounds-3/#box title="<box>">&lt;box&gt;</a> value to include margin-box. Its syntax is:
706+
707+
<pre> <dfn class=css-code data-dfn-type=type data-export="" id=typedef-shape-box><a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>">&lt;shape-box&gt;</a><a class=self-link href=#typedef-shape-box></a></dfn> = <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-backgrounds-3/#box title="<box>">&lt;box&gt;</a> | margin-box
708+
</pre>
709+
<p> The definitions of the values are:
706710

707711
<p> The <dfn data-dfn-type=dfn data-noexport="" id=margin-box>margin-box<a class=self-link href=#margin-box></a></dfn> value defines the shape
708712
enclosed by the outside margin edge.
@@ -776,7 +780,7 @@ <h2 class="heading settled heading" data-level=6 id=declaring-shapes><span class
776780
<h3 class="heading settled heading" data-level=6.1 id=shape-outside-property><span class=secno>6.1 </span><span class=content>
777781
The <a class=property data-link-type=propdesc href=#propdef-shape-outside title=shape-outside>shape-outside</a> Property</span><a class=self-link href=#shape-outside-property></a></h3>
778782

779-
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-shape-outside>shape-outside<a class=self-link href=#propdef-shape-outside></a></dfn><tr><th>Value:<td>auto | [<a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a> || <a class="production css-code" data-link-type=type href=#typedef-box title="<box>">&lt;box&gt;</a>] | <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-images-3/#image-type title="<image>">&lt;image&gt;</a><tr><th>Initial:<td>auto<tr><th>Applies to:<td>floats<tr><th>Inherited:<td>no<tr><th>Media:<td>visual<tr><th>Computed value:<td>computed lengths for <a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a>, the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-images-3/#image-type title="<image>">&lt;image&gt;</a> with its URI made absolute, otherwise as specified<tr><th>Animatable:<td>as <a href=#basic-shape-interpolation>specified</a> for <a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a>, otherwise no</table>
783+
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-shape-outside>shape-outside<a class=self-link href=#propdef-shape-outside></a></dfn><tr><th>Value:<td>auto | [ <a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a> || <a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>">&lt;shape-box&gt;</a> ] | <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-images-3/#image-type title="<image>">&lt;image&gt;</a><tr><th>Initial:<td>auto<tr><th>Applies to:<td>floats<tr><th>Inherited:<td>no<tr><th>Media:<td>visual<tr><th>Computed value:<td>computed lengths for <a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a>, the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-images-3/#image-type title="<image>">&lt;image&gt;</a> with its URI made absolute, otherwise as specified<tr><th>Animatable:<td>as <a href=#basic-shape-interpolation>specified</a> for <a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a>, otherwise no</table>
780784
<p> The values of this property have the following meanings:
781785

782786
<dl data-dfn-for=shape-outside data-dfn-type=value>
@@ -785,7 +789,7 @@ <h3 class="heading settled heading" data-level=6.1 id=shape-outside-property><sp
785789
The <a data-link-type=dfn href=#float-area title="float area">float area</a> uses the margin box as normal.
786790
</dd>
787791

788-
<dt><dfn class=css-code data-dfn-for=shape-outside data-dfn-type=value data-export="" id=valuedef-box><a class="production css-code" data-link-type=type href=#typedef-box title="<box>">&lt;box&gt;</a><a class=self-link href=#valuedef-box></a></dfn></dt>
792+
<dt><a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>">&lt;shape-box&gt;</a></dt>
789793
<dd>
790794
If one of these values is specified by itself
791795
the shape is computed based on one of
@@ -802,7 +806,7 @@ <h3 class="heading settled heading" data-level=6.1 id=shape-outside-property><sp
802806
<dd>
803807
The shape is computed based on the values of one
804808
of <a class=css data-link-type=maybe href=#funcdef-inset title=inset()>inset()</a>, <a class=css data-link-type=maybe href=#funcdef-circle title=circle()>circle()</a>, <a class=css data-link-type=maybe href=#funcdef-ellipse title=ellipse()>ellipse()</a>
805-
or <a class=css data-link-type=maybe href=#funcdef-polygon title=polygon()>polygon()</a>. If a <a class="production css-code" data-link-type=type href=#typedef-box title="<box>">&lt;box&gt;</a> is also supplied, this defines the <a data-link-type=dfn href=#reference-box title="reference box">reference box</a> for the <a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a> function. If <a class="production css-code" data-link-type=type href=#typedef-box title="<box>">&lt;box&gt;</a> is not supplied, then the <a data-link-type=dfn href=#reference-box title="reference box">reference box</a> defaults to <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a>.
809+
or <a class=css data-link-type=maybe href=#funcdef-polygon title=polygon()>polygon()</a>. If a <a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>">&lt;shape-box&gt;</a> is also supplied, this defines the <a data-link-type=dfn href=#reference-box title="reference box">reference box</a> for the <a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a> function. If <a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>">&lt;shape-box&gt;</a> is not supplied, then the <a data-link-type=dfn href=#reference-box title="reference box">reference box</a> defaults to <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a>.
806810
</dd>
807811

808812
<dt><dfn class=css-code data-dfn-for=shape-outside data-dfn-type=value data-export="" id=valuedef-image><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-images-3/#image-type title="<image>">&lt;image&gt;</a><a class=self-link href=#valuedef-image></a></dfn></dt>
@@ -954,6 +958,7 @@ <h2 class="no-num heading settled heading" id=acknowledgments><span class=conten
954958
Hans Muller,
955959
Mihnea Ovidenie,
956960
Virgil Palanciuc,
961+
Robert Sanderson,
957962
Dirk Schulze,
958963
Peter Sorotokin,
959964
Bear Travis,
@@ -967,6 +972,7 @@ <h2 class="no-num heading settled heading" id=change-log><span class=content>
967972
<h3 class="no-num heading settled heading" id=20131203><span class=content>
968973
Since <a href=http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/>December 3rd 2013</a></span><a class=self-link href=#20131203></a></h3>
969974
<ul>
975+
<li>Defined shape-box instead of redefining box</li>
970976
<li>Clarify that shape from image may produce more than one path</li>
971977
</ul>
972978

@@ -1157,9 +1163,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11571163
<li>&lt;basic-shape&gt;<ul><li>(type), <a href=#typedef-basic-shape title="section 3">3</a>
11581164
<li>value for shape-outside, <a href=#valuedef-basic-shape title="section 6.1">6.1</a>
11591165
</ul><li>border-box, <a href=#border-box title="section 5">5</a>
1160-
<li>&lt;box&gt;<ul><li>(type), <a href=#typedef-box title="section 5">5</a>
1161-
<li>value for shape-outside, <a href=#valuedef-box title="section 6.1">6.1</a>
1162-
</ul><li>circle(), <a href=#funcdef-circle title="section 3.1">3.1</a>
1166+
<li>circle(), <a href=#funcdef-circle title="section 3.1">3.1</a>
11631167
<li>closest-side, <a href=#closest-side title="section 3.1">3.1</a>
11641168
<li>content-box, <a href=#content-box title="section 5">5</a>
11651169
<li>ellipse(), <a href=#funcdef-ellipse title="section 3.1">3.1</a>
@@ -1177,6 +1181,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11771181
<li>polygon(), <a href=#funcdef-polygon title="section 3.1">3.1</a>
11781182
<li>reference box, <a href=#reference-box title="section 3">3</a>
11791183
<li>&lt;shape-arg&gt;, <a href=#typedef-shape-arg title="section 3.1">3.1</a>
1184+
<li>&lt;shape-box&gt;, <a href=#typedef-shape-box title="section 5">5</a>
11801185
<li>shape-image-threshold, <a href=#propdef-shape-image-threshold title="section 6.2">6.2</a>
11811186
<li>shape-margin, <a href=#propdef-shape-margin title="section 6.3">6.3</a>
11821187
<li>shape-outside, <a href=#propdef-shape-outside title="section 6.1">6.1</a>
@@ -1187,7 +1192,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11871192
<h2 class="no-num no-ref heading settled heading" id=property-index><span class=content>
11881193
Property index</span><a class=self-link href=#property-index></a></h2>
11891194
<div data-fill-with=property-index><table class="proptable data"><thead><tr><th scope=col>Name<th scope=col>Value<th scope=col>Initial<th scope=col>Applies to<th scope=col>Inh.<th scope=col>%ages<th scope=col>Media<th scope=col>Animatable<th scope=col>Computed value<tbody>
1190-
<tr><th scope=row><a data-property="">shape-outside</a><td>auto | [&lt;basic-shape&gt; || &lt;box&gt;] | &lt;image&gt;<td>auto<td>floats<td>no<td><td>visual<td>as specified for &lt;basic-shape&gt;, otherwise no<td>computed lengths for &lt;basic-shape&gt;, the &lt;image&gt; with its URI made absolute, otherwise as specified
1195+
<tr><th scope=row><a data-property="">shape-outside</a><td>auto | [ &lt;basic-shape&gt; || &lt;shape-box&gt; ] | &lt;image&gt;<td>auto<td>floats<td>no<td><td>visual<td>as specified for &lt;basic-shape&gt;, otherwise no<td>computed lengths for &lt;basic-shape&gt;, the &lt;image&gt; with its URI made absolute, otherwise as specified
11911196
<tr><th scope=row><a data-property="">shape-image-threshold</a><td>&lt;number&gt;<td>0.0<td>floats<td>no<td><td>visual<td>as number<td>The same as the specified value after clipping the &lt;number&gt; to the range [0.0,1.0]
11921197
<tr><th scope=row><a data-property="">shape-margin</a><td>&lt;length&gt; | &lt;percentage&gt;<td>0<td>floats<td>no<td><td>visual<td>as length, percentage, or calc.<td>the absolute length</table></div>
11931198

css-shapes/Overview.src.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,13 @@ <h2 id="shapes-from-image">
585585
<h2 id="shapes-from-box-values">
586586
Shapes from Box Values</h2>
587587

588-
Shapes can be defined by reference to edges in the <a href="http://www.w3.org/TR/CSS21/box.html#box-dimensions">CSS Box Model</a>. These edges include <a href="http://www.w3.org/TR/css3-background/#corner-shaping">border-radius curvature</a> [[!CSS3BG]]. The definitions of the <dfn><<box>></dfn> values are:
588+
Shapes can be defined by reference to edges in the <a href="http://www.w3.org/TR/CSS21/box.html#box-dimensions">CSS Box Model</a>. These edges include <a href="http://www.w3.org/TR/css3-background/#corner-shaping">border-radius curvature</a> [[!CSS3BG]]. The <<shape-box>> value extends the <<box>> value to include margin-box. Its syntax is:
589+
590+
<pre>
591+
<dfn><<shape-box>></dfn> = <<box>> | margin-box
592+
</pre>
593+
594+
The definitions of the values are:
589595

590596
The <dfn>margin-box</dfn> value defines the shape
591597
enclosed by the outside margin edge.
@@ -663,7 +669,7 @@ <h3 id="shape-outside-property">
663669

664670
<pre class='propdef'>
665671
Name: shape-outside
666-
Value: auto | [<<basic-shape>> || <<box>>] | <<image>>
672+
Value: auto | [ <<basic-shape>> || <<shape-box>> ] | <<image>>
667673
Initial: auto
668674
Applies To: floats
669675
Inherited: no
@@ -680,7 +686,7 @@ <h3 id="shape-outside-property">
680686
The <a>float area</a> uses the margin box as normal.
681687
</dd>
682688

683-
<dt><dfn><<box>></dfn></dt>
689+
<dt><<shape-box>></dt>
684690
<dd>
685691
If one of these values is specified by itself
686692
the shape is computed based on one of
@@ -697,7 +703,7 @@ <h3 id="shape-outside-property">
697703
<dd>
698704
The shape is computed based on the values of one
699705
of ''inset()'', ''circle()'', ''ellipse()''
700-
or ''polygon()''. If a <<box>> is also supplied, this defines the <a>reference box</a> for the <<basic-shape>> function. If <<box>> is not supplied, then the <a>reference box</a> defaults to ''margin-box''.
706+
or ''polygon()''. If a <<shape-box>> is also supplied, this defines the <a>reference box</a> for the <<basic-shape>> function. If <<shape-box>> is not supplied, then the <a>reference box</a> defaults to ''margin-box''.
701707
</dd>
702708

703709
<dt><dfn><<image>></dfn></dt>
@@ -874,6 +880,7 @@ <h2 class="no-num" id="acknowledgments">
874880
Hans Muller,
875881
Mihnea Ovidenie,
876882
Virgil Palanciuc,
883+
Robert Sanderson,
877884
Dirk Schulze,
878885
Peter Sorotokin,
879886
Bear Travis,
@@ -887,6 +894,7 @@ <h2 class="no-num" id="change-log">
887894
<h3 class="no-num" id="20131203">
888895
Since <a href="http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/">December 3rd 2013</a></h3>
889896
<ul>
897+
<li>Defined shape-box instead of redefining box</li>
890898
<li>Clarify that shape from image may produce more than one path</li>
891899
</ul>
892900

0 commit comments

Comments
 (0)