Skip to content

Commit 00f54bb

Browse files
committed
[css-writing-modes] Fix orthogonal flows to correctly handle max-height on containing block. #2239
1 parent bcc4a42 commit 00f54bb

File tree

2 files changed

+36
-15
lines changed

2 files changed

+36
-15
lines changed

css-writing-modes-3/Overview.bs

+13-6
Original file line numberDiff line numberDiff line change
@@ -2031,13 +2031,20 @@ Available Space in Orthogonal Flows</h4>
20312031
but its <a>available inline space</a> to be indefinite.
20322032
In such cases a percentage of the containing block’s <a>inline size</a> cannot be defined,
20332033
and <a>inline axis</a> computations cannot be resolved.
2034-
In these cases, the smaller of
2035-
the initial containing block’s size or
2036-
the nearest ancestor <a>scrollport</a>’s inner size
2037-
if that size is fixed (else its inner max-size, if that is fixed)
2038-
is used as a <a>fallback</a>
2034+
In these cases,
2035+
an additional constraint is used as a <a>fallback</a>
20392036
in place of the <a>available inline space</a>
2040-
for calculations that require a definite <a>available inline space</a>.
2037+
for calculations that require a definite <a>available inline space</a>--
2038+
the smallest of
2039+
<ul>
2040+
<li>the size represented by
2041+
the containing block’s inner <a>max size</a> (if that is fixed)
2042+
floored by its inner <a>min size</a> (if that is fixed)
2043+
<li>the nearest ancestor <a>scrollport</a>’s inner size if that is fixed,
2044+
else / capped by its inner <a>max size</a> if that is fixed,
2045+
floored by its inner <a>min size</a> if that is fixed
2046+
<li>the initial containing block’s size
2047+
</ul>
20412048

20422049
<p>See [[!CSS3-SIZING]] for further details on CSS sizing terminology and concepts.
20432050

css-writing-modes-4/Overview.bs

+23-9
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ english17 <i lt=''>20WERBEH english19 18WERBEH</i>
565565
<!-- -->english16
566566

567567
<!-- -->english17 <i lt=''>18WERBEH
568-
<!-- -->20WERBEH english19</a>
568+
<!-- -->20WERBEH english19</i>
569569
</pre>
570570

571571
<p>Notice that because <samp>HEBREW18</samp> must be read before <samp>english19</samp>,
@@ -2057,12 +2057,20 @@ Available Space in Orthogonal Flows</h4>
20572057
but its <a>available inline space</a> to be indefinite.
20582058
In such cases a percentage of the containing block’s <a>inline size</a> cannot be defined,
20592059
and <a>inline axis</a> computations cannot be resolved.
2060-
In these cases, the smaller of
2061-
the nearest fixed-size ancestor <a>scrollport</a>’s size (if any)
2062-
or the initial containing block’s size
2063-
is used as a <a>fallback</a>
2060+
In these cases,
2061+
an additional constraint is used as a <a>fallback</a>
20642062
in place of the <a>available inline space</a>
2065-
for calculations that require a definite <a>available inline space</a>.
2063+
for calculations that require a definite <a>available inline space</a>--
2064+
the smallest of
2065+
<ul>
2066+
<li>the size represented by
2067+
the containing block’s inner <a>max size</a> (if that is fixed)
2068+
floored by its inner <a>min size</a> (if that is fixed)
2069+
<li>the nearest ancestor <a>scrollport</a>’s inner size if that is fixed,
2070+
else / capped by its inner <a>max size</a> if that is fixed,
2071+
floored by its inner <a>min size</a> if that is fixed
2072+
<li>the initial containing block’s size
2073+
</ul>
20662074

20672075
<p>See [[!CSS3-SIZING]] for further details on CSS sizing terminology and concepts.
20682076

@@ -2090,10 +2098,16 @@ Auto-sizing Block Containers in Orthogonal Flows</h4>
20902098

20912099
<dt><var>constraint</var>
20922100
<dd>the <a>inline-axis</a> size
2093-
that would <a>stretch fit</a> into to the smaller of
2101+
that would <a>stretch fit</a> into to the smallest of
20942102
<ul>
2095-
<li>the <a>available space</a>
2096-
<li>the nearest ancestor <a>scrollport</a>’s inner size if that is fixed, else its inner max-size if that is fixed
2103+
<li>the <a>available space</a>:
2104+
the containing block’s size if that is fixed,
2105+
else the size represented by
2106+
the containing block’s inner <a>max size</a> (if that is fixed)
2107+
floored by its inner <a>min size</a> (if that is fixed)
2108+
<li>the nearest ancestor <a>scrollport</a>’s inner size if that is fixed,
2109+
else / capped by its inner <a>max size</a> if that is fixed,
2110+
floored by its inner <a>min size</a> if that is fixed
20972111
<li>the initial containing block’s size
20982112
</dl>
20992113

0 commit comments

Comments
 (0)