Skip to content

Commit aa6a552

Browse files
committed
[css3-sizing] Specify that fill-available treats auto margins as zero.
1 parent 4d4c563 commit aa6a552

2 files changed

Lines changed: 6 additions & 80 deletions

File tree

css3-sizing/Overview.html

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -875,47 +875,10 @@ <h2 id=extrinsic-sizing><span class=secno>5. </span> Extrinsic Size
875875
href="#definite-size"><i>definite</i></a> and the second value otherwise.
876876
</ul>
877877

878-
<p> …less the box's inline-axis margins (after <a
878+
<p> …less the box's inline-axis margins (after any <a
879879
href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin
880-
collapsing</a>), borders, and padding. <!--
881-
<hr>
882-
883-
<p>
884-
To find the inner <i>fill-available measure</i> of a box:
885-
886-
<ol>
887-
<li>
888-
If the measure of its containing block is <i>definite</i>,
889-
use that measure.
890-
891-
<p>
892-
Otherwise, use the inner <i>fill-available measure</i> of the element establishing its containing block.
893-
894-
<li>
895-
If the computed 'max-measure' of the element establishing its containing block if that measure is <i>definite</i>,
896-
and less than the measure found in the previous step,
897-
use the computed 'max-measure' instead.
898-
899-
<li>
900-
If the computed 'min-measure' of the element establishing its containing block if that measure is <i>definite</i>,
901-
and greater than the measure found in the previous step,
902-
use the computed 'min-measure' instead.
903-
904-
<li>
905-
Subtract the box's inline-axis margins (after <a href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>), borders, and padding from the measure found in the previous step.
906-
</ol>
907-
908-
<hr>
909-
910-
<p>
911-
The inner <i>fill-available measure</i> of a box is either
912-
the measure of its containing block, if that is <i>definite</i>,
913-
else the inner <i>fill-available measure</i> of the element establishing its containing block;
914-
less the box's inline-axis margins (after <a href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>), borders, and padding.
915-
A containing block's size is <i>definite</i> if is established by an element
916-
that is not inline and
917-
whose computed measure, min-measure, and max-measure are <i>definite</i> (or, in the case of <i>max-measure</i>, ''none'').
918-
-->
880+
collapsing</a>, and treating ‘<code class=css>auto</code>’ margins as
881+
zero), borders, and padding.
919882

920883
<p> The <a href="#fill-available-extent"><i>fill-available extent</i></a>
921884
of a box is defined analogously, but in the other dimension.

css3-sizing/Overview.src.html

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -607,47 +607,10 @@ <h2 id='extrinsic-sizing'>
607607
and where the first value is used if it is <i>definite</i> and the second value otherwise.
608608
</ul>
609609
<p>
610-
&hellip;less the box's inline-axis margins (after <a href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>), borders, and padding.
610+
&hellip;less the box's inline-axis margins
611+
(after any <a href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>, and treating ''auto'' margins as zero),
612+
borders, and padding.
611613

612-
<!--
613-
<hr>
614-
615-
<p>
616-
To find the inner <i>fill-available measure</i> of a box:
617-
618-
<ol>
619-
<li>
620-
If the measure of its containing block is <i>definite</i>,
621-
use that measure.
622-
623-
<p>
624-
Otherwise, use the inner <i>fill-available measure</i> of the element establishing its containing block.
625-
626-
<li>
627-
If the computed 'max-measure' of the element establishing its containing block if that measure is <i>definite</i>,
628-
and less than the measure found in the previous step,
629-
use the computed 'max-measure' instead.
630-
631-
<li>
632-
If the computed 'min-measure' of the element establishing its containing block if that measure is <i>definite</i>,
633-
and greater than the measure found in the previous step,
634-
use the computed 'min-measure' instead.
635-
636-
<li>
637-
Subtract the box's inline-axis margins (after <a href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>), borders, and padding from the measure found in the previous step.
638-
</ol>
639-
640-
<hr>
641-
642-
<p>
643-
The inner <i>fill-available measure</i> of a box is either
644-
the measure of its containing block, if that is <i>definite</i>,
645-
else the inner <i>fill-available measure</i> of the element establishing its containing block;
646-
less the box's inline-axis margins (after <a href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>), borders, and padding.
647-
A containing block's size is <i>definite</i> if is established by an element
648-
that is not inline and
649-
whose computed measure, min-measure, and max-measure are <i>definite</i> (or, in the case of <i>max-measure</i>, ''none'').
650-
-->
651614
<p>
652615
The <i>fill-available extent</i> of a box is defined analogously,
653616
but in the other dimension.

0 commit comments

Comments
 (0)