You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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).
https://drafts.csswg.org/css-display/#transformations
https://drafts.csswg.org/css-display/#initial-containing-block
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.
The text was updated successfully, but these errors were encountered: