- From: Xidorn Quan <notifications@github.com>
- Date: Sun, 03 Mar 2019 11:46:05 -0800
- To: whatwg/fullscreen <fullscreen@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fullscreen/issues/70/469056816@github.com>
The output on Firefox is: ``` 0 The VENDOR-specific :fullscreen Pseudo Class is :fullscreen fullscreenchange.html:35:3 ----------------------------------- fullscreenchange.html:37:3 5.236 DOCUMENT fullscreenchange: There is at least one element in fullscreen mode. The current fullscreenElement is: [object HTMLHtmlElement] fullscreenchange.html:41:5 5.237 DOC (continued): ... and, here are ALL the current fullscreen elements:- fullscreenchange.html:46:4 5.237 [object HTMLHtmlElement] fullscreenchange.html:48:5 5.238 DOC (continued): ... and, is the HTML element fullscreen?: true fullscreenchange.html:50:4 5.238 DOC (continued): ... and, is the PLAYER element fullscreen?: false fullscreenchange.html:51:4 ################################### fullscreenchange.html:52:4 22.941 ELEMENT (Video PLAYER DIV) fullscreenchange: The current fullscreenElement is: [object HTMLDivElement] fullscreenchange.html:72:4 22.941 EL (continued): ... and, here are ALL the current fullscreen elements:- fullscreenchange.html:73:4 22.942 [object HTMLHtmlElement] fullscreenchange.html:75:5 22.942 [object HTMLDivElement] fullscreenchange.html:75:5 22.942 EL (continued): ... and, is the HTML element fullscreen?: true fullscreenchange.html:77:4 22.943 EL (continued): ... and, is the PLAYER element fullscreen?: true fullscreenchange.html:78:4 ########## fullscreenchange.html:79:4 22.944 DOCUMENT fullscreenchange: There is at least one element in fullscreen mode. The current fullscreenElement is: [object HTMLDivElement] fullscreenchange.html:41:5 22.944 DOC (continued): ... and, here are ALL the current fullscreen elements:- fullscreenchange.html:46:4 22.945 [object HTMLHtmlElement] fullscreenchange.html:48:5 22.945 [object HTMLDivElement] fullscreenchange.html:48:5 22.946 DOC (continued): ... and, is the HTML element fullscreen?: true fullscreenchange.html:50:4 22.946 DOC (continued): ... and, is the PLAYER element fullscreen?: true fullscreenchange.html:51:4 ################################### ``` looks like it works as expected. I see that Chrome doesn't behave this way, but this is a browser bug. The spec says: > The :fullscreen pseudo-class must match any element element for which one of the following conditions is true: > * element’s fullscreen flag is set. > * element is a shadow host and the result of retargeting its node document’s fullscreen element against element is element. You should file bugs to browsers which are not doing the right thing. -- 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/70#issuecomment-469056816
Received on Sunday, 3 March 2019 19:46:27 UTC