Skip to content

Root element behavior for top layer #213

Open
@nt1m

Description

@nt1m

I noticed that Chrome & Firefox did not adjust position: static to absolute for the root element (<html>) in the top layer.

I had to make WebKit match behavior to prevent compatibility issues, given that implementing that adjustment leads to the root collapsing its width to 0.

Looking more closely at the spec, I do see this line is supposed to prevent that:

Unless overridden by another specification, its static position for left, right, and top is zero.

However, no browser implements that.

Also, another thing I noticed was that ::backdrop did not work on the root element in FF & Chrome.

It would be nice to specify this further and make the spec potentially match the reality of implementations.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions