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

Root element behavior for top layer #213

Open
nt1m opened this issue Dec 20, 2022 · 0 comments
Open

Root element behavior for top layer #213

nt1m opened this issue Dec 20, 2022 · 0 comments

Comments

@nt1m
Copy link
Member

nt1m commented Dec 20, 2022

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.

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

No branches or pull requests

1 participant