Skip to content

Commit 7e85cbc

Browse files
committed
[css-shapes] change auto to none for shape-outside
1 parent 726151f commit 7e85cbc

2 files changed

Lines changed: 39 additions & 29 deletions

File tree

css-shapes/Overview.html

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ <h3 class="heading settled heading" data-level=1.4 id=terminology><span class=se
229229
to determine where content flows.
230230
By default,
231231
the <a data-link-type=dfn href=#float-area title="float area">float area</a> is the float element’s
232-
<a href=http://www.w3.org/TR/CSS2/box.html#box-dimensions>margin box</a>.
232+
<a href=http://www.w3.org/TR/CSS2/box.html#box-dimensions>margin box</a>
233+
(note this can be different than
234+
the <a data-link-type=dfn href=#float-area title="float area">float area</a> produced
235+
by the <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a> value,
236+
which includes border-radius curvature).
233237
This specification’s <a class=property data-link-type=propdesc href=#propdef-shape-outside title=shape-outside>shape-outside</a> property
234238
can be used to define an arbitrary,
235239
non-rectangular <a data-link-type=dfn href=#float-area title="float area">float area</a>.
@@ -642,7 +646,7 @@ <h2 class="heading settled heading" data-level=4 id=shapes-from-image><span clas
642646
<p> The image is sized and positioned
643647
as if it were a replaced element
644648
with a specified width and height
645-
of the element’s used content-box size.
649+
of the element’s used content box size.
646650

647651
<p> For animated raster image formats (such as
648652
<a href=http://www.w3.org/Graphics/GIF/spec-gif89a.txt>GIF</a>),
@@ -702,9 +706,9 @@ <h2 class="heading settled heading" data-level=4 id=shapes-from-image><span clas
702706
<h2 class="heading settled heading" data-level=5 id=shapes-from-box-values><span class=secno>5 </span><span class=content>
703707
Shapes from Box Values</span><a class=self-link href=#shapes-from-box-values></a></h2>
704708

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:
709+
<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 <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a>. Its syntax is:
706710

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
711+
<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> | <a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a>
708712
</pre>
709713
<p> The definitions of the values are:
710714

@@ -737,10 +741,10 @@ <h2 class="heading settled heading" data-level=5 id=shapes-from-box-values><span
737741
the box values define these shapes:
738742

739743
<p> <ul>
740-
<li>margin-box: the shape containing all of the yellow pixels</li>
741-
<li>border-box: the shape containing all of the black pixels</li>
742-
<li>padding-box: the shape containing all of the mauve pixels</li>
743-
<li>content-box: the shape containing all of the blue pixels</li>
744+
<li><a class=css data-link-type=maybe href=#margin-box title=margin-box>margin-box</a>: the shape containing all of the yellow pixels</li>
745+
<li><a class=css data-link-type=maybe href=#border-box title=border-box>border-box</a>: the shape containing all of the black pixels</li>
746+
<li><a class=css data-link-type=maybe href=#padding-box title=padding-box>padding-box</a>: the shape containing all of the mauve pixels</li>
747+
<li><a class=css data-link-type=maybe href=#content-box title=content-box>content-box</a>: the shape containing all of the blue pixels</li>
744748
</ul>
745749

746750
<div class=figure>
@@ -780,13 +784,13 @@ <h2 class="heading settled heading" data-level=6 id=declaring-shapes><span class
780784
<h3 class="heading settled heading" data-level=6.1 id=shape-outside-property><span class=secno>6.1 </span><span class=content>
781785
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>
782786

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>
787+
<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>none | [ <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>none<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>
784788
<p> The values of this property have the following meanings:
785789

786790
<dl data-dfn-for=shape-outside data-dfn-type=value>
787-
<dt><dfn class=css-code data-dfn-for=shape-outside data-dfn-type=value data-export="" id=valuedef-auto>auto<a class=self-link href=#valuedef-auto></a></dfn></dt>
791+
<dt><dfn class=css-code data-dfn-for=shape-outside data-dfn-type=value data-export="" id=valuedef-none>none<a class=self-link href=#valuedef-none></a></dfn></dt>
788792
<dd>
789-
The <a data-link-type=dfn href=#float-area title="float area">float area</a> uses the margin box as normal.
793+
The <a data-link-type=dfn href=#float-area title="float area">float area</a> is unaffected.
790794
</dd>
791795

792796
<dt><a class="production css-code" data-link-type=type href=#typedef-shape-box title="<shape-box>">&lt;shape-box&gt;</a></dt>
@@ -830,7 +834,7 @@ <h3 class="heading settled heading" data-level=6.1 id=shape-outside-property><sp
830834
If this results in network errors
831835
such that there is no valid fallback image,
832836
the effect is as if
833-
the value <a class=css-code data-link-for=shape-outside data-link-type=value href=#valuedef-auto title=auto>auto</a>
837+
the value <a class=css-code data-link-for=shape-outside data-link-type=value href=#valuedef-none title=none>none</a>
834838
had been specified.
835839
</dd>
836840
</dl>
@@ -972,8 +976,9 @@ <h2 class="no-num heading settled heading" id=change-log><span class=content>
972976
<h3 class="no-num heading settled heading" id=20131203><span class=content>
973977
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>
974978
<ul>
979+
<li>change auto to none for shape-outside</li>
975980
<li>Defined shape-box instead of redefining box</li>
976-
<li>Clarify that shape from image may produce more than one path</li>
981+
<li>Clarified that shape from image may produce more than one path</li>
977982
</ul>
978983

979984
<h3 class="no-num heading settled heading" id=20130620><span class=content>
@@ -1159,7 +1164,6 @@ <h3 class="no-num no-ref heading settled heading" id=informative><span class=con
11591164
<h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11601165
Index</span><a class=self-link href=#index></a></h2>
11611166
<div data-fill-with=index><ul class=indexlist>
1162-
<li>auto, <a href=#valuedef-auto title="section 6.1">6.1</a>
11631167
<li>&lt;basic-shape&gt;<ul><li>(type), <a href=#typedef-basic-shape title="section 3">3</a>
11641168
<li>value for shape-outside, <a href=#valuedef-basic-shape title="section 6.1">6.1</a>
11651169
</ul><li>border-box, <a href=#border-box title="section 5">5</a>
@@ -1175,6 +1179,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11751179
<li>inset(), <a href=#funcdef-inset title="section 3.1">3.1</a>
11761180
<li>&lt;length&gt;, <a href=#valuedef-length title="section 6.3">6.3</a>
11771181
<li>margin-box, <a href=#margin-box title="section 5">5</a>
1182+
<li>none, <a href=#valuedef-none title="section 6.1">6.1</a>
11781183
<li>&lt;number&gt;, <a href=#valuedef-number title="section 6.2">6.2</a>
11791184
<li>padding-box, <a href=#padding-box title="section 5">5</a>
11801185
<li>&lt;percentage&gt;, <a href=#valuedef-percentage title="section 6.3">6.3</a>
@@ -1192,7 +1197,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11921197
<h2 class="no-num no-ref heading settled heading" id=property-index><span class=content>
11931198
Property index</span><a class=self-link href=#property-index></a></h2>
11941199
<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>
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
1200+
<tr><th scope=row><a data-property="">shape-outside</a><td>none | [ &lt;basic-shape&gt; || &lt;shape-box&gt; ] | &lt;image&gt;<td>none<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
11961201
<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]
11971202
<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>
11981203

css-shapes/Overview.src.html

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ <h3 id="terminology">
105105
to determine where content flows.
106106
By default,
107107
the <a>float area</a> is the float element's
108-
<a href="http://www.w3.org/TR/CSS2/box.html#box-dimensions">margin box</a>.
108+
<a href="http://www.w3.org/TR/CSS2/box.html#box-dimensions">margin box</a>
109+
(note this can be different than
110+
the <a>float area</a> produced
111+
by the ''margin-box'' value,
112+
which includes border-radius curvature).
109113
This specification's 'shape-outside' property
110114
can be used to define an arbitrary,
111115
non-rectangular <a>float area</a>.
@@ -523,7 +527,7 @@ <h2 id="shapes-from-image">
523527
The image is sized and positioned
524528
as if it were a replaced element
525529
with a specified width and height
526-
of the element's used content-box size.
530+
of the element's used content box size.
527531

528532
For animated raster image formats (such as
529533
<a href="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">GIF</a>),
@@ -585,10 +589,10 @@ <h2 id="shapes-from-image">
585589
<h2 id="shapes-from-box-values">
586590
Shapes from Box Values</h2>
587591

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:
592+
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:
589593

590594
<pre>
591-
<dfn><<shape-box>></dfn> = <<box>> | margin-box
595+
<dfn><<shape-box>></dfn> = <<box>> | ''margin-box''
592596
</pre>
593597

594598
The definitions of the values are:
@@ -622,10 +626,10 @@ <h2 id="shapes-from-box-values">
622626
the box values define these shapes:
623627

624628
<ul>
625-
<li>margin-box: the shape containing all of the yellow pixels</li>
626-
<li>border-box: the shape containing all of the black pixels</li>
627-
<li>padding-box: the shape containing all of the mauve pixels</li>
628-
<li>content-box: the shape containing all of the blue pixels</li>
629+
<li>''margin-box'': the shape containing all of the yellow pixels</li>
630+
<li>''border-box'': the shape containing all of the black pixels</li>
631+
<li>''padding-box'': the shape containing all of the mauve pixels</li>
632+
<li>''content-box'': the shape containing all of the blue pixels</li>
629633
</ul>
630634

631635
<div class="figure">
@@ -669,8 +673,8 @@ <h3 id="shape-outside-property">
669673

670674
<pre class='propdef'>
671675
Name: shape-outside
672-
Value: auto | [ <<basic-shape>> || <<shape-box>> ] | <<image>>
673-
Initial: auto
676+
Value: none | [ <<basic-shape>> || <<shape-box>> ] | <<image>>
677+
Initial: none
674678
Applies To: floats
675679
Inherited: no
676680
Computed Value: computed lengths for <<basic-shape>>, the <<image>> with its URI made absolute, otherwise as specified
@@ -681,9 +685,9 @@ <h3 id="shape-outside-property">
681685
The values of this property have the following meanings:
682686

683687
<dl dfn-type="value" dfn-for="shape-outside">
684-
<dt><dfn>auto</dfn></dt>
688+
<dt><dfn>none</dfn></dt>
685689
<dd>
686-
The <a>float area</a> uses the margin box as normal.
690+
The <a>float area</a> is unaffected.
687691
</dd>
688692

689693
<dt><<shape-box>></dt>
@@ -727,7 +731,7 @@ <h3 id="shape-outside-property">
727731
If this results in network errors
728732
such that there is no valid fallback image,
729733
the effect is as if
730-
the value <a value for="shape-outside">auto</a>
734+
the value <a value for="shape-outside">none</a>
731735
had been specified.
732736
</dd>
733737
</dl>
@@ -894,8 +898,9 @@ <h2 class="no-num" id="change-log">
894898
<h3 class="no-num" id="20131203">
895899
Since <a href="http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/">December 3rd 2013</a></h3>
896900
<ul>
901+
<li>change auto to none for shape-outside</li>
897902
<li>Defined shape-box instead of redefining box</li>
898-
<li>Clarify that shape from image may produce more than one path</li>
903+
<li>Clarified that shape from image may produce more than one path</li>
899904
</ul>
900905

901906
<h3 class="no-num" id="20130620">

0 commit comments

Comments
 (0)