Skip to content

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

Closed

Description

@cvrebert

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

  1. Loirooriol commented on Sep 24, 2022

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

  2. fantasai commented on Dec 7, 2022

    @fantasai
    Collaborator

    Fixed, thanks for the report!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions