Closed
Labels
Description
https://drafts.csswg.org/css-display/#transformations
The root element’s display type is always blockified.
https://drafts.csswg.org/css-display/#initial-containing-block
initial containing block
The containing block of the root element.
The term "root element" is neither hyperlinked nor explicitly defined. My skimming of the DOM spec is that, while it defines tree, root, and element, the root of a normal DOM tree would instead be the Document node. Nor does DOM appear to define how its definition of "root" would/could be modified by the adjective "element".
Searching further, it appears to me that document element would be the correct term to use in these cases.
Activity
Loirooriol commentedon Sep 24, 2022
The root of the DOM tree is the document node. The root of the element tree used by CSS is the document element if the element tree is produced from a DOM, but the specs try not to assume that. See #4888 for assuming a DOM (or something isomorphic to a DOM).
[css-display-3] Define root element term and display type. w3c#7786 w…
[css-display-3] Define root element term and display type. #7786 #6480 …
fantasai commentedon Dec 7, 2022
Fixed, thanks for the report!
[css-display-3] Define root element term and display type. w3c#7786 w…