Skip to content

Commit c2eb16b

Browse files
committed
[css-sizing] Clean available space terminology & usage. Hopefully things will start to link up correctly now.
1 parent b64e4f3 commit c2eb16b

3 files changed

Lines changed: 20 additions & 17 deletions

File tree

css-sizing-3/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ Terminology</h2>
9898
<dt><dfn id="indefinite" lt="indefinite|indefinite size">indefinite size</dfn>
9999
<dd>
100100
A size that is not <a>definite</a>.
101-
An <a>indefinite</a> <a>available size</a> is essentially infinite.
101+
<a>Indefinite</a> <a>available space</a> is essentially infinite.
102102

103-
<dt><dfn id="available" local-lt="available" lt="available size|available inline size|available block size|available space">available space</dfn>
103+
<dt><dfn id="available" local-lt="available" lt="available space|available inline space|available block space">available space</dfn>
104104
<dd>
105-
The space into which a box is laid out.
106-
Unless otherwise specified, this is
105+
A size representing the space into which a box is laid out,
106+
as determined by
107+
the rules of the formatting context in which it participates.
108+
The space available to a box is usually
107109
either a measurement of its <a>containing block</a> (if that is <a>definite</a>)
108110
or an infinite size (when it is <a>indefinite</a>).
109111
<a>Available space</a> can alternatively be either a

css-sizing/Overview.bs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,22 @@ Terminology</h2>
9999
<dt><dfn id="indefinite" lt="indefinite|indefinite size">indefinite size</dfn>
100100
<dd>
101101
A size that is not <a>definite</a>.
102-
An <a>indefinite</a> <a>available size</a> is essentially infinite.
102+
<a>Indefinite</a> <a>available space</a> is essentially infinite.
103103

104-
<dt><dfn id="available" local-lt="available" lt="available size|available inline size|available block size|available space">available space</dfn>
104+
<dt><dfn id="available" local-lt="available" lt="available space|available inline space|available block space">available space</dfn>
105105
<dd>
106-
The space into which a box is laid out.
107-
Unless otherwise specified, this is
106+
A size representing the space into which a box is laid out,
107+
as determined by
108+
the rules of the formatting context in which it participates.
109+
The space available to a box is usually
108110
either a measurement of its <a>containing block</a> (if that is <a>definite</a>)
109111
or an infinite size (when it is <a>indefinite</a>).
110112
<a>Available space</a> can alternatively be either a
111113
<a>min-content constraint</a> or
112114
a <a>max-content constraint</a>.
113-
114115
<!--
115116
<p>
116-
The space <a>available</a> to a box is determined by the formatting context in which it participates.
117+
117118
In block, table, and inline formatting contexts [[!CSS21]],
118119
the <a>available space</a> is infinite in the block-axis dimension.
119120
<span class="issue">What, exactly, is the available space in the inline axis??? What about other formatting models?</span>
@@ -146,7 +147,7 @@ Auto Box Sizes</h3>
146147
: <dfn>fill-available inline size</dfn>
147148
: <dfn>fill-available block size</dfn>
148149
:: Roughly, the <a>size</a> a box would take
149-
if it filled its <a>available space</a>
150+
if it filled the <a>available space</a>
150151
in the given axis.
151152
(See [[#extrinsic]].)
152153

@@ -284,7 +285,7 @@ New Keywords for 'width' and 'height'</h3>
284285
<dt><dfn>fit-content(<<length-percentage>>)</dfn>
285286
<dd>
286287
Use the fit-content formula
287-
with the <a>available size</a> replaced by the specified argument,
288+
with the <a>available space</a> replaced by the specified argument,
288289
i.e.
289290
<code>min(<a>max-content size</a>, max(<a>min-content size</a>, <<length-percentage>>))</code>
290291
</dl>

css-step-sizing/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,21 +292,21 @@ Stepping Widths: the 'inline-size-step' property {#width}
292292
Non-negative <<length>>s are valid.
293293

294294
When this property is set to a positive <<length>>
295-
and the <a>available inline size</a> is <a>definite</a>,
296-
the <a>available inline size</a> of the element is rounded <em>down</em>
295+
and the <a>available inline space</a> is <a>definite</a>,
296+
the <a>available inline space</a> of the element is rounded <em>down</em>
297297
to the closest multiple of the specified <<length>>
298298
before it is used.
299299

300300
<div class="note">
301-
Since this property only adjusts <a>available inline size</a>,
301+
Since this property only adjusts <a>available inline space</a>,
302302
it does not guarantee that the <a>inline size</a> of child boxes
303303
are the multiple of the specified <<length>>
304304
if there were other constraints.
305305
</div>
306306

307307
When this property is applied to a multi-column element,
308-
the <a>available inline size</a> of the content box is not rounded but
309-
the <a>available inline size</a> of the <a>column box</a> is rounded.
308+
the <a>available inline space</a> of the content box is not rounded but
309+
the <a>available inline space</a> of the <a>column box</a> is rounded.
310310

311311
<div class="note">
312312
When using this property with CSS layout features such as tables or flexbox,

0 commit comments

Comments
 (0)