Re: [whatwg/fullscreen] Removing `:fullscreen-ancestor` pseudo-class causes webcompat issue (#103)

Whether the ancestor elements are visible doesn't matter, but whether they exist matters. The page has rules like
```css
:-moz-full-screen-ancestor>:not(:-moz-full-screen-ancestor):not(:-moz-full-screen) {
 display:none!important
}
/* as well as those with other vendor prefixes */
```
so when in fullscreen, if `:-moz-full-screen-ancestor` is valid, everything outside the fullscreen element would no longer generate any box, which means the page basically has no height, and thus `scrollY` becomes zero, which triggers some change inside the fullscreen element (hide some element there so that video is visible).

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

Received on Wednesday, 27 September 2017 09:31:13 UTC