Skip to content

Define root element (as a term, and its display type) #8095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions css-display-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,13 @@ Automatic Box Type Transformations</h3>
</ul>
</div>

The root element’s display type is always <a>blockified</a>.
<h3 id='root'>
The Root Element’s Principal Box</h3>

The [=root element=]’s display type is always <a>blockified</a>,
and its [=principal box=] always establishes an [=independent formatting context=].
This box’s [=containing block=] is the [=initial containing block=].

Additionally, a 'display' of ''display/contents'' computes to ''block'' on the root element.

<!--
Expand Down Expand Up @@ -1384,6 +1390,14 @@ Appendix A: Glossary</h2>
The following terms are defined here for convenience:

<dl export>
<dt><dfn>root element</dfn>
<dd>
The [=CSS/element=] at the root of the [=document tree=].
In a [=document tree=] produced under the DOM,
this is the [=document element=];
in HTML it is the <{html}> element.
[[DOM]] [[HTML]]

<dt><dfn>principal box</dfn>
<dd>
When an [=CSS/element=] generates one or more [=boxes=],
Expand Down Expand Up @@ -1547,9 +1561,11 @@ Appendix A: Glossary</h2>

<dt><dfn>initial containing block</dfn>
<dd>
The <a>containing block</a> of the root element.
The <a>containing block</a> of the [=root element=].
The [=initial containing block=] establishes a [=block formatting context=].
See <a href="https://www.w3.org/TR/CSS2/visudet.html#containing-block-details">CSS2.1&sect;10.1</a> for [=continuous media=];
and [[!CSS-PAGE-3]] for [=paged media=].
and [[!CSS-PAGE-3]] for [=paged media=]
for its position and dimensions.

<dt><dfn>formatting context</dfn>
<dd>
Expand Down