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.
I noticed that Chrome & Firefox did not adjust
position: statictoabsolutefor 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:
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.