Skip to content

Commit d2bd009

Browse files
committed
[css-display] Added a glossary of common terms that'll eventually show up in Block & Inline Layout.
--HG-- extra : rebase_source : 7fb4afdb187ffdd9e0f0bafa0b98660ccf98c1c2
1 parent 87b8f5f commit d2bd009

2 files changed

Lines changed: 170 additions & 13 deletions

File tree

css-display/Overview.bs

Lines changed: 72 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Level: 3
99
Editor: Tab Atkins Jr., Google, http://xanthir.com/contact/
1010
Editor: fantasai, Invited Expert, http://fantasai.inkedblade.net/contact
1111
Abstract: This module contains the features of CSS relating to the 'display' property and other box-generation details.
12-
Ignored Terms: show, display-model, display-role, table row group box, formatting context, inline-level box
12+
Ignored Terms: display-model, display-role, table row group box, formatting context
1313
Link Defaults: css-lists-3 (property) counter-increment
1414
</pre>
1515

@@ -140,15 +140,15 @@ Interacting with Ancestors and Siblings: the 'display-outside' property</h3>
140140
<dl dfn-type="value" dfn-for="display-outside">
141141
<dt><dfn>block-level</dfn>
142142
<dd>
143-
The element is block-level,
143+
The element generates a <dfn dfn>block-level box</dfn>,
144144
and participates in a block formatting context.
145145
Other formatting contexts,
146146
such as flex formatting contexts,
147147
may also work with block-level elements. [[!CSS21]]
148148

149149
<dt><dfn>inline-level</dfn>
150150
<dd>
151-
The element is inline-level,
151+
The element generates an <dfn dfn>inline-level box</dfn>,
152152
and participates in an inline formatting context. [[!CSS21]]
153153

154154
<dt><dfn>run-in</dfn>
@@ -493,6 +493,75 @@ Run-In Layout</h2>
493493
Issue: Should out-of-flow elements get reparented, left behind, or break apart the sequence?
494494
<a href="http://lists.w3.org/Archives/Public/www-style/2012Aug/0257.html">See thread.</a>
495495

496+
<h2 id='glossary'>
497+
Glossary</h2>
498+
499+
The following terms are defined here for convenience:
500+
501+
<dl export>
502+
<dt><dfn title="inline-level|inline-level content">inline-level</dfn>
503+
<dd>
504+
Content that participates in inline layout.
505+
Specifically, inline-level boxes and text.
506+
507+
<dt><dfn title="block-level|block-level content">block-level</dfn>
508+
<dd>
509+
Content that participates in block layout.
510+
Specifically, block-level boxes.
511+
512+
<dt><dfn title="inline|inline box">inline</dfn>
513+
<dd>
514+
A non-replaced <a>inline-level</a> box whose 'display-inside' is ''auto''.
515+
The contents of an inline box participate in the same inline formatting context as the inline box itself.
516+
517+
<dt><dfn title="atomic inline|atomic inline box">atomic inline</dfn>
518+
<dd>
519+
An inline-level box that is replaced or that establishes a new formatting context.
520+
(An inline-level box whose 'display-inside' is not ''auto'' establishes a new formatting context of the specified type.)
521+
522+
<dt><dfn title="block container|block container box">block container</dfn>
523+
<dd>
524+
A box whose contents participate in a block formatting context,
525+
i.e. one whose computed 'display-inside' value is ''display-inside/block''.
526+
527+
<dt><dfn>block box</dfn>
528+
<dd>
529+
A <a>block-level box</a> that is a <a>block container</a>.
530+
531+
<dt><dfn>block</dfn>
532+
<dd>
533+
Used as a shorthand for <a>block box</a>, <a>block-level box</a>, or <a>block container box</a>,
534+
where unambiguous.
535+
536+
<dt><dfn>containing block</dfn>
537+
<dd>
538+
A rectangle that forms the basis of sizing and positioning
539+
for the boxes associated with it
540+
(usually the children of the box that generated it).
541+
Notably, a containing block is <em>not a box</em>
542+
(it is a rectangle),
543+
however it is often derived from the dimensions of a box.
544+
If properties of a containing block are referenced,
545+
they reference the values on the box that generated the containing block.
546+
(For the <a>initial containing block</a>, the values are taken from the root element.)
547+
See [[CSS21]] <a href="http://www.w3.org/TR/CSS21/visuren.html#containing-block">Section 9.1.2</a>
548+
and <a href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">Section 10.1</a> for details.
549+
550+
<dt><dfn>initial containing block</dfn>
551+
<dd>
552+
The <a>containing block</a> of the root element.
553+
See <a href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">CSS2.1&sect;10.1</a> for continuous media;
554+
and [[!CSS3PAGE]] for paged media.
555+
556+
<dt><dfn>formatting context</dfn>
557+
<dd>
558+
Issue: wordsmith this.
559+
560+
Block and inline formatting contexts are defined in CSS 2.1 Section 9.4.
561+
</dl>
562+
563+
See [[!CSS21]] <a href="http://www.w3.org/TR/CSS21/visuren.html">Chapter 9</a> for a fuller definition of these terms.
564+
496565
<h2 class=no-num id="acknowledgments">
497566
Acknowledgments</h2>
498567

css-display/Overview.html

Lines changed: 98 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ <h2 class="no-num no-toc no-ref heading settled" id=contents><span class=content
126126
<li><a href=#transformations><span class=secno>2.5</span> Automatic Box Type Transformations</a></ul>
127127
<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>
128128
<li><a href=#run-in><span class=secno>4</span> Run-In Layout</a>
129+
<li><a href=#glossary><span class=secno>5</span> Glossary</a>
129130
<li><a href=#acknowledgments><span class=secno></span> Acknowledgments</a>
130131
<li><a href=#conformance><span class=secno></span> Conformance</a>
131132
<ul class=toc>
@@ -254,15 +255,15 @@ <h3 class="heading settled" data-level=2.2 id=the-display-outside><span class=se
254255
<dl data-dfn-for=display-outside data-dfn-type=value>
255256
<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>
256257
<dd>
257-
The element is block-level,
258+
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>,
258259
and participates in a block formatting context.
259260
Other formatting contexts,
260261
such as flex formatting contexts,
261262
may also work with block-level elements. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
262263

263264
<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>
264265
<dd>
265-
The element is inline-level,
266+
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>,
266267
and participates in an inline formatting context. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-CSS21>[CSS21]</a>
267268

268269
<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>
@@ -547,12 +548,12 @@ <h2 class="heading settled" data-level=4 id=run-in><span class=secno>4 </span><s
547548
</pre>
548549
</div>
549550

550-
<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 title="inline-level box">inline-level box</a>, except:</p>
551+
<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>
551552

552553
<ul>
553554
<li>
554555
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
555-
that does not establish a new <a data-link-type=dfn title="formatting context">formatting context</a>,
556+
that does not establish a new <a data-link-type=dfn href=#formatting-context title="formatting context">formatting context</a>,
556557
it is inserted as direct children of the block box
557558
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),
558559
but preceding any other boxes generates by the contents of the block
@@ -578,6 +579,75 @@ <h2 class="heading settled" data-level=4 id=run-in><span class=secno>4 </span><s
578579
<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?
579580
<a href=http://lists.w3.org/Archives/Public/www-style/2012Aug/0257.html>See thread.</a></p>
580581

582+
<h2 class="heading settled" data-level=5 id=glossary><span class=secno>5 </span><span class=content>
583+
Glossary</span><a class=self-link href=#glossary></a></h2>
584+
585+
<p>The following terms are defined here for convenience:</p>
586+
587+
<dl data-export="">
588+
<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>
589+
<dd>
590+
Content that participates in inline layout.
591+
Specifically, inline-level boxes and text.
592+
593+
<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>
594+
<dd>
595+
Content that participates in block layout.
596+
Specifically, block-level boxes.
597+
598+
<dt><dfn data-dfn-type=dfn data-export="" id=inline title="inline|inline box">inline<a class=self-link href=#inline></a></dfn>
599+
<dd>
600+
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>.
601+
The contents of an inline box participate in the same inline formatting context as the inline box itself.
602+
603+
<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>
604+
<dd>
605+
An inline-level box that is replaced or that establishes a new formatting context.
606+
(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.)
607+
608+
<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>
609+
<dd>
610+
A box whose contents participate in a block formatting context,
611+
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>.
612+
613+
<dt><dfn data-dfn-type=dfn data-export="" id=block-box>block box<a class=self-link href=#block-box></a></dfn>
614+
<dd>
615+
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>.
616+
617+
<dt><dfn data-dfn-type=dfn data-export="" id=block>block<a class=self-link href=#block></a></dfn>
618+
<dd>
619+
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>,
620+
where unambiguous.
621+
622+
<dt><dfn data-dfn-type=dfn data-export="" id=containing-block>containing block<a class=self-link href=#containing-block></a></dfn>
623+
<dd>
624+
A rectangle that forms the basis of sizing and positioning
625+
for the boxes associated with it
626+
(usually the children of the box that generated it).
627+
Notably, a containing block is <em>not a box</em>
628+
(it is a rectangle),
629+
however it is often derived from the dimensions of a box.
630+
If properties of a containing block are referenced,
631+
they reference the values on the box that generated the containing block.
632+
(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.)
633+
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>
634+
and <a href=http://www.w3.org/TR/CSS21/visudet.html#containing-block-details>Section 10.1</a> for details.
635+
636+
<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>
637+
<dd>
638+
The <a data-link-type=dfn href=#containing-block title="containing block">containing block</a> of the root element.
639+
See <a href=http://www.w3.org/TR/CSS21/visudet.html#containing-block-details>CSS2.1§10.1</a> for continuous media;
640+
and <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3page title=biblio-CSS3PAGE>[CSS3PAGE]</a> for paged media.
641+
642+
<dt><dfn data-dfn-type=dfn data-export="" id=formatting-context>formatting context<a class=self-link href=#formatting-context></a></dfn>
643+
<dd>
644+
Issue: wordsmith this.
645+
646+
<p>Block and inline formatting contexts are defined in CSS 2.1 Section 9.4.</p>
647+
</dl>
648+
649+
<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>
650+
581651
<h2 class="no-num heading settled" id=acknowledgments><span class=content>
582652
Acknowledgments</span><a class=self-link href=#acknowledgments></a></h2>
583653

@@ -727,6 +797,7 @@ <h3 class="no-num no-ref heading settled" id=normative><span class=content>
727797
<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>
728798
<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>
729799
<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>
800+
<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>
730801
<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>
731802
<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>
732803
</dl></div>
@@ -739,13 +810,23 @@ <h3 class="no-num no-ref heading settled" id=informative><span class=content>
739810
<h2 class="no-num no-ref heading settled" id=index><span class=content>
740811
Index</span><a class=self-link href=#index></a></h2>
741812
<div data-fill-with=index><ul class=indexlist>
813+
<li>atomic inline, <a href=#atomic-inline title="section 5">5</a>
814+
<li>atomic inline box, <a href=#atomic-inline title="section 5">5</a>
742815
<li>auto, <a href=#valdef-display-inside-auto title="section 2.1">2.1</a>
743816
<li>block<ul><li>value for display-inside, <a href=#valdef-display-inside-block title="section 2.1">2.1</a>
744817
<li>value for display, <a href=#valdef-display-block title="section 2.4">2.4</a>
745-
</ul><li>blockification, <a href=#blockify title="section 2.5">2.5</a>
818+
<li>definition of, <a href=#block title="section 5">5</a>
819+
</ul><li>block box, <a href=#block-box title="section 5">5</a>
820+
<li>block container, <a href=#block-container title="section 5">5</a>
821+
<li>block container box, <a href=#block-container title="section 5">5</a>
822+
<li>blockification, <a href=#blockify title="section 2.5">2.5</a>
746823
<li>blockify, <a href=#blockify title="section 2.5">2.5</a>
747-
<li>block-level, <a href=#valdef-display-outside-block-level title="section 2.2">2.2</a>
824+
<li>block-level<ul><li>value for display-outside, <a href=#valdef-display-outside-block-level title="section 2.2">2.2</a>
825+
<li>definition of, <a href=#block-level title="section 5">5</a>
826+
</ul><li>block-level box, <a href=#block-level-box title="section 2.2">2.2</a>
827+
<li>block-level content, <a href=#block-level title="section 5">5</a>
748828
<li>box-suppress, <a href=#propdef-box-suppress title="section 3">3</a>
829+
<li>containing block, <a href=#containing-block title="section 5">5</a>
749830
<li>contents<ul><li>value for display-outside, <a href=#valdef-display-outside-contents title="section 2.2">2.2</a>
750831
<li>value for display, <a href=#valdef-display-contents title="section 2.4">2.4</a>
751832
</ul><li>discard, <a href=#valdef-box-suppress-discard title="section 3">3</a>
@@ -755,14 +836,21 @@ <h2 class="no-num no-ref heading settled" id=index><span class=content>
755836
<li>display-outside, <a href=#propdef-display-outside title="section 2.2">2.2</a>
756837
<li>flex<ul><li>value for display-inside, <a href=#valdef-display-inside-flex title="section 2.1">2.1</a>
757838
<li>value for display, <a href=#valdef-display-flex title="section 2.4">2.4</a>
758-
</ul><li>grid<ul><li>value for display-inside, <a href=#valdef-display-inside-grid title="section 2.1">2.1</a>
839+
</ul><li>formatting context, <a href=#formatting-context title="section 5">5</a>
840+
<li>grid<ul><li>value for display-inside, <a href=#valdef-display-inside-grid title="section 2.1">2.1</a>
759841
<li>value for display, <a href=#valdef-display-grid title="section 2.4">2.4</a>
760842
</ul><li>hide, <a href=#valdef-box-suppress-hide title="section 3">3</a>
761-
<li>inline, <a href=#valdef-display-inline title="section 2.4">2.4</a>
762-
<li>inline-block, <a href=#valdef-display-inline-block title="section 2.4">2.4</a>
843+
<li>initial containing block, <a href=#initial-containing-block title="section 5">5</a>
844+
<li>inline<ul><li>value for display, <a href=#valdef-display-inline title="section 2.4">2.4</a>
845+
<li>definition of, <a href=#inline title="section 5">5</a>
846+
</ul><li>inline-block, <a href=#valdef-display-inline-block title="section 2.4">2.4</a>
847+
<li>inline box, <a href=#inline title="section 5">5</a>
763848
<li>inline-flex, <a href=#valdef-display-inline-flex title="section 2.4">2.4</a>
764849
<li>inline-grid, <a href=#valdef-display-inline-grid title="section 2.4">2.4</a>
765-
<li>inline-level, <a href=#valdef-display-outside-inline-level title="section 2.2">2.2</a>
850+
<li>inline-level<ul><li>value for display-outside, <a href=#valdef-display-outside-inline-level title="section 2.2">2.2</a>
851+
<li>definition of, <a href=#inline-level title="section 5">5</a>
852+
</ul><li>inline-level box, <a href=#inline-level-box title="section 2.2">2.2</a>
853+
<li>inline-level content, <a href=#inline-level title="section 5">5</a>
766854
<li>inline-list-item, <a href=#valdef-display-inline-list-item title="section 2.4">2.4</a>
767855
<li>inline-table, <a href=#valdef-display-inline-table title="section 2.4">2.4</a>
768856
<li>inlinification, <a href=#inlinify title="section 2.5">2.5</a>

0 commit comments

Comments
 (0)