[css-flexbox] Simplify how we talk about automatic minimum size.

Mon, 04 Apr 2016 13:05:40 -0700

author
Tab Atkins <jackalmage@gmail.com>
date
Mon, 04 Apr 2016 13:05:40 -0700
changeset 17342
25641c92d33f
parent 17341
d13ed56062e2
child 17343
b2444b4d8015

[css-flexbox] Simplify how we talk about automatic minimum size.

css-flexbox/Overview.bs file | annotate | diff | comparison | revisions
     1.1 --- a/css-flexbox/Overview.bs	Mon Apr 04 12:50:29 2016 -0700
     1.2 +++ b/css-flexbox/Overview.bs	Mon Apr 04 13:05:40 2016 -0700
     1.3 @@ -886,36 +886,18 @@
     1.4  		<dd>
     1.5  			On a <a>flex item</a> whose 'overflow' is ''overflow/visible'' in the <a>main axis</a>,
     1.6  			when specified on the <a>flex item's</a> main-axis min-size property,
     1.7 -			the following table gives the minimum size:
     1.8 -
     1.9 -			<table class=data>
    1.10 -				<colgroup span=2></colgroup>
    1.11 -				<colgroup span=1></colgroup>
    1.12 -				<thead>
    1.13 -					<tr>
    1.14 -						<th>Specified Size
    1.15 -						<th>Transferred Size
    1.16 -						<th>Minimum Size
    1.17 -				<tbody>
    1.18 -					<tr>
    1.19 -						<td>
    1.20 -						<td>
    1.21 -						<td><var>content size</var>
    1.22 -					<tr>
    1.23 -						<td>✓
    1.24 -						<td>
    1.25 -						<td>min(<var>specified size</var>, <var>content size</var>)
    1.26 -					<tr>
    1.27 -						<td>
    1.28 -						<td>✓
    1.29 -						<td>min(<var>transferred size</var>, <var>content size</var>)
    1.30 -					<tr>
    1.31 -						<td>✓
    1.32 -						<td>✓
    1.33 -						<td>min(<var>specified size</var>, <var>content size</var>)
    1.34 -			</table>
    1.35 -
    1.36 -			Where:
    1.37 +			specifies an <dfn>automatic minimum size</dfn>.
    1.38 +
    1.39 +			In general, the <a>automatic minimum size</a>
    1.40 +			is the smaller of its <a>content size</a> and its <a>specified size</a>.
    1.41 +			However, if the box has an aspect ratio and no <a>specified size</a>,
    1.42 +			its <a>automatic minimum size</a>
    1.43 +			is the smaller of its <a>content size</a> and its <a>transferred size</a>.
    1.44 +
    1.45 +			The <a>content size</a>, <a>specified size</a>, and <a>transferred size</a>
    1.46 +			used in this calculation account for the relevant min/max/preferred size properties
    1.47 +			so that the <a>automatic minimum size</a> does not interfere with any author-provided constraints,
    1.48 +			and are defined below:
    1.49  
    1.50  			<dl>
    1.51  				<dt><var>specified size</var>

mercurial