-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathOverview.html
More file actions
907 lines (760 loc) · 76.6 KB
/
Overview.html
File metadata and controls
907 lines (760 loc) · 76.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
<!DOCTYPE html><html lang=en><head>
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
<title>CSS Display Module Level 3</title>
<link href=../default.css rel=stylesheet type=text/css>
<link href=../csslogo.ico rel="shortcut icon" type=image/x-icon>
<style>
body {
background: url("https://www.w3.org/StyleSheets/TR/logo-ED") top left no-repeat white;
background-attachment: fixed;
color: black;
font-family: sans-serif;
margin: 0 auto;
max-width: 50em;
padding: 2em 1em 2em 70px;
}
:link { color: #00C; background: transparent }
:visited { color: #609; background: transparent }
a[href]:active { color: #C00; background: transparent }
a[href]:hover { background: #ffa }
a[href] img { border-style: none }
h1, h2, h3, h4, h5, h6 { text-align: left }
h1, h2, h3 { color: #005A9C; }
h1 { font: 170% sans-serif }
h2 { font: 140% sans-serif }
h3 { font: 120% sans-serif }
h4 { font: bold 100% sans-serif }
h5 { font: italic 100% sans-serif }
h6 { font: small-caps 100% sans-serif }
.hide { display: none }
div.head { margin-bottom: 1em }
div.head h1 { margin-top: 2em; clear: both }
div.head table { margin-left: 2em; margin-top: 2em }
p.copyright { font-size: small }
p.copyright small { font-size: small }
pre { margin-left: 2em }
dt { font-weight: bold }
ul.toc, ol.toc {
list-style: none;
}
</style>
</head>
<body class=h-entry>
<div class=head>
<p data-fill-with=logo><a class=logo href=http://www.w3.org/>
<img alt=W3C height=48 src=https://www.w3.org/Icons/w3c_home width=72>
</a>
</p>
<h1 class="p-name no-ref" id=title>CSS Display Module Level 3</h1>
<h2 class="no-num no-toc no-ref heading settled" id=subtitle><span class=content>Editor’s Draft,
<span class=dt-updated><span class=value-title title=20140815>15 August 2014</span></span></span></h2>
<div data-fill-with=spec-metadata><dl>
<dt>This version:
<dd><a class=u-url href=http://dev.w3.org/csswg/css-display>http://dev.w3.org/csswg/css-display</a>
<dt>Feedback:
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-display%5D%20feedback">www-style@w3.org</a>
with subject line
“<kbd>[css-display] <var>… message topic …</var></kbd>”(<a href=http://lists.w3.org/Archives/Public/www-style/ rel=discussion>archives</a>)
<dt>Editors:
<dd><dd class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://xanthir.com/contact/>Tab Atkins Jr.</a> (<span class="p-org org">Google</span>)
<dd><dd class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://fantasai.inkedblade.net/contact>fantasai</a> (<span class="p-org org">Invited Expert</span>)
</dl>
</div>
<div data-fill-with=warning></div>
<p class=copyright data-fill-with=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a> © 2014 <a href=http://www.w3.org/><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href=http://www.csail.mit.edu/><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href=http://www.ercim.eu/><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href=http://www.keio.ac.jp/>Keio</a>, <a href=http://ev.buaa.edu.cn/>Beihang</a>), All Rights Reserved. W3C <a href=http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer>liability</a>, <a href=http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks>trademark</a> and <a href=http://www.w3.org/Consortium/Legal/copyright-documents>document use</a> rules apply.
</p>
<hr title="Separator for header">
</div>
<h2 class="no-num no-toc no-ref heading settled" id=abstract><span class=content>Abstract</span></h2>
<div class=p-summary data-fill-with=abstract><p>This module contains the features of CSS relating to the <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> property and other box-generation details.</p>
<a href=http://www.w3.org/TR/CSS/>CSS</a> is a language for describing the rendering of structured documents
(such as HTML and XML)
on screen, on paper, in speech, etc.</div>
<h2 class="no-num no-toc no-ref heading settled" id=status><span class=content>Status of this document</span></h2>
<div data-fill-with=status><p>
This is a public copy of the editors’ draft.
It is provided for discussion only and may change at any moment.
Its publication here does not imply endorsement of its contents by W3C.
Don’t cite this document other than as work in progress.
<p>
The (<a href=http://lists.w3.org/Archives/Public/www-style/>archived</a>) public mailing list
<a href="mailto:www-style@w3.org?Subject=%5Bcss-display%5D%20PUT%20SUBJECT%20HERE">www-style@w3.org</a>
(see <a href=http://www.w3.org/Mail/Request>instructions</a>)
is preferred for discussion of this specification.
When sending e-mail,
please put the text “css-display” in the subject,
preferably like this:
“[css-display] <em>…summary of comment…</em>”
<p>
This document was produced by the <a href=http://www.w3.org/Style/CSS/members>CSS Working Group</a>
(part of the <a href=http://www.w3.org/Style/>Style Activity</a>).
<p>
This document was produced by a group operating under
the <a href=http://www.w3.org/Consortium/Patent-Policy-20040205/>5 February 2004 W3C Patent Policy</a>.
W3C maintains a <a href=http://www.w3.org/2004/01/pp-impl/32061/status rel=disclosure>public list of any patent disclosures</a>
made in connection with the deliverables of the group;
that page also includes instructions for disclosing a patent.
An individual who has actual knowledge of a patent which the individual believes contains <a href=http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential>Essential Claim(s)</a>
must disclose the information in accordance with <a href=http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure>section 6 of the W3C Patent Policy</a>.</div>
<div data-fill-with=at-risk></div>
<h2 class="no-num no-toc no-ref heading settled" id=contents><span class=content>Table of Contents</span></h2>
<div data-fill-with=table-of-contents><ul class=toc>
<li><a href=#intro><span class=secno>1</span> Introduction</a>
<ul class=toc>
<li><a href=#placement><span class=secno>1.1</span> Module interactions</a>
<li><a href=#values><span class=secno>1.2</span> Values</a></ul>
<li><a href=#the-display-properties><span class=secno>2</span> Controlling Layout Modes</a>
<ul class=toc>
<li><a href=#the-display-inside><span class=secno>2.1</span> Telling Contents How to Lay Out: the <span class=property data-link-type=propdesc title=display-inside>display-inside</span> property</a>
<li><a href=#the-display-outside><span class=secno>2.2</span> Interacting with Ancestors and Siblings: the <span class=property data-link-type=propdesc title=display-outside>display-outside</span> property</a>
<li><a href=#display-list><span class=secno>2.3</span> Creating List Markers: the <span class=property data-link-type=propdesc title=display-list>display-list</span> property</a>
<li><a href=#the-display><span class=secno>2.4</span> The <span class=property data-link-type=propdesc title=display>display</span> shorthand property</a>
<li><a href=#transformations><span class=secno>2.5</span> Automatic Box Type Transformations</a></ul>
<li><a href=#box-suppress><span class=secno>3</span> Controlling box generation: the <span class=property data-link-type=propdesc title=box-suppress>box-suppress</span> property</a>
<li><a href=#run-in><span class=secno>4</span> Run-In Layout</a>
<li><a href=#glossary><span class=secno>5</span> Glossary</a>
<li><a href=#acknowledgments><span class=secno></span> Acknowledgments</a>
<li><a href=#conformance><span class=secno></span> Conformance</a>
<ul class=toc>
<li><a href=#conventions><span class=secno></span> Document conventions</a>
<li><a href=#conformance-classes><span class=secno></span> Conformance classes</a>
<li><a href=#partial><span class=secno></span> Partial implementations</a>
<li><a href=#experimental><span class=secno></span> Experimental implementations</a>
<li><a href=#testing><span class=secno></span> Non-experimental implementations</a></ul>
<li><a href=#references><span class=secno></span> References</a>
<ul class=toc>
<li><a href=#normative><span class=secno></span> Normative References</a>
<li><a href=#informative><span class=secno></span> Informative References</a></ul>
<li><a href=#index><span class=secno></span> Index</a>
<li><a href=#property-index><span class=secno></span> Property index</a>
<li><a href=#issues-index><span class=secno></span> Issues Index</a></ul></div>
<h2 class="heading settled" data-level=1 id=intro><span class=secno>1 </span><span class=content>
Introduction</span><a class=self-link href=#intro></a></h2>
<p><em>This section is not normative.</em>
<p>The <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> property, introduced in CSS 2.1,
defines what kind of boxes an element generates
(and whether it generates boxes at all),
and how it lays out its contents.</p>
<p>These concepts are actually rather independent,
though they’re conflated by the <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> property.
This causes some pain when a property value intended to affect one aspect
(such as setting an element to <span class=css>display:none</span> to suppress box generation)
affects another aspect
(such as losing the memory of what it was <em>before</em> <span class=css>display:none</span>,
so that it can be set back to that value later).</p>
<p>This specification subsumes the CSS 2.1 definition of the <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> property,
and redefines it to be a shorthand property for a small family of longhands,
each controlling an independent aspect of an element’s "display".</p>
<h3 class="heading settled" data-level=1.1 id=placement><span class=secno>1.1 </span><span class=content>
Module interactions</span><a class=self-link href=#placement></a></h3>
<p>This specification transforms the <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> property into a shorthand property,
and defines several longhand properties that it expands into or effects.</p>
<p>This module replaces and extends the definition of the <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> property defined in <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a> section 9.2.4.</p>
<p>None of the properties in this module apply to the <code>::first-line</code> or <code>::first-letter</code> pseudo-elements.</p>
<h3 class="heading settled" data-level=1.2 id=values><span class=secno>1.2 </span><span class=content>
Values</span><a class=self-link href=#values></a></h3>
<p>This specification follows the
<a href=http://www.w3.org/TR/CSS21/about.html#property-defs>CSS property
definition conventions</a> from <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>. Value types not defined in
this specification are defined in CSS Level 2 Revision 1 <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>.
Other CSS modules may expand the definitions of these value types.</p>
<p>In addition to the property-specific values listed in their definitions,
all properties defined in this specification also accept the
<a href=http://www.w3.org/TR/css3-values/#common-keywords>CSS-wide keywords</a>
as their property value. For readability it has not been repeated explicitly.</p>
<h2 class="heading settled" data-level=2 id=the-display-properties><span class=secno>2 </span><span class=content>
Controlling Layout Modes</span><a class=self-link href=#the-display-properties></a></h2>
<p>The <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> shorthand and its associated family of properties control the layout mode of elements
(how the element determines the sizes and positions of itself and its descendants),
and what boxes they and their descendants generate.</p>
<h3 class="heading settled" data-level=2.1 id=the-display-inside><span class=secno>2.1 </span><span class=content>
Telling Contents How to Lay Out: the <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a> property</span><a class=self-link href=#the-display-inside></a></h3>
<table class="definition propdef"><tr><th>Name:<td><dfn class=css data-dfn-type=property data-export="" id=propdef-display-inside>display-inside<a class=self-link href=#propdef-display-inside></a></dfn><tr><th>Value:<td class=prod>auto <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> block <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> flex <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> grid <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> ruby<tr><th>Initial:<td>auto<tr><th>Applies to:<td>all elements<tr><th>Inherited:<td>no<tr><th>Media:<td>all<tr><th>Computed value:<td>a keyword<tr><th>Percentages:<td>n/a</table>
<p>The <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a> property specifies the <dfn data-dfn-type=dfn data-export="" id=inner-display-type>inner display type<a class=self-link href=#inner-display-type></a></dfn>
of the box generated by the element,
dictating how its contents lay out
inside the box.</p>
<dl data-dfn-for=display-inside data-dfn-type=value>
<dt><dfn class=css data-dfn-for=display-inside data-dfn-type=value data-export="" id=valdef-display-inside-auto>auto<a class=self-link href=#valdef-display-inside-auto></a></dfn>
<dd>
If the element’s computed <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> value is <a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>,
the element is an inline element,
and lays out its contents using inline layout. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
If the element’s computed <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> value is an <a data-link-type=dfn href=#layout-specific-internal-types title="layout-specific internal type">layout-specific internal type</a>,
this elements acts as normal for its given <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> value.
Otherwise, this value computes to <a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>.
<dt><dfn class=css data-dfn-for=display-inside data-dfn-type=value data-export="" id=valdef-display-inside-block>block<a class=self-link href=#valdef-display-inside-block></a></dfn>
<dd>
The element lays out its contents using block layout. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
<dt><dfn class=css data-dfn-for=display-inside data-dfn-type=value data-export="" id=valdef-display-inside-table>table<a class=self-link href=#valdef-display-inside-table></a></dfn>
<dd>
The element lays out its contents using table layout. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
<dt><dfn class=css data-dfn-for=display-inside data-dfn-type=value data-export="" id=valdef-display-inside-flex>flex<a class=self-link href=#valdef-display-inside-flex></a></dfn>
<dd>
The element lays out its contents using flex layout. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-flexbox title=biblio-CSS3-FLEXBOX>[CSS3-FLEXBOX]</a>
<dt><dfn class=css data-dfn-for=display-inside data-dfn-type=value data-export="" id=valdef-display-inside-grid>grid<a class=self-link href=#valdef-display-inside-grid></a></dfn>
<dd>
The element lays out its contents using grid layout. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-grid-layout title=biblio-CSS3-GRID-LAYOUT>[CSS3-GRID-LAYOUT]</a>
<dt><dfn class=css data-dfn-for=display-inside data-dfn-type=value data-export="" id=valdef-display-inside-ruby>ruby<a class=self-link href=#valdef-display-inside-ruby></a></dfn>
<dd>
The element lays out its contents using ruby layout. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3ruby title=biblio-CSS3RUBY>[CSS3RUBY]</a>
</dl>
<h3 class="heading settled" data-level=2.2 id=the-display-outside><span class=secno>2.2 </span><span class=content>
Interacting with Ancestors and Siblings: the <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> property</span><a class=self-link href=#the-display-outside></a></h3>
<table class="definition propdef"><tr><th>Name:<td><dfn class=css data-dfn-type=property data-export="" id=propdef-display-outside>display-outside<a class=self-link href=#propdef-display-outside></a></dfn><tr><th>Value:<td class=prod>block-level <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> inline-level <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> run-in <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> contents <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> none <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-row-group <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-header-group <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-footer-group <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-row <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-cell <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-column-group <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-column <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> table-caption <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> ruby-base <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> ruby-text <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> ruby-base-container <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> ruby-text-container<tr><th>Initial:<td>inline-level<tr><th>Applies to:<td>all elements<tr><th>Inherited:<td>no<tr><th>Media:<td>all<tr><th>Computed value:<td>as specified<tr><th>Percentages:<td>n/a</table>
<p>The <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> property specifies the <dfn data-dfn-type=dfn data-export="" id=outer-display-type>outer display type<a class=self-link href=#outer-display-type></a></dfn>
of the box generated by the element,
dictating how the element participates in its parent formatting context.</p>
<dl data-dfn-for=display-outside data-dfn-type=value>
<dt><dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-block-level>block-level<a class=self-link href=#valdef-display-outside-block-level></a></dfn>
<dd>
The element generates a <dfn data-dfn-type=dfn data-noexport="" id=block-level-box>block-level box<a class=self-link href=#block-level-box></a></dfn>,
and participates in a block formatting context.
Other formatting contexts,
such as flex formatting contexts,
may also work with block-level elements. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
<dt><dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-inline-level>inline-level<a class=self-link href=#valdef-display-outside-inline-level></a></dfn>
<dd>
The element generates an <dfn data-dfn-type=dfn data-noexport="" id=inline-level-box>inline-level box<a class=self-link href=#inline-level-box></a></dfn>,
and participates in an inline formatting context. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
<dt><dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-run-in>run-in<a class=self-link href=#valdef-display-outside-run-in></a></dfn>
<dd>
The element generates a <a data-link-type=dfn href=#run-in-box title="run-in box">run-in box</a>.
Run-in elements act like inlines or blocks,
depending on the surrounding elements.
See <a data-section="" href=#run-in>§4
Run-In Layout</a> for details.
<dt><dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-contents>contents<a class=self-link href=#valdef-display-outside-contents></a></dfn>
<dd>
The element itself does not generate any boxes,
but its children and pseudo-elements still generate boxes as normal.
For the purposes of box generation and layout,
the element must be treated as if it had been replaced with its children and pseudo-elements in the document tree.
<p class=issue id=issue-1cacf007><a class=self-link href=#issue-1cacf007></a><a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-contents title=contents>contents</a> currently only has an effect on box generation and layout.
Other things that care about the document tree are unaffected, like counter scopes.
Is this what we want?</p>
<dt><dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-none>none<a class=self-link href=#valdef-display-outside-none></a></dfn>
<dd>
The element generates no boxes,
and does not participate in any formatting context.
<p class=note>Note: This value exists for legacy reasons,
and interacts with the separate <a class=property data-link-type=propdesc href=#propdef-box-suppress title=box-suppress>box-suppress</a> property.</p>
<strong class=advisement>It is recommended that <a class=property data-link-type=propdesc href=#propdef-box-suppress title=box-suppress>box-suppress</a> be used instead of <a class=css data-link-type=propdesc href=#propdef-display title=display>display: none</a>,
so that the element’s display type is automatically preserved
for when it’s no longer suppressed.</strong>
<dt><dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-row-group>table-row-group<a class=self-link href=#valdef-display-outside-table-row-group></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-header-group>table-header-group<a class=self-link href=#valdef-display-outside-table-header-group></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-footer-group>table-footer-group<a class=self-link href=#valdef-display-outside-table-footer-group></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-row>table-row<a class=self-link href=#valdef-display-outside-table-row></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-cell>table-cell<a class=self-link href=#valdef-display-outside-table-cell></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-column-group>table-column-group<a class=self-link href=#valdef-display-outside-table-column-group></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-column>table-column<a class=self-link href=#valdef-display-outside-table-column></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-table-caption>table-caption<a class=self-link href=#valdef-display-outside-table-caption></a></dfn>
<dd>
The element is an <dfn data-dfn-type=dfn data-noexport="" id=internal-table-element>internal table element<a class=self-link href=#internal-table-element></a></dfn>,
and participates in a table layout context. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
<p><a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-table-cell title=table-cell>table-cell</a> and <a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-table-caption title=table-caption>table-caption</a> are <a data-link-type=dfn href=#layout-specific-leaf-types title="layout-specific leaf types">layout-specific leaf types</a>;
the rest are <a data-link-type=dfn href=#layout-specific-internal-types title="layout-specific internal types">layout-specific internal types</a>.</p>
<dt><dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-ruby-base>ruby-base<a class=self-link href=#valdef-display-outside-ruby-base></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-ruby-text>ruby-text<a class=self-link href=#valdef-display-outside-ruby-text></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-ruby-base-container>ruby-base-container<a class=self-link href=#valdef-display-outside-ruby-base-container></a></dfn>, <dfn class=css data-dfn-for=display-outside data-dfn-type=value data-export="" id=valdef-display-outside-ruby-text-container>ruby-text-container<a class=self-link href=#valdef-display-outside-ruby-text-container></a></dfn>
<dd>
The element is an <dfn data-dfn-type=dfn data-noexport="" id=internal-ruby-element>internal ruby element<a class=self-link href=#internal-ruby-element></a></dfn>,
and participates in a ruby layout context. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3ruby title=biblio-CSS3RUBY>[CSS3RUBY]</a>
<p><a class=css data-link-type=maybe href=#valdef-display-outside-ruby-base title=ruby-base>ruby-base</a> and <a class=css data-link-type=maybe href=#valdef-display-outside-ruby-text title=ruby-text>ruby-text</a> are <a data-link-type=dfn href=#layout-specific-leaf-types title="layout-specific leaf types">layout-specific leaf types</a>;
<a class=css data-link-type=maybe href=#valdef-display-outside-ruby-base-container title=ruby-base-container>ruby-base-container</a> and <a class=css data-link-type=maybe href=#valdef-display-outside-ruby-text-container title=ruby-text-container>ruby-text-container</a> are <a data-link-type=dfn href=#layout-specific-internal-types title="layout-specific internal types">layout-specific internal types</a>.</p>
</dl>
<p>Some values of <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> are specialized for particular formatting contexts,
and don’t have meaning outside of those specific contexts:</p>
<dl>
<dt><dfn data-dfn-type=dfn data-noexport="" id=layout-specific-internal-types>layout-specific internal types<a class=self-link href=#layout-specific-internal-types></a></dfn>
<dd>
These display types require their parent and children to be of particular display types.
For example, a <a class=css data-link-type=maybe href=#valdef-display-outside-table-row title=table-row>table-row</a> box requires its parent to be a <a data-link-type=dfn title="table row group box">table row group box</a>
and its children to be <a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-table-cell title=table-cell>table-cell</a> boxes.
<dt><dfn data-dfn-type=dfn data-noexport="" id=layout-specific-leaf-types>layout-specific leaf types<a class=self-link href=#layout-specific-leaf-types></a></dfn>
<dd>
These display types require their parent to be of a particular display type,
but can accept any <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a> value.
For example, a <a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-table-caption title=table-caption>table-caption</a> box must have a <a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-table title=table>table</a> parent,
but can establish any kind of formatting context for its children.
</dl>
<p>Boxes with layout-specific types generate wrapper boxes around themselves
when placed in an incompatible parent,
as defined by their respective specifications.</p>
<h3 class="heading settled" data-level=2.3 id=display-list><span class=secno>2.3 </span><span class=content>
Creating List Markers: the <a class=property data-link-type=propdesc href=#propdef-display-list title=display-list>display-list</a> property</span><a class=self-link href=#display-list></a></h3>
<table class="definition propdef"><tr><th>Name:<td><dfn class=css data-dfn-type=property data-export="" id=propdef-display-list>display-list<a class=self-link href=#propdef-display-list></a></dfn><tr><th>Value:<td class=prod>none <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> list-item<tr><th>Initial:<td>none<tr><th>Applies to:<td>all elements<tr><th>Inherited:<td>no<tr><th>Media:<td>all<tr><th>Computed value:<td>as specified<tr><th>Percentages:<td>n/a</table>
<dl data-dfn-for=display-list data-dfn-type=value>
<dt><dfn class=css data-dfn-for=display-list data-dfn-type=value data-export="" id=valdef-display-list-list-item>list-item<a class=self-link href=#valdef-display-list-list-item></a></dfn>
<dd>
The element generates a <code>::marker</code> pseudo-element
and is considered a <a data-link-type=dfn href=http://dev.w3.org/csswg/css-lists-3/#list-item title="list item">list item</a>.
</dl>
<h3 class="heading settled" data-level=2.4 id=the-display><span class=secno>2.4 </span><span class=content>
The <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> shorthand property</span><a class=self-link href=#the-display></a></h3>
<table class="definition propdef"><tr><th>Name:<td><dfn class=css data-dfn-type=property data-export="" id=propdef-display>display<a class=self-link href=#propdef-display></a></dfn><tr><th>Value:<td class=prod>[ <a class=production data-link-type=propdesc href=#propdef-display-inside title=display-inside><‘display-inside’></a> <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-any title=||>||</a> <a class=production data-link-type=propdesc href=#propdef-display-outside title=display-outside><‘display-outside’></a> <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-any title=||>||</a> <a class=production data-link-type=propdesc href=#propdef-display-list title=display-list><‘display-list’></a> ] <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> inline <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> inline-list-item <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> inline-table <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> inline-flex <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> inline-grid<tr><th>Initial:<td>see individual properties<tr><th>Applies to:<td>see individual properties<tr><th>Inherited:<td>see individual properties<tr><th>Media:<td>see individual properties<tr><th>Computed value:<td>see individual properties<tr><th>Animatable:<td>see individual properties</table>
<p>The <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> <a data-link-type=dfn href=http://dev.w3.org/csswg/css-cascade-3/#shorthand-property title="shorthand property">shorthand property</a> sets all the display type properties in one declaration:
<a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a>, <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a>, and <a class=property data-link-type=propdesc href=#propdef-display-list title=display-list>display-list</a>.
If only one keyword is specified
or only one keyword is specified together with <a class=css data-link-for=display-list data-link-type=maybe href=#valdef-display-list-list-item title=list-item>list-item</a>,
the shorthand expands as specified below:</p>
<table class=data data-dfn-for=display data-dfn-type=value>
<thead>
<tr>
<th><a class=property data-link-type=propdesc href=#propdef-display title=display>display</a>
<th><a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a>
<th><a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a>
<tbody>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-inline>inline<a class=self-link href=#valdef-display-inline></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>
<td><a class=css data-link-type=maybe href=#valdef-display-inside-auto title=auto>auto</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-block>block<a class=self-link href=#valdef-display-block></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-block-level title=block-level>block-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-inline-block>inline-block<a class=self-link href=#valdef-display-inline-block></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-list-item>list-item<a class=self-link href=#valdef-display-list-item></a></dfn> <a href=#list-item-note>*</a>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-block-level title=block-level>block-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-inline-list-item>inline-list-item<a class=self-link href=#valdef-display-inline-list-item></a></dfn> <a href=#list-item-note>*</a>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>
<td><a class=css data-link-type=maybe href=#valdef-display-inside-auto title=auto>auto</a>
<tbody>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-table>table<a class=self-link href=#valdef-display-table></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-block-level title=block-level>block-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-table title=table>table</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-inline-table>inline-table<a class=self-link href=#valdef-display-inline-table></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-table title=table>table</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-table-caption>table-caption<a class=self-link href=#valdef-display-table-caption></a></dfn>
<td><a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-table-caption title=table-caption>table-caption</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-table-cell>table-cell<a class=self-link href=#valdef-display-table-cell></a></dfn>
<td><a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-table-cell title=table-cell>table-cell</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>
<tbody>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-flex>flex<a class=self-link href=#valdef-display-flex></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-block-level title=block-level>block-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-flex title=flex>flex</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-inline-flex>inline-flex<a class=self-link href=#valdef-display-inline-flex></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-flex title=flex>flex</a>
<tbody>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-grid>grid<a class=self-link href=#valdef-display-grid></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-block-level title=block-level>block-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-grid title=grid>grid</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-inline-grid>inline-grid<a class=self-link href=#valdef-display-inline-grid></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-grid title=grid>grid</a>
<tbody>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-ruby>ruby<a class=self-link href=#valdef-display-ruby></a></dfn>
<td><a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-ruby title=ruby>ruby</a>
<tbody>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-none>none<a class=self-link href=#valdef-display-none></a></dfn>
<td><a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-none title=none>none</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>
<tr>
<th><dfn class=css data-dfn-for=display data-dfn-type=value data-export="" id=valdef-display-contents>contents<a class=self-link href=#valdef-display-contents></a></dfn>
<td><a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-contents title=contents>contents</a>
<td><a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>
<tbody>
<tr>
<th><var>all other <a class=production data-link-type=propdesc href=#propdef-display-outside title=display-outside><‘display-outside’></a></var>
<td><a class=production data-link-type=propdesc href=#propdef-display-outside title=display-outside><‘display-outside’></a>
<td><a class=css data-link-type=maybe href=#valdef-display-inside-auto title=auto>auto</a>
</table>
<p><span id=list-item-note>* For <a class=css data-link-for=display data-link-type=maybe href=#valdef-display-list-item title=list-item>list-item</a> and <a class=css data-link-for=display data-link-type=maybe href=#valdef-display-inline-list-item title=inline-list-item>inline-list-item</a>, additionally set <a class=property data-link-type=propdesc href=#propdef-display-list title=display-list>display-list</a> to <a class=css data-link-for=display-list data-link-type=maybe href=#valdef-display-list-list-item title=list-item>list-item</a>.</span></p>
<h3 class="heading settled" data-level=2.5 id=transformations><span class=secno>2.5 </span><span class=content>
Automatic Box Type Transformations</span><a class=self-link href=#transformations></a></h3>
<p>Some layout effects require <dfn data-dfn-type=dfn data-noexport="" id=blockify title=blockify|blockification>blockification<a class=self-link href=#blockify></a></dfn>
or <dfn data-dfn-type=dfn data-noexport="" id=inlinify title=inlinify|inlinification>inlinification<a class=self-link href=#inlinify></a></dfn> of the box type,
causing the box’s <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> property, if it is not <a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-none title=none>none</a> or <a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-contents title=contents>contents</a>,
to compute to <a class=css data-link-type=maybe href=#valdef-display-outside-block-level title=block-level>block-level</a> or <a class=css data-link-type=maybe href=#valdef-display-outside-inline-level title=inline-level>inline-level</a> (respectively).</p>
<div class=example>
Some examples of this include:
<ul>
<li>Absolute positioning or floating an element <a data-link-type=dfn href=#blockify title=blockifies>blockifies</a> the box’s display type. <a data-biblio-type=informative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
<li>Containment in a <a data-link-spec=css-ruby data-link-type=dfn href=http://dev.w3.org/csswg/css-ruby-1/#ruby-container-box title="ruby container">ruby container</a> <a data-link-type=dfn href=#inlinify title=inlinifies>inlinifies</a> the box’s display type, as described in <a data-biblio-type=informative data-link-type=biblio href=#biblio-css3ruby title=biblio-CSS3RUBY>[CSS3RUBY]</a>.
<li>A parent with a <a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-grid title=grid>grid</a> or <a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-flex title=flex>flex</a> <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a> value <a data-link-type=dfn href=#blockify title=blockifies>blockifies</a> the box’s display type. <a data-biblio-type=informative data-link-type=biblio href=#biblio-css3-grid-layout title=biblio-CSS3-GRID-LAYOUT>[CSS3-GRID-LAYOUT]</a> <a data-biblio-type=informative data-link-type=biblio href=#biblio-css3-flexbox title=biblio-CSS3-FLEXBOX>[CSS3-FLEXBOX]</a>
</ul>
</div>
<p>When a box is <a data-link-type=dfn href=#inlinify title=inlinified>inlinified</a>,
it recursively <a data-link-type=dfn href=#inlinify title=inlinifies>inlinifies</a> all of its in-flow children
unless it itself establishes a new formatting context,
so that no block-level descendants
break up the inline formatting context in which it participates.</p>
<p>The root element’s display type is always <a data-link-type=dfn href=#blockify title=blockified>blockified</a>.
Additionally, a <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> of <a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-contents title=contents>contents</a> computes to <a class=css data-link-type=maybe href=#valdef-display-outside-block-level title=block-level>block-level</a> on the root element.</p>
<h2 class="heading settled" data-level=3 id=box-suppress><span class=secno>3 </span><span class=content>
Controlling box generation: the <a class=property data-link-type=propdesc href=#propdef-box-suppress title=box-suppress>box-suppress</a> property</span><a class=self-link href=#box-suppress></a></h2>
<table class="definition propdef"><tr><th>Name:<td><dfn class=css data-dfn-type=property data-export="" id=propdef-box-suppress>box-suppress<a class=self-link href=#propdef-box-suppress></a></dfn><tr><th>Value:<td class=prod>show <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> discard <a class=prod-punc data-link-type=grammar href=http://dev.w3.org/csswg/css-values-3/#comb-one title=|>|</a> hide<tr><th>Initial:<td>normal<tr><th>Applies to:<td>all elements<tr><th>Inherited:<td>no<tr><th>Media:<td>all<tr><th>Computed value:<td>see prose<tr><th>Percentages:<td>n/a</table>
<p>If the computed value of <a class=property data-link-type=propdesc href=#propdef-display-outside title=display-outside>display-outside</a> is <a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-none title=none>none</a>,
the computed value of <a class=property data-link-type=propdesc href=#propdef-box-suppress title=box-suppress>box-suppress</a> is <a class=css data-link-type=maybe href=#valdef-box-suppress-discard title=discard>discard</a>.
Otherwise, the computed value is the specified value.</p>
<dl data-dfn-for=box-suppress data-dfn-type=value>
<dt><dfn class=css data-dfn-for=box-suppress data-dfn-type=value data-export="" id=valdef-box-suppress-show>show<a class=self-link href=#valdef-box-suppress-show></a></dfn>
<dd>
The element generates boxes as normal,
per its <a class=property data-link-type=propdesc title=display-*>display-*</a> properties.
<dt><dfn class=css data-dfn-for=box-suppress data-dfn-type=value data-export="" id=valdef-box-suppress-discard>discard<a class=self-link href=#valdef-box-suppress-discard></a></dfn>
<dd>
The element generates no boxes at all.
<dt><dfn class=css data-dfn-for=box-suppress data-dfn-type=value data-export="" id=valdef-box-suppress-hide>hide<a class=self-link href=#valdef-box-suppress-hide></a></dfn>
<dd>
The element generates boxes as normal,
but those boxes do not participate in layout in any way,
and must not be displayed.
<p>For the purpose of any layout-related information,
such as querying for the computed value of the element’s <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-width title=width>width</a> property,
it must be treated as if it did not generate any boxes.</p>
<p>Properties that rely on boxes but do not rely on layout,
such as animations, <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-lists-3/#propdef-counter-increment title=counter-increment>counter-increment</a>, etc.,
must work as normal on this element and its descendants.</p>
</dl>
<h2 class="heading settled" data-level=4 id=run-in><span class=secno>4 </span><span class=content>
Run-In Layout</span><a class=self-link href=#run-in></a></h2>
<p>A <dfn data-dfn-type=dfn data-noexport="" id=run-in-box>run-in box<a class=self-link href=#run-in-box></a></dfn> is a box that <em>merges into</em> a block that comes after it,
inserting itself at the beginning of that block’s inline-level content.
This is useful for formatting compact headlines, definitions, and other similar things,
where the appropriate DOM structure is to have a headline preceding the following prose,
but the desired display is an inline headline laying out with the text.</p>
<div class=example>
For example, dictionary definitions are often formatted so that the word is inline with the definition:
<pre><dl class='dict'>
<dt>dictionary
<dd>a book that lists the words of a language in alphabetical
order and gives their meaning, or that gives the equivalent
words in a different language.
<dt>glossary
<dd>an alphabetical list of terms or words found in or relating
to a specific subject, text, or dialect, with explanations; a
brief dictionary.
</dl>
<style>
.dict > dt {
display: run-in;
}
.dict > dt::after {
content: ": "
}
</style>
</pre>
<p>Which is formatted as:</p>
<pre><b>dictionary:</b> a book that lists the words of a language
in alphabetical order and explains their meaning.
<b>glossary:</b> an alphabetical list of terms or words found
in or relating to a specific subject, text, or dialect,
with explanations; a brief dictionary.
</pre>
</div>
<p>A <a data-link-type=dfn href=#run-in-box title="run-in box">run-in box</a> behaves exactly as an <a data-link-type=dfn href=#inline-level-box title="inline-level box">inline-level box</a>, except:</p>
<ul>
<li>
If a <a data-link-type=dfn href=#run-in-sequence title="run-in sequence">run-in sequence</a> is immediately followed by a block box
that does not establish a new <a data-link-type=dfn href=#formatting-context title="formatting context">formatting context</a>,
it is inserted as direct children of the block box
after its <a class=css data-link-type=maybe href=http://dev.w3.org/csswg/css-lists-3/#selectordef-marker title=::marker>::marker</a> pseudo-element’s boxes (if any),
but preceding any other boxes generates by the contents of the block
(including the box generated by the <span class=css>::before</span> pseudo-element, if any).
<p>The reparented content is then formatted as if originally parented there.
<span class=note>Note that only layout is affected, not inheritance,
because property inheritance for non-anonymous boxes is based only on the element tree.</span></p>
<li>
Otherwise,
an anonymous block box is generated around the <a data-link-type=dfn href=#run-in-sequence title="run-in sequence">run-in sequence</a>
and all immediately following inline-level content
(up to, but not including, the next <a data-link-type=dfn href=#run-in-sequence title="run-in sequence">run-in sequence</a>, if any).
<li>
A <a data-link-type=dfn href=#run-in-box title="run-in box">run-in box</a> with <a class=css data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside: auto</a> <a data-link-type=dfn href=#inlinify title=inlinifies>inlinifies</a> its contents.
</ul>
<p>A <dfn data-dfn-type=dfn data-noexport="" id=run-in-sequence>run-in sequence<a class=self-link href=#run-in-sequence></a></dfn> is a maximal sequence of consecutive sibling <a data-link-type=dfn href=#run-in-box title="run-in boxes">run-in boxes</a>
and intervening white space and/or out-of-flow boxes.</p>
<p class=issue id=issue-0c2c54c6><a class=self-link href=#issue-0c2c54c6></a>Should out-of-flow elements get reparented, left behind, or break apart the sequence?
<a href=http://lists.w3.org/Archives/Public/www-style/2012Aug/0257.html>See thread.</a></p>
<h2 class="heading settled" data-level=5 id=glossary><span class=secno>5 </span><span class=content>
Glossary</span><a class=self-link href=#glossary></a></h2>
<p>The following terms are defined here for convenience:</p>
<dl data-export="">
<dt><dfn data-dfn-type=dfn data-export="" id=inline-level title="inline-level|inline-level content">inline-level<a class=self-link href=#inline-level></a></dfn>
<dd>
Content that participates in inline layout.
Specifically, inline-level boxes and text.
<dt><dfn data-dfn-type=dfn data-export="" id=block-level title="block-level|block-level content">block-level<a class=self-link href=#block-level></a></dfn>
<dd>
Content that participates in block layout.
Specifically, block-level boxes.
<dt><dfn data-dfn-type=dfn data-export="" id=inline title="inline|inline box">inline<a class=self-link href=#inline></a></dfn>
<dd>
A non-replaced <a data-link-type=dfn href=#inline-level title=inline-level>inline-level</a> box whose <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a> is <a class=css data-link-type=maybe href=#valdef-display-inside-auto title=auto>auto</a>.
The contents of an inline box participate in the same inline formatting context as the inline box itself.
<dt><dfn data-dfn-type=dfn data-export="" id=atomic-inline title="atomic inline|atomic inline box">atomic inline<a class=self-link href=#atomic-inline></a></dfn>
<dd>
An inline-level box that is replaced or that establishes a new formatting context.
(An inline-level box whose <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a> is not <a class=css data-link-type=maybe href=#valdef-display-inside-auto title=auto>auto</a> establishes a new formatting context of the specified type.)
<dt><dfn data-dfn-type=dfn data-export="" id=block-container title="block container|block container box">block container<a class=self-link href=#block-container></a></dfn>
<dd>
A box whose contents participate in a block formatting context,
i.e. one whose computed <a class=property data-link-type=propdesc href=#propdef-display-inside title=display-inside>display-inside</a> value is <a class=css data-link-for=display-inside data-link-type=maybe href=#valdef-display-inside-block title=block>block</a>.
<dt><dfn data-dfn-type=dfn data-export="" id=block-box>block box<a class=self-link href=#block-box></a></dfn>
<dd>
A <a data-link-type=dfn href=#block-level-box title="block-level box">block-level box</a> that is a <a data-link-type=dfn href=#block-container title="block container">block container</a>.
<dt><dfn data-dfn-type=dfn data-export="" id=block>block<a class=self-link href=#block></a></dfn>
<dd>
Used as a shorthand for <a data-link-type=dfn href=#block-box title="block box">block box</a>, <a data-link-type=dfn href=#block-level-box title="block-level box">block-level box</a>, or <a data-link-type=dfn href=#block-container title="block container box">block container box</a>,
where unambiguous.
<dt><dfn data-dfn-type=dfn data-export="" id=containing-block>containing block<a class=self-link href=#containing-block></a></dfn>
<dd>
A rectangle that forms the basis of sizing and positioning
for the boxes associated with it
(usually the children of the box that generated it).
Notably, a containing block is <em>not a box</em>
(it is a rectangle),
however it is often derived from the dimensions of a box.
If properties of a containing block are referenced,
they reference the values on the box that generated the containing block.
(For the <a data-link-type=dfn href=#initial-containing-block title="initial containing block">initial containing block</a>, the values are taken from the root element.)
See <a data-biblio-type=informative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a> <a href=http://www.w3.org/TR/CSS21/visuren.html#containing-block>Section 9.1.2</a>
and <a href=http://www.w3.org/TR/CSS21/visudet.html#containing-block-details>Section 10.1</a> for details.
<dt><dfn data-dfn-type=dfn data-export="" id=initial-containing-block>initial containing block<a class=self-link href=#initial-containing-block></a></dfn>
<dd>
The <a data-link-type=dfn href=#containing-block title="containing block">containing block</a> of the root element.
See <a href=http://www.w3.org/TR/CSS21/visudet.html#containing-block-details>CSS2.1§10.1</a> for continuous media;
and <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3page title=biblio-CSS3PAGE>[CSS3PAGE]</a> for paged media.
<dt><dfn data-dfn-type=dfn data-export="" id=formatting-context>formatting context<a class=self-link href=#formatting-context></a></dfn>
<dd>
The thing that makes CSS do the layouts.
<p class=issue id=issue-3b09a388><a class=self-link href=#issue-3b09a388></a>wordsmith this.</p>
<p>Block and inline formatting contexts are defined in CSS 2.1 Section 9.4.</p>
</dl>
<p>See <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a> <a href=http://www.w3.org/TR/CSS21/visuren.html>Chapter 9</a> for a fuller definition of these terms.</p>
<h2 class="no-num heading settled" id=acknowledgments><span class=content>
Acknowledgments</span><a class=self-link href=#acknowledgments></a></h2>
<p>We would like to thank the many people who have attempted to separate out the disparate details of box generation over the years,
most particularly Bert Bos,
whose last attempt with <a class=property data-link-type=propdesc title=display-model>display-model</a> and <a class=property data-link-type=propdesc title=display-role>display-role</a> didn’t get anywhere,
but primed us for the current spec.</p>
<p>We would also like to thank the many JavaScript libraries such as jQuery
which have hacked around the "what <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> should I give it when you call .show()?" problem,
making it extremely clear that something needed to be done on our part.</p>
<h2 class="no-ref no-num heading settled" id=conformance><span class=content>
Conformance</span><a class=self-link href=#conformance></a></h2>
<h3 class="no-ref heading settled" id=conventions><span class=content>
Document conventions</span><a class=self-link href=#conventions></a></h3>
<p>Conformance requirements are expressed with a combination of
descriptive assertions and RFC 2119 terminology. The key words "MUST",
"MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "MAY", and "OPTIONAL" in the normative parts of this
document are to be interpreted as described in RFC 2119.
However, for readability, these words do not appear in all uppercase
letters in this specification.
<p>All of the text of this specification is normative except sections
explicitly marked as non-normative, examples, and notes. <a data-biblio-type=normative data-link-type=biblio href=#biblio-rfc2119 title=biblio-RFC2119>[RFC2119]</a></p>
<p>Examples in this specification are introduced with the words "for example"
or are set apart from the normative text with <code>class="example"</code>,
like this:
<div class=example>
<p>This is an example of an informative example.</p>
</div>
<p>Informative notes begin with the word "Note" and are set apart from the
normative text with <code>class="note"</code>, like this:
<p class=note>Note, this is an informative note.</p>
<p>Advisements are normative sections styled to evoke special attention and are
set apart from other normative text with <code><strong class="advisement"></code>, like
this:
<strong class=advisement>
UAs MUST provide an accessible alternative.
</strong>
<h3 class="no-ref heading settled" id=conformance-classes><span class=content>
Conformance classes</span><a class=self-link href=#conformance-classes></a></h3>
<p>Conformance to this specification
is defined for three conformance classes:
<dl>
<dt>style sheet
<dd>A <a href=http://www.w3.org/TR/CSS21/conform.html#style-sheet>CSS
style sheet</a>.
<dt>renderer
<dd>A <a href=http://www.w3.org/TR/CSS21/conform.html#user-agent>UA</a>
that interprets the semantics of a style sheet and renders
documents that use them.
<dt>authoring tool
<dd>A <a href=http://www.w3.org/TR/CSS21/conform.html#user-agent>UA</a>
that writes a style sheet.
</dl>
<p>A style sheet is conformant to this specification
if all of its statements that use syntax defined in this module are valid
according to the generic CSS grammar and the individual grammars of each
feature defined in this module.
<p>A renderer is conformant to this specification
if, in addition to interpreting the style sheet as defined by the
appropriate specifications, it supports all the features defined
by this specification by parsing them correctly
and rendering the document accordingly. However, the inability of a
UA to correctly render a document due to limitations of the device
does not make the UA non-conformant. (For example, a UA is not
required to render color on a monochrome monitor.)
<p>An authoring tool is conformant to this specification
if it writes style sheets that are syntactically correct according to the
generic CSS grammar and the individual grammars of each feature in
this module, and meet all other conformance requirements of style sheets
as described in this module.
<h3 class="no-ref heading settled" id=partial><span class=content>
Partial implementations</span><a class=self-link href=#partial></a></h3>
<p>So that authors can exploit the forward-compatible parsing rules to
assign fallback values, CSS renderers <strong>must</strong>
treat as invalid (and <a href=http://www.w3.org/TR/CSS21/conform.html#ignore>ignore
as appropriate</a>) any at-rules, properties, property values, keywords,
and other syntactic constructs for which they have no usable level of
support. In particular, user agents <strong>must not</strong> selectively
ignore unsupported component values and honor supported values in a single
multi-value property declaration: if any value is considered invalid
(as unsupported values must be), CSS requires that the entire declaration
be ignored.</p>
<h3 class="no-ref heading settled" id=experimental><span class=content>
Experimental implementations</span><a class=self-link href=#experimental></a></h3>
<p>To avoid clashes with future CSS features, the CSS2.1 specification
reserves a <a href=http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords>prefixed
syntax</a> for proprietary and experimental extensions to CSS.
<p>Prior to a specification reaching the Candidate Recommendation stage
in the W3C process, all implementations of a CSS feature are considered
experimental. The CSS Working Group recommends that implementations
use a vendor-prefixed syntax for such features, including those in
W3C Working Drafts. This avoids incompatibilities with future changes
in the draft.
</p>
<h3 class="no-ref heading settled" id=testing><span class=content>
Non-experimental implementations</span><a class=self-link href=#testing></a></h3>
<p>Once a specification reaches the Candidate Recommendation stage,
non-experimental implementations are possible, and implementors should
release an unprefixed implementation of any CR-level feature they
can demonstrate to be correctly implemented according to spec.
<p>To establish and maintain the interoperability of CSS across
implementations, the CSS Working Group requests that non-experimental
CSS renderers submit an implementation report (and, if necessary, the
testcases used for that implementation report) to the W3C before
releasing an unprefixed implementation of any CSS features. Testcases
submitted to W3C are subject to review and correction by the CSS
Working Group.
<p>Further information on submitting testcases and implementation reports
can be found from on the CSS Working Group’s website at
<a href=http://www.w3.org/Style/CSS/Test/>http://www.w3.org/Style/CSS/Test/</a>.
Questions should be directed to the
<a href=http://lists.w3.org/Archives/Public/public-css-testsuite>public-css-testsuite@w3.org</a>
mailing list.
<h2 class="no-num no-ref heading settled" id=references><span class=content>
References</span><a class=self-link href=#references></a></h2>
<h3 class="no-num no-ref heading settled" id=normative><span class=content>
Normative References</span><a class=self-link href=#normative></a></h3>
<div data-fill-with=normative-references><dl>
<dt id=biblio-css21 title=CSS21><a class=self-link href=#biblio-css21></a>[CSS21]<dd>Bert Bos; et al. <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a></dd>
<dt id=biblio-css3-flexbox title=CSS3-FLEXBOX><a class=self-link href=#biblio-css3-flexbox></a>[CSS3-FLEXBOX]<dd>Tab Atkins Jr.; Elika J. Etemad; Alex Mogilevsky. <a href=http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/>CSS Flexible Box Layout Module</a>. 18 September 2012. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/>http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/</a></dd>
<dt id=biblio-css3-grid-layout title=CSS3-GRID-LAYOUT><a class=self-link href=#biblio-css3-grid-layout></a>[CSS3-GRID-LAYOUT]<dd>Tab Atkins Jr.; Elika J. Etemad; Rossen Atanassov. <a href=http://www.w3.org/TR/2013/WD-css3-grid-layout-20130402/>CSS Grid Layout</a>. 2 April 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-grid-layout-20130402/>http://www.w3.org/TR/2013/WD-css3-grid-layout-20130402/</a></dd>
<dt id=biblio-css3page title=CSS3PAGE><a class=self-link href=#biblio-css3page></a>[CSS3PAGE]<dd>Melinda Grant; et al. <a href=http://www.w3.org/TR/2013/WD-css3-page-20130314/>CSS Paged Media Module Level 3</a>. 14 March 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-page-20130314/>http://www.w3.org/TR/2013/WD-css3-page-20130314/</a></dd>
<dt id=biblio-css3ruby title=CSS3RUBY><a class=self-link href=#biblio-css3ruby></a>[CSS3RUBY]<dd>Elika J. Etemad; Koji Ishii; Richard Ishida. <a href=http://www.w3.org/TR/2013/WD-css3-ruby-20130919/>CSS3 Ruby Module</a>. 19 September 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-ruby-20130919/>http://www.w3.org/TR/2013/WD-css3-ruby-20130919/</a></dd>
<dt id=biblio-rfc2119 title=RFC2119><a class=self-link href=#biblio-rfc2119></a>[RFC2119]<dd>S. Bradner. <a href=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <a href=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dd>
</dl></div>
<h3 class="no-num no-ref heading settled" id=informative><span class=content>
Informative References</span><a class=self-link href=#informative></a></h3>
<div data-fill-with=informative-references><dl>
</dl></div>
<h2 class="no-num no-ref heading settled" id=index><span class=content>
Index</span><a class=self-link href=#index></a></h2>
<div data-fill-with=index><ul class=indexlist>
<li>atomic inline, <a href=#atomic-inline title="section 5">5</a>
<li>atomic inline box, <a href=#atomic-inline title="section 5">5</a>
<li>auto, <a href=#valdef-display-inside-auto title="section 2.1">2.1</a>
<li>block<ul><li>value for display-inside, <a href=#valdef-display-inside-block title="section 2.1">2.1</a>
<li>value for display, <a href=#valdef-display-block title="section 2.4">2.4</a>
<li>definition of, <a href=#block title="section 5">5</a>
</ul><li>block box, <a href=#block-box title="section 5">5</a>
<li>block container, <a href=#block-container title="section 5">5</a>
<li>block container box, <a href=#block-container title="section 5">5</a>
<li>blockification, <a href=#blockify title="section 2.5">2.5</a>
<li>blockify, <a href=#blockify title="section 2.5">2.5</a>
<li>block-level<ul><li>value for display-outside, <a href=#valdef-display-outside-block-level title="section 2.2">2.2</a>
<li>definition of, <a href=#block-level title="section 5">5</a>
</ul><li>block-level box, <a href=#block-level-box title="section 2.2">2.2</a>
<li>block-level content, <a href=#block-level title="section 5">5</a>
<li>box-suppress, <a href=#propdef-box-suppress title="section 3">3</a>
<li>containing block, <a href=#containing-block title="section 5">5</a>
<li>contents<ul><li>value for display-outside, <a href=#valdef-display-outside-contents title="section 2.2">2.2</a>
<li>value for display, <a href=#valdef-display-contents title="section 2.4">2.4</a>
</ul><li>discard, <a href=#valdef-box-suppress-discard title="section 3">3</a>
<li>display, <a href=#propdef-display title="section 2.4">2.4</a>
<li>display-inside, <a href=#propdef-display-inside title="section 2.1">2.1</a>
<li>display-list, <a href=#propdef-display-list title="section 2.3">2.3</a>
<li>display-outside, <a href=#propdef-display-outside title="section 2.2">2.2</a>
<li>flex<ul><li>value for display-inside, <a href=#valdef-display-inside-flex title="section 2.1">2.1</a>
<li>value for display, <a href=#valdef-display-flex title="section 2.4">2.4</a>
</ul><li>formatting context, <a href=#formatting-context title="section 5">5</a>
<li>grid<ul><li>value for display-inside, <a href=#valdef-display-inside-grid title="section 2.1">2.1</a>
<li>value for display, <a href=#valdef-display-grid title="section 2.4">2.4</a>
</ul><li>hide, <a href=#valdef-box-suppress-hide title="section 3">3</a>
<li>initial containing block, <a href=#initial-containing-block title="section 5">5</a>
<li>inline<ul><li>value for display, <a href=#valdef-display-inline title="section 2.4">2.4</a>
<li>definition of, <a href=#inline title="section 5">5</a>
</ul><li>inline-block, <a href=#valdef-display-inline-block title="section 2.4">2.4</a>
<li>inline box, <a href=#inline title="section 5">5</a>
<li>inline-flex, <a href=#valdef-display-inline-flex title="section 2.4">2.4</a>
<li>inline-grid, <a href=#valdef-display-inline-grid title="section 2.4">2.4</a>
<li>inline-level<ul><li>value for display-outside, <a href=#valdef-display-outside-inline-level title="section 2.2">2.2</a>
<li>definition of, <a href=#inline-level title="section 5">5</a>
</ul><li>inline-level box, <a href=#inline-level-box title="section 2.2">2.2</a>
<li>inline-level content, <a href=#inline-level title="section 5">5</a>
<li>inline-list-item, <a href=#valdef-display-inline-list-item title="section 2.4">2.4</a>
<li>inline-table, <a href=#valdef-display-inline-table title="section 2.4">2.4</a>
<li>inlinification, <a href=#inlinify title="section 2.5">2.5</a>
<li>inlinify, <a href=#inlinify title="section 2.5">2.5</a>
<li>inner display type, <a href=#inner-display-type title="section 2.1">2.1</a>
<li>internal ruby element, <a href=#internal-ruby-element title="section 2.2">2.2</a>
<li>internal table element, <a href=#internal-table-element title="section 2.2">2.2</a>
<li>layout-specific internal types, <a href=#layout-specific-internal-types title="section 2.2">2.2</a>
<li>layout-specific leaf types, <a href=#layout-specific-leaf-types title="section 2.2">2.2</a>
<li>list-item<ul><li>value for display-list, <a href=#valdef-display-list-list-item title="section 2.3">2.3</a>
<li>value for display, <a href=#valdef-display-list-item title="section 2.4">2.4</a>
</ul><li>none<ul><li>value for display-outside, <a href=#valdef-display-outside-none title="section 2.2">2.2</a>
<li>value for display, <a href=#valdef-display-none title="section 2.4">2.4</a>
</ul><li>outer display type, <a href=#outer-display-type title="section 2.2">2.2</a>
<li>ruby<ul><li>value for display-inside, <a href=#valdef-display-inside-ruby title="section 2.1">2.1</a>
<li>value for display, <a href=#valdef-display-ruby title="section 2.4">2.4</a>
</ul><li>ruby-base, <a href=#valdef-display-outside-ruby-base title="section 2.2">2.2</a>
<li>ruby-base-container, <a href=#valdef-display-outside-ruby-base-container title="section 2.2">2.2</a>
<li>ruby-text, <a href=#valdef-display-outside-ruby-text title="section 2.2">2.2</a>
<li>ruby-text-container, <a href=#valdef-display-outside-ruby-text-container title="section 2.2">2.2</a>
<li>run-in, <a href=#valdef-display-outside-run-in title="section 2.2">2.2</a>
<li>run-in box, <a href=#run-in-box title="section 4">4</a>
<li>run-in sequence, <a href=#run-in-sequence title="section 4">4</a>
<li>show, <a href=#valdef-box-suppress-show title="section 3">3</a>
<li>table<ul><li>value for display-inside, <a href=#valdef-display-inside-table title="section 2.1">2.1</a>
<li>value for display, <a href=#valdef-display-table title="section 2.4">2.4</a>
</ul><li>table-caption<ul><li>value for display-outside, <a href=#valdef-display-outside-table-caption title="section 2.2">2.2</a>
<li>value for display, <a href=#valdef-display-table-caption title="section 2.4">2.4</a>
</ul><li>table-cell<ul><li>value for display-outside, <a href=#valdef-display-outside-table-cell title="section 2.2">2.2</a>
<li>value for display, <a href=#valdef-display-table-cell title="section 2.4">2.4</a>
</ul><li>table-column, <a href=#valdef-display-outside-table-column title="section 2.2">2.2</a>
<li>table-column-group, <a href=#valdef-display-outside-table-column-group title="section 2.2">2.2</a>
<li>table-footer-group, <a href=#valdef-display-outside-table-footer-group title="section 2.2">2.2</a>
<li>table-header-group, <a href=#valdef-display-outside-table-header-group title="section 2.2">2.2</a>
<li>table-row, <a href=#valdef-display-outside-table-row title="section 2.2">2.2</a>
<li>table-row-group, <a href=#valdef-display-outside-table-row-group title="section 2.2">2.2</a>
</ul></div>
<h2 class="no-num no-ref heading settled" id=property-index><span class=content>
Property index</span><a class=self-link href=#property-index></a></h2>
<div data-fill-with=property-index><table class="proptable data"><thead><tr><th scope=col>Name<th scope=col>Value<th scope=col>Initial<th scope=col>Applies to<th scope=col>Inh.<th scope=col>%ages<th scope=col>Media<th scope=col>Animatable<th scope=col>Computed value<tbody>
<tr><th scope=row><a class=css data-link-type=property href=#propdef-display-inside title=display-inside>display-inside</a><td>auto | block | table | flex | grid | ruby<td>auto<td>all elements<td>no<td>n/a<td>all<td><td>a keyword
<tr><th scope=row><a class=css data-link-type=property href=#propdef-display-outside title=display-outside>display-outside</a><td>block-level | inline-level | run-in | contents | none | table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container<td>inline-level<td>all elements<td>no<td>n/a<td>all<td><td>as specified
<tr><th scope=row><a class=css data-link-type=property href=#propdef-display-list title=display-list>display-list</a><td>none | list-item<td>none<td>all elements<td>no<td>n/a<td>all<td><td>as specified
<tr><th scope=row><a class=css data-link-type=property href=#propdef-display title=display>display</a><td>[ <‘display-inside’> || <‘display-outside’> || <‘display-list’> ] | inline | inline-list-item | inline-table | inline-flex | inline-grid<td>see individual properties<td>see individual properties<td>see individual properties<td><td>see individual properties<td>see individual properties<td>see individual properties
<tr><th scope=row><a class=css data-link-type=property href=#propdef-box-suppress title=box-suppress>box-suppress</a><td>show | discard | hide<td>normal<td>all elements<td>no<td>n/a<td>all<td><td>see prose</table></div>
<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><div class=issue><a class=css data-link-for=display-outside data-link-type=maybe href=#valdef-display-outside-contents title=contents>contents</a> currently only has an effect on box generation and layout.
Other things that care about the document tree are unaffected, like counter scopes.
Is this what we want?<a href=#issue-1cacf007> ↵ </a></div><div class=issue>Should out-of-flow elements get reparented, left behind, or break apart the sequence?
<a href=http://lists.w3.org/Archives/Public/www-style/2012Aug/0257.html>See thread.</a><a href=#issue-0c2c54c6> ↵ </a></div><div class=issue>wordsmith this.<a href=#issue-3b09a388> ↵ </a></div></div>