Re: [w3c/webcomponents] Shadow DOM and the Fullscreen API (#180)

As `exitFullScreen()` API is on `document`, now I think `document.fullscreenElement` should return something other than null if any element in shadow is full screen, to detect if there is any element in full screen.  So `document.fullscreenElement` at least should not behave like the `currentScript` way.
I agree annevk's https://github.com/w3c/webcomponents/issues/180#issuecomment-224218060

For `:fullscreen` pseudo class, if we honor the current spec sentence:

> The :fullscreen pseudo-class must match any element that has its fullscreen flag set.

we have to decide whether shadow host's fullscreen flag is set when its descendant is fullscreen.
I'm not sure if `shadowhost:fullscreen { css property... }` makes any sense because the host
itself is not rendered unless the host becomes fullscreen. So we don't want to set fullscreen flag
for shadow host in case its descendant is fullscreen, probably.

Another point:
Should `fullscreenchanged` / `fullscreenerror` events be dispatched to `document`, even when an element under shadow tree becomes full screen?


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/180#issuecomment-224222797

Received on Tuesday, 7 June 2016 09:07:53 UTC