From e64379717b934682d7d7fd6be3f971ec9fa348ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Mon, 22 May 2017 15:10:50 +0200 Subject: [PATCH 1/4] Reinstate the hierarchy restrictions This reinstates parts of the fullscreen element ready check removed in commit 766dc872bcf26c012549f7bdfde21c46bebba40c and commit 9592913bbeca3a9d029274f310eb27ad8003622c, with some simplification of the iframe ancestor check. --- fullscreen.bs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fullscreen.bs b/fullscreen.bs index bd54a2c..12fb3c5 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -182,6 +182,12 @@ if all of the following are true, and false otherwise:

The requestFullscreen() method, when invoked, must run From 81465e97c2399e916460f2b1b6ff678ebaf86102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Tue, 23 May 2017 11:31:42 +0200 Subject: [PATCH 3/4] Make dialog.requestFullscreen() an error --- fullscreen.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fullscreen.bs b/fullscreen.bs index d4f9f1f..714b918 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -223,6 +223,8 @@ these steps: MathML math element. [[!SVG]] [[!MATHML]] +

  • pending is not a <{dialog}> element. +

  • The fullscreen element ready check for pending returns true.

  • Fullscreen is supported. From fb22071e466c83884d46c71b14d8a0ffcbd4f82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Wed, 24 May 2017 11:19:03 +0200 Subject: [PATCH 4/4] In #top-layer-add, assert that the element isn't already present --- fullscreen.bs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/fullscreen.bs b/fullscreen.bs index 714b918..2b4359c 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -532,12 +532,14 @@ following characteristics: right, and top is zero. -

    To add an element to a top layer, -remove it from top layer and then append it to -top layer. +

    To add an element to a top layer, run +these steps: + +

      +
    1. Assert: top layer does not contain element. -

      In other words, element is moved to the end of top layer if it -is already present. +

    2. Append element to top layer. +

    ::backdrop pseudo-element