[whatwg/fullscreen] Root element behavior for top layer (Issue #213)

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.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/213
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fullscreen/issues/213@github.com>

Received on Tuesday, 20 December 2022 08:43:27 UTC