Skip to content

Commit eefa7de

Browse files
committed
[css-display-3] Yay, last batch of initial commits. Spec is now ready for public consumption.
--HG-- extra : rebase_source : 096250f819da4190548a54bf6afbd2e0b76d8833
1 parent f19effa commit eefa7de

2 files changed

Lines changed: 208 additions & 62 deletions

File tree

css-display-3/Overview.html

Lines changed: 143 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
<meta content="CSS Display Module Level 3" name=dcterms.title>
1313
<meta content=text name=dcterms.type>
14-
<meta content=2012-10-18 name=dcterms.issued>
14+
<meta content=2012-10-19 name=dcterms.issued>
1515
<meta content="http://dev.w3.org/csswg/cssN-FIXME/" name=dcterms.creator>
1616
<meta content=W3C name=dcterms.publisher>
17-
<meta content="http://www.w3.org/TR/2012/ED-cssN-FIXME-20121018/"
17+
<meta content="http://www.w3.org/TR/2012/ED-cssN-FIXME-20121019/"
1818
name=dcterms.identifier>
1919
<link href="#contents" rel=contents>
2020
<link href="#index" rel=index>
@@ -47,14 +47,14 @@
4747

4848
<h1>CSS Display Module Level 3</h1>
4949

50-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 October
50+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 October
5151
2012</h2>
5252

5353
<dl>
5454
<dt>This version:
5555

5656
<dd><a class=replaceme
57-
href="http://www.w3.org/TR/2012/ED-cssN-FIXME-20121018/">http://www.w3.org/TR/2012/ED-cssN-FIXME-20121018/</a>
57+
href="http://www.w3.org/TR/2012/ED-cssN-FIXME-20121019/">http://www.w3.org/TR/2012/ED-cssN-FIXME-20121019/</a>
5858

5959
<dt>Latest version:
6060

@@ -232,14 +232,17 @@ <h3 id=values><span class=secno>1.2. </span> Values</h3>
232232

233233
<p>In addition to the property-specific values listed in their definitions,
234234
all properties defined in this specification also accept the <a
235-
href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
236-
keyword as their property value. For readability it has not been repeated
237-
explicitly.
235+
href="http://www.w3.org/TR/css3-values/#common-keywords">CSS-wide
236+
keywords</a> as their property value. For readability it has not been
237+
repeated explicitly.
238238

239239
<h2 id=the-display-properties><span class=secno>2. </span> The Display
240240
Properties</h2>
241241

242-
<p> ...
242+
<p> The ‘<a href="#display"><code class=property>display</code></a>
243+
shorthand and its associated family of properties control the layout mode
244+
of elements (how the element determines the sizes and positions of itself
245+
and its descendants), and what boxes they and their descendants generate.
243246

244247
<h3 id=the-display-inside><span class=secno>2.1. </span> Setting the layout
245248
mode: the ‘<a href="#display-inside"><code
@@ -284,31 +287,38 @@ <h3 id=the-display-inside><span class=secno>2.1. </span> Setting the layout
284287
</table>
285288

286289
<dl>
287-
<dt><dfn id="display-inside:block">block</dfn>
288-
289-
<dd> The element lays out its contents using block layout. <a
290-
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>
291-
292290
<dt><dfn id="display-inside:auto">auto</dfn>
293291

294292
<dd> If the element's computed ‘<a href="#display-outside"><code
295293
class=property>display-outside</code></a>’ value is ‘<a
296-
href="#display:inline"><code class=css>inline</code></a>’, then it lays
297-
out its contents using inline layout. <a href="#CSS21"
298-
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> If the element's computed
299-
<a href="#display-outside"><code
300-
class=property>display-outside</code></a>’ value is ‘<code
301-
class=css>table-row-group</code>’, ‘<code
302-
class=css>table-header-group</code>’, ‘<code
303-
class=css>table-footer-group</code>’, ‘<code
304-
class=css>table-row</code>’, ‘<code
305-
class=css>table-column-group</code>’, or ‘<code
306-
class=css>table-column</code>’, this elements acts as normal for its
307-
given ‘<a href="#display-outside"><code
294+
href="#display-outside:inline-level"><code
295+
class=css>inline-level</code></a>’, the element is an <i>inline
296+
element</i>, and lays out its contents using inline layout. <a
297+
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> If the
298+
element's computed ‘<a href="#display-outside"><code
299+
class=property>display-outside</code></a>’ value is ‘<a
300+
href="#display-outside:table-row-group"><code
301+
class=css>table-row-group</code></a>’, ‘<a
302+
href="#display-outside:table-header-group"><code
303+
class=css>table-header-group</code></a>’, ‘<a
304+
href="#display-outside:table-footer-group"><code
305+
class=css>table-footer-group</code></a>’, ‘<a
306+
href="#display-outside:table-row"><code
307+
class=css>table-row</code></a>’, ‘<a
308+
href="#display-outside:table-column-group"><code
309+
class=css>table-column-group</code></a>’, or ‘<a
310+
href="#display-outside:table-column"><code
311+
class=css>table-column</code></a>’, this elements acts as normal for
312+
its given ‘<a href="#display-outside"><code
308313
class=property>display-outside</code></a>’ value. Otherwise, this value
309314
computes to ‘<a href="#display:block"><code
310315
class=css>block</code></a>’.
311316

317+
<dt><dfn id="display-inside:block">block</dfn>
318+
319+
<dd> The element lays out its contents using block layout. <a
320+
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>
321+
312322
<dt><dfn id="display-inside:table">table</dfn>
313323

314324
<dd> The element lays out its contents using table layout. <a
@@ -339,14 +349,14 @@ <h3 id=the-display-outside><span class=secno>2.2. </span> Interacting with
339349
<tr>
340350
<th>Value:
341351

342-
<td>block-level | inline | table-row-group | table-header-group |
352+
<td>block-level | inline-level | table-row-group | table-header-group |
343353
table-footer-group | table-row | table-cell | table-column-group |
344354
table-column | table-caption
345355

346356
<tr>
347357
<th>Initial:
348358

349-
<td>inline
359+
<td>inline-level
350360

351361
<tr>
352362
<th>Applies To:
@@ -370,9 +380,47 @@ <h3 id=the-display-outside><span class=secno>2.2. </span> Interacting with
370380
</table>
371381

372382
<dl>
373-
<dt><dfn id="display-outside:block-level"> </dfn>
383+
<dt><dfn id="display-outside:block-level">block-level</dfn>
384+
385+
<dd> The element is <a
386+
href="#display-outside:block-level"><i>block-level</i></a>, and
387+
participates in a block formatting context. Other formatting contexts,
388+
such as flex formatting contexts, may also work with <a
389+
href="#display-outside:block-level"><i>block-level</i></a> elements. <a
390+
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>
391+
392+
<dt><dfn id="display-outside:inline-level">inline-level</dfn>
393+
394+
<dd> The element is <a
395+
href="#display-outside:inline-level"><i>inline-level</i></a>, and
396+
participates in an inline formatting context. <a href="#CSS21"
397+
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>
398+
399+
<dt><dfn id="display-outside:table-row-group">table-row-group</dfn>, <dfn
400+
id="display-outside:table-header-group">table-header-group</dfn>, <dfn
401+
id="display-outside:table-footer-group">table-footer-group</dfn>, <dfn
402+
id="display-outside:table-row">table-row</dfn>, <dfn
403+
id="display-outside:table-cell">table-cell</dfn>, <dfn
404+
id="display-outside:table-column-group">table-column-group</dfn>, <dfn
405+
id="display-outside:table-column">table-column</dfn>, <dfn
406+
id="display-outside:table-caption">table-caption</dfn>
407+
408+
<dd> The element is an internal table element, and participates in a table
409+
layout context. <a href="#CSS21"
410+
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>
374411
</dl>
375412

413+
<p class=issue> Do we need special bits about some of the interactions with
414+
<a href="#display-inside"><code
415+
class=property>display-inside</code></a>’? For example, how ‘<code
416+
class=css>display:inline-level block;</code>’ works? Or does that fall
417+
out of what exists, and the definitions of Block Layout in 2.1? (...or a
418+
new Block Layout spec, explaining all the 2.1 stuff more sanely?)
419+
420+
<p class=issue> Is <a
421+
href="http://lists.w3.org/Archives/Public/www-style/2012Jul/0450.html">fantasai's
422+
proposal for a run-in model</a> sane enough to include in this spec?
423+
376424
<h3 id=the-display-box><span class=secno>2.3. </span> Controlling box
377425
generation: the ‘<a href="#display-box"><code
378426
class=property>display-box</code></a>’ property</h3>
@@ -550,10 +598,34 @@ <h3 id=the-display><span class=secno>2.5. </span> The ‘<a
550598
handled specially, for legacy reasons. All other single-keyword values,
551599
and all other values in general, are handled as normal for shorthands.
552600

601+
<p class=issue> The general rule for new layout modes seems to be that
602+
they're block-level by default. However, this conflicts with the default
603+
value of ‘<a href="#display-outside"><code
604+
class=property>display-outside</code></a>’, which is ‘<a
605+
href="#display-outside:inline-level"><code
606+
class=css>inline-level</code></a>’. What's the best way to address this?
607+
Simplest answer is to just expand this list of special values as we go
608+
along. Another possibility is to magic up the expansion in a different
609+
way, so that if the value is just a ‘<a href="#display-inside"><code
610+
class=property>display-inside</code></a>’ keyword, ‘<a
611+
href="#display-outside"><code class=property>display-outside</code></a>
612+
defaults to ‘<a href="#display-outside:block-level"><code
613+
class=css>block-level</code></a>’. If the latter is chosen, we could
614+
remove several more of the special expansions below (all the ones that are
615+
identical to a ‘<a href="#display-inside"><code
616+
class=property>display-inside</code></a>’ value).
617+
618+
<p class=note> Several of the "special" expansions below are actually just
619+
what the shorthand would expand to normally. They're included here for
620+
clarity, as they're very familiar from long usage in CSS 2.1, before the
621+
<a href="#display"><code class=property>display</code></a>’ property
622+
became a shorthand.
623+
553624
<dl>
554625
<dt><dfn id="display:inline">inline</dfn>
555626

556-
<dd> Expands identically to ‘<code class=css>inline auto</code>’.
627+
<dd> Expands identically to ‘<code class=css>inline-level
628+
auto</code>’.
557629

558630
<dt><dfn id="display:block">block</dfn>
559631

@@ -567,12 +639,13 @@ <h3 id=the-display><span class=secno>2.5. </span> The ‘<a
567639

568640
<dt><dfn id="display:inline-list-item">inline-list-item</dfn>
569641

570-
<dd> Expands identically to ‘<code class=css>inline block
642+
<dd> Expands identically to ‘<code class=css>inline-level block
571643
list-item</code>’.
572644

573645
<dt><dfn id="display:inline-block">inline-block</dfn>
574646

575-
<dd> Expands identically to ‘<code class=css>inline block</code>’.
647+
<dd> Expands identically to ‘<code class=css>inline-level
648+
block</code>’.
576649

577650
<dt><dfn id="display:table">table</dfn>
578651

@@ -581,7 +654,8 @@ <h3 id=the-display><span class=secno>2.5. </span> The ‘<a
581654

582655
<dt><dfn id="display:inline-table">inline-table</dfn>
583656

584-
<dd> Expands identically to ‘<code class=css>inline table</code>’.
657+
<dd> Expands identically to ‘<code class=css>inline-level
658+
table</code>’.
585659

586660
<dt><dfn id="display:table-caption">table-caption</dfn>
587661

@@ -598,19 +672,22 @@ <h3 id=the-display><span class=secno>2.5. </span> The ‘<a
598672

599673
<dt><dfn id="display:inline-flex">inline-flex</dfn>
600674

601-
<dd> Expands identically to ‘<code class=css>inline flex</code>’.
675+
<dd> Expands identically to ‘<code class=css>inline-level
676+
flex</code>’.
602677

603678
<dt><dfn id="display:grid">grid</dfn>
604679

605680
<dd> Expands identically to ‘<code class=css>block-level grid</code>’.
606681

607682
<dt><dfn id="display:inline-grid">inline-grid</dfn>
608683

609-
<dd> Expands identically to ‘<code class=css>inline grid</code>’.
684+
<dd> Expands identically to ‘<code class=css>inline-level
685+
grid</code>’.
610686

611687
<dt><dfn id="display:none">none</dfn>
612688

613-
<dd> Expands identically to ‘<code class=css>inline auto none</code>’.
689+
<dd> Expands identically to ‘<code class=css>inline-level auto
690+
none</code>’.
614691
</dl>
615692
<!--
616693
@@ -894,9 +971,6 @@ <h2 class=no-num id=index> Index</h2>
894971
<!--begin-index-->
895972

896973
<ul class=indexlist>
897-
<li>, <a href="#display-outside:block-level"
898-
title=""><strong>2.2.</strong></a>
899-
900974
<li>authoring tool, <a href="#authoring-tool"
901975
title="authoring tool"><strong>3.2.</strong></a>
902976

@@ -907,6 +981,9 @@ <h2 class=no-num id=index> Index</h2>
907981
title=block><strong>2.1.</strong></a>, <a href="#display:block"
908982
title=block><strong>2.5.</strong></a>
909983

984+
<li>block-level, <a href="#display-outside:block-level"
985+
title=block-level><strong>2.2.</strong></a>
986+
910987
<li>contents, <a href="#display-box:contents"
911988
title=contents><strong>2.3.</strong></a>
912989

@@ -944,6 +1021,9 @@ <h2 class=no-num id=index> Index</h2>
9441021
<li>inline-grid, <a href="#display:inline-grid"
9451022
title=inline-grid><strong>2.5.</strong></a>
9461023

1024+
<li>inline-level, <a href="#display-outside:inline-level"
1025+
title=inline-level><strong>2.2.</strong></a>
1026+
9471027
<li>inline-list-item, <a href="#display:inline-list-item"
9481028
title=inline-list-item><strong>2.5.</strong></a>
9491029

@@ -973,11 +1053,32 @@ <h2 class=no-num id=index> Index</h2>
9731053
title=table><strong>2.1.</strong></a>, <a href="#display:table"
9741054
title=table><strong>2.5.</strong></a>
9751055

976-
<li>table-caption, <a href="#display:table-caption"
1056+
<li>table-caption, <a href="#display-outside:table-caption"
1057+
title=table-caption><strong>2.2.</strong></a>, <a
1058+
href="#display:table-caption"
9771059
title=table-caption><strong>2.5.</strong></a>
9781060

979-
<li>table-cell, <a href="#display:table-cell"
1061+
<li>table-cell, <a href="#display-outside:table-cell"
1062+
title=table-cell><strong>2.2.</strong></a>, <a href="#display:table-cell"
9801063
title=table-cell><strong>2.5.</strong></a>
1064+
1065+
<li>table-column, <a href="#display-outside:table-column"
1066+
title=table-column><strong>2.2.</strong></a>
1067+
1068+
<li>table-column-group, <a href="#display-outside:table-column-group"
1069+
title=table-column-group><strong>2.2.</strong></a>
1070+
1071+
<li>table-footer-group, <a href="#display-outside:table-footer-group"
1072+
title=table-footer-group><strong>2.2.</strong></a>
1073+
1074+
<li>table-header-group, <a href="#display-outside:table-header-group"
1075+
title=table-header-group><strong>2.2.</strong></a>
1076+
1077+
<li>table-row, <a href="#display-outside:table-row"
1078+
title=table-row><strong>2.2.</strong></a>
1079+
1080+
<li>table-row-group, <a href="#display-outside:table-row-group"
1081+
title=table-row-group><strong>2.2.</strong></a>
9811082
</ul>
9821083
<!--end-index-->
9831084

@@ -1050,11 +1151,11 @@ <h2 class=no-num id=property-index> Property index</h2>
10501151
<tr>
10511152
<th><a class=property href="#display-outside">display-outside</a>
10521153

1053-
<td>block-level | inline | table-row-group | table-header-group |
1154+
<td>block-level | inline-level | table-row-group | table-header-group |
10541155
table-footer-group | table-row | table-cell | table-column-group |
10551156
table-column | table-caption
10561157

1057-
<td>inline
1158+
<td>inline-level
10581159

10591160
<td>all elements
10601161

0 commit comments

Comments
 (0)