Skip to content

Commit afd23a5

Browse files
committed
[css-sizing] Define 'preferred size'.
1 parent c865339 commit afd23a5

2 files changed

Lines changed: 80 additions & 12 deletions

File tree

css-sizing/Overview.html

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<meta content="CSS Intrinsic &amp; Extrinsic Sizing Module Level 3"
1313
name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2013-08-19 name=dcterms.date>
15+
<meta content=2013-08-20 name=dcterms.date>
1616
<meta content="Tab Atkins Jr." name=dcterms.creator>
1717
<meta content="Elika J. Etemad" name=dcterms.creator>
1818
<meta content=W3C name=dcterms.publisher>
@@ -32,11 +32,11 @@
3232

3333
<h1>CSS Intrinsic &amp; Extrinsic Sizing Module Level 3</h1>
3434

35-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 August 2013</h2>
35+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 20 August 2013</h2>
3636

3737
<dl><!--
3838
<dt>This version:
39-
<dd><a href="http://dev.w3.org/csswg/css3-sizing/">http://www.w3.org/TR/2013/ED-css3-sizing-20130819/</a>
39+
<dd><a href="http://dev.w3.org/csswg/css3-sizing/">http://www.w3.org/TR/2013/ED-css3-sizing-20130820/</a>
4040
-->
4141

4242
<dt>Latest version:
@@ -383,15 +383,22 @@ <h2 id=terms><span class=secno>2. </span> Terminology</h2>
383383
<dt><dfn id=fit-content-measure>fit-content measure</dfn>
384384

385385
<dd> If the <a href="#available"><i>available</i></a> measure is finite,
386-
equal to <code>min(<a href="#max-content"><i>max-content</i></a>, max(<a
387-
href="#min-content"><i>min-content</i></a>,
388-
<i>fill-available</i>))</code>. Otherwise, equal to the <a
386+
equal to <code>min(<a href="#preferred-measure"><i>preferred
387+
measure</i></a>, max(<a href="#min-content-measure"><i>min-content
388+
measure</i></a>, <a href="#fill-available-measure"><i>fill-available
389+
measure</i></a>))</code>. Otherwise, equal to the <a
389390
href="#max-content-measure"><i>max-content measure</i></a>.
390391
<p class=note> Note: This is called the <i>shrink-to-fit</i> width in <a
391392
href="http://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
392393
and <a href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm">CSS
393394
Multi-column Layout § 3.4</a>.
394395

396+
<dt><dfn id=preferred-measure>preferred measure</dfn>
397+
398+
<dd> A box’s “ideal” <i>measure</i>. Unless otherwise specified,
399+
this is the <a href="#max-content-measure"><i>max-content
400+
measure</i></a>.
401+
395402
<dt><dfn id=fill-available-extent>fill-available extent</dfn>
396403

397404
<dd> Roughly, the <i>extent</i> a box would take if it filled its <a
@@ -406,16 +413,24 @@ <h2 id=terms><span class=secno>2. </span> Terminology</h2>
406413
<dt><dfn id=min-content-extent>min-content extent</dfn>
407414

408415
<dd> Equivalent to the <a href="#max-content-extent"><i>max-content
409-
extent</i></a>. <span class=issue>Or should this be the minimum between
410-
allowed break points? It might make sense in multi-col contexts to have
411-
min-content and max-content extents be different, even if they are the
412-
same elsewhere.</span>
416+
extent</i></a>.
417+
<p class=issue> Or should this be the minimum between allowed break
418+
points? It might make sense in multi-col contexts to have min-content
419+
and max-content extents be different, even if they are the same
420+
elsewhere.
413421

414422
<dt><dfn id=fit-content-extent>fit-content extent</dfn>
415423

416424
<dd> Analogous to the <a href="#fit-content-measure"><i>fit-content
417425
measure</i></a>.
418426

427+
<dt><dfn id=preferred-extent>preferred extent</dfn>
428+
429+
<dd> Equivalent to the <a href="#max-content-extent"><i>max-content
430+
extent</i></a>.
431+
<p class=issue> Same issue as <a
432+
href="#min-content-extent"><i>min-content extent</i></a>.
433+
419434
<dt><dfn id=max-size-contribution>max-size contribution</dfn>
420435

421436
<dd> The size that a box contributes to its <i>containing
@@ -426,6 +441,13 @@ <h2 id=terms><span class=secno>2. </span> Terminology</h2>
426441
<dd> The size that a box contributes to its <i>containing block</i>’s
427442
<i>min-content size</i>.
428443

444+
<dt><dfn id=preferred-size-contribution>preferred-size contribution</dfn>
445+
446+
<dd> If the box's layout mode has a defined <a
447+
href="#preferred-size-contribution"><i>preferred-size
448+
contribution</i></a>, that. Otherwise, the box's <a
449+
href="#max-size-contribution"><i>max-size contribution</i></a>.
450+
429451
<dt><dfn id=max-size-constraint>max-size constraint</dfn>
430452

431453
<dd> A sizing constraint imposed by the box's <i>containing block</i> that
@@ -437,6 +459,13 @@ <h2 id=terms><span class=secno>2. </span> Terminology</h2>
437459
<dd> A sizing constraint imposed by the box's <i>containing block</i> that
438460
causes it to produce its <a href="#min-size-contribution"><i>min-size
439461
contribution</i></a>.
462+
463+
<dt><dfn id=preferred-size-constraint>preferred-size constraint</dfn>
464+
465+
<dd> A sizing constraint imposed by the box's <i>containing block</i> that
466+
causes it to produce its <a
467+
href="#preferred-size-contribution"><i>preferred-size
468+
contribution</i></a>.
440469
</dl>
441470

442471
<h2 id=size-keywords><span class=secno>3. </span> New Sizing Keywords</h2>
@@ -1302,6 +1331,18 @@ <h2 class=no-num id=index> Index</h2>
13021331
<li>min-size contribution, <a href="#min-size-contribution"
13031332
title="section 2."><strong>2.</strong></a>
13041333

1334+
<li>preferred extent, <a href="#preferred-extent"
1335+
title="section 2."><strong>2.</strong></a>
1336+
1337+
<li>preferred measure, <a href="#preferred-measure"
1338+
title="section 2."><strong>2.</strong></a>
1339+
1340+
<li>preferred-size constraint, <a href="#preferred-size-constraint"
1341+
title="section 2."><strong>2.</strong></a>
1342+
1343+
<li>preferred-size contribution, <a href="#preferred-size-contribution"
1344+
title="section 2."><strong>2.</strong></a>
1345+
13051346
<li>renderer, <a href="#renderer"
13061347
title="section 6.2."><strong>6.2.</strong></a>
13071348

css-sizing/Overview.src.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,18 @@ <h2 id="terms">
201201
<dt><dfn>fit-content measure</dfn>
202202
<dd>
203203
If the <i>available</i> measure is finite,
204-
equal to <code>min(<i>max-content</i>, max(<i>min-content</i>, <i>fill-available</i>))</code>.
204+
equal to <code>min(<i>preferred measure</i>, max(<i>min-content measure</i>, <i>fill-available measure</i>))</code>.
205205
Otherwise, equal to the <i>max-content measure</i>.
206206

207207
<p class='note'>
208208
Note: This is called the <i>shrink-to-fit</i> width in <a href="http://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
209209
and <a href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm">CSS Multi-column Layout § 3.4</a>.
210210

211+
<dt><dfn>preferred measure</dfn>
212+
<dd>
213+
A box’s “ideal” <i>measure</i>.
214+
Unless otherwise specified, this is the <i>max-content measure</i>.
215+
211216
<dt><dfn>fill-available extent</dfn>
212217
<dd>
213218
Roughly, the <i>extent</i> a box would take
@@ -221,12 +226,24 @@ <h2 id="terms">
221226
<dt><dfn>min-content extent</dfn>
222227
<dd>
223228
Equivalent to the <i>max-content extent</i>.
224-
<span class="issue">Or should this be the minimum between allowed break points? It might make sense in multi-col contexts to have min-content and max-content extents be different, even if they are the same elsewhere.</span>
229+
230+
<p class="issue">
231+
Or should this be the minimum between allowed break points?
232+
It might make sense in multi-col contexts
233+
to have min-content and max-content extents be different,
234+
even if they are the same elsewhere.
225235

226236
<dt><dfn>fit-content extent</dfn>
227237
<dd>
228238
Analogous to the <i>fit-content measure</i>.
229239

240+
<dt><dfn>preferred extent</dfn>
241+
<dd>
242+
Equivalent to the <i>max-content extent</i>.
243+
244+
<p class='issue'>
245+
Same issue as <i>min-content extent</i>.
246+
230247
<dt><dfn>max-size contribution</dfn>
231248
<dd>
232249
The size that a box contributes to its <i>containing block</i>'s <i>max-content size</i>.
@@ -235,6 +252,11 @@ <h2 id="terms">
235252
<dd>
236253
The size that a box contributes to its <i>containing block</i>'s <i>min-content size</i>.
237254

255+
<dt><dfn>preferred-size contribution</dfn>
256+
<dd>
257+
If the box's layout mode has a defined <i>preferred-size contribution</i>, that.
258+
Otherwise, the box's <i>max-size contribution</i>.
259+
238260
<dt><dfn>max-size constraint</dfn>
239261
<dd>
240262
A sizing constraint imposed by the box's <i>containing block</i>
@@ -244,6 +266,11 @@ <h2 id="terms">
244266
<dd>
245267
A sizing constraint imposed by the box's <i>containing block</i>
246268
that causes it to produce its <i>min-size contribution</i>.
269+
270+
<dt><dfn>preferred-size constraint</dfn>
271+
<dd>
272+
A sizing constraint imposed by the box's <i>containing block</i>
273+
that causes it to produce its <i>preferred-size contribution</i>.
247274
</dl>
248275

249276
<h2 id='size-keywords'>

0 commit comments

Comments
 (0)