Skip to content

Commit e502ad1

Browse files
committed
Handle the case of "only stretchy operators" for stretching along block axis and make it more consistent with the inline axis case.
closes w3c/mathml#124
1 parent 908719e commit e502ad1

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

index.html

+20-16
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ <h5>Algorithm for stretching operators along the block axis</h5>
21562156
operators along the <a>block axis</a></figcaption>
21572157
</figure>
21582158
<p>
2159-
The <dfn>Algorithm for stretching operators along the block axis</dfn>
2159+
The <dfn>algorithm for stretching operators along the block axis</dfn>
21602160
consists in the following steps:
21612161
</p>
21622162
<ol>
@@ -2171,14 +2171,20 @@ <h5>Algorithm for stretching operators along the block axis</h5>
21712171
without any stretch size constraint
21722172
and stop.
21732173
</li>
2174+
<li>Otherwise,
2175+
split the list of <a>in-flow</a> children into a first list
2176+
<code>L<sub>ToStretch</sub></code> containing
2177+
<a>embellished operators</a> with
2178+
a <a>stretchy</a> property and block <a>stretch axis</a> ;
2179+
and a second list <code>L<sub>NotToStretch</sub></code>.
2180+
</li>
21742181
<li>
2175-
Layout all the <a>in-flow</a> children of the
2176-
<code>&lt;mrow&gt;</code> except the
2177-
<a>embellished operators</a> that have
2178-
the <a>stretchy</a> property and block <a>stretch axis</a>.
2179-
If this step results in all the <a>in-flow</a> children
2180-
being laid out, then
2181-
stop.
2182+
Perform layout without any stretch size constraint on
2183+
all the items of <code>L<sub>NotToStretch</sub></code>.
2184+
If <code>L<sub>ToStretch</sub></code> is empty then stop.
2185+
If <code>L<sub>NotToStretch</sub></code> is empty, perform
2186+
layout with stretch size constraint 0 on
2187+
all the items of <code>L<sub>ToStretch</sub></code>.
21822188
</li>
21832189
<li>
21842190
Calculate the unconstrained target sizes
@@ -2189,14 +2195,12 @@ <h5>Algorithm for stretching operators along the block axis</h5>
21892195
have been laid out in the previous step.
21902196
</li>
21912197
<li>
2192-
For each <a>in-flow</a> child of <code>&lt;mrow&gt;</code>
2193-
that is an <a>embellished operator</a>
2194-
with the <a>stretchy</a> property and block <a>stretch axis</a>,
2195-
layout the child with <a>block stretch size constraint</a>
2198+
Layout or relayout all the elements of
2199+
<code>L<sub>ToStretch</sub></code> with
2200+
<a>block stretch size constraint</a>
21962201
<code>(U<sub>ascent</sub>, U<sub>descent</sub>)</code>.
21972202
</li>
21982203
</ol>
2199-
<div class="issue" data-number="124">Layout of container with only stretchy <a>in-flow</a> children</div>
22002204
</section>
22012205
<section id="layout-of-mrow">
22022206
<h5>Layout of <code>&lt;mrow&gt;</code></h5>
@@ -3655,7 +3659,6 @@ <h5>Children of <code>&lt;munder&gt;</code>,
36553659
<section>
36563660
<h4>Algorithm for stretching operators along the inline axis</h4>
36573661
<div class="issue" data-number="130">Avoid underestimation of min/max stretchy horizontal operators</div>
3658-
<div class="issue" data-number="124">Layout of container with only stretchy <a>in-flow</a> children</div>
36593662
<p>
36603663
The <dfn>algorithm for stretching operators along the inline
36613664
axis</dfn>
@@ -3671,10 +3674,11 @@ <h4>Algorithm for stretching operators along the inline axis</h4>
36713674
with the same stretch size constraint.
36723675
</li>
36733676
<li>
3674-
Split the list remaining <a>in-flow</a> children into a first list
3677+
Split the list of <a>in-flow</a> children that have not been
3678+
laid out yet into a first list
36753679
<code>L<sub>ToStretch</sub></code> containing
36763680
<a>embellished operators</a> with
3677-
a <a>stretchy</a> property and inline <a>stretch axis</a>
3681+
a <a>stretchy</a> property and inline <a>stretch axis</a> ;
36783682
and a second list <code>L<sub>NotToStretch</sub></code>.
36793683
</li>
36803684
<li>

0 commit comments

Comments
 (0)