Skip to content

Commit

Permalink
Tweak minsize/maxsize adjustment to avoid rounding errors.
Browse files Browse the repository at this point in the history
Applies consensus from mathml core 18/11/19

closes w3c/mathml#110
  • Loading branch information
fred-wang committed May 9, 2020
1 parent a1fdb34 commit a91f020
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,6 @@ <h4>Group Sub-Expressions <code>&lt;mrow&gt;</code></h4>
<h5>Algorithm for stretching operators along the block axis</h5>
<div class="issue" data-number="124">Layout of container with only stretchy <a>in-flow</a> children</div>
<div class="issue" data-number="109">Define what happens when maxsize &lt; minsize</div>
<div class="issue" data-number="110">Explicit calculation for minsize/maxsize constraints?</div>
<figure id="symmetric-and-non-symmetric-vertical-stretching">
<img src="figures/vstretch.svg"/>
<figcaption>Symmetric and non-symmetric stretching of
Expand Down Expand Up @@ -2100,18 +2099,22 @@ <h5>Algorithm for stretching operators along the block axis</h5>
<li>
Otherwise, if
0 &lt; <code>T</code> &lt; <code>minsize</code>
then
then first
multiply
<code>T<sub>ascent</sub></code>,
<code>T<sub>descent</sub></code>
by <code>minsize</code> / <code>T</code>.
<code>T<sub>ascent</sub></code>
by <code>minsize</code> / <code>T</code>
and then set <code>T<sub>descent</sub></code>
to <code>minsize</code> -
<code>T<sub>ascent</sub></code>.
</li>
<li>
Otherwise, if <code>maxsize</code> &lt; <code>T</code>
then multiply
<code>T<sub>ascent</sub></code>,
<code>T<sub>descent</sub></code>
by <code>maxsize</code> / <code>T</code>.
then first multiply
<code>T<sub>ascent</sub></code> by
<code>maxsize</code> / <code>T</code> and
then set <code>T<sub>descent</sub></code>
to <code>maxsize</code>
<code>T<sub>ascent</sub></code>.
</li>
</ul>
</li>
Expand Down

0 comments on commit a91f020

Please sign in to comment.