Skip to content
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

[css-display] "root element" is undefined #7786

Closed
cvrebert opened this issue Sep 24, 2022 · 2 comments
Closed

[css-display] "root element" is undefined #7786

cvrebert opened this issue Sep 24, 2022 · 2 comments

Comments

@cvrebert
Copy link
Member

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.

@Loirooriol
Copy link
Contributor

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).

@fantasai
Copy link
Collaborator

fantasai commented Dec 7, 2022

Fixed, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants