From 766dc872bcf26c012549f7bdfde21c46bebba40c Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 15 Jul 2015 12:46:53 +0200 Subject: [PATCH] Remove hierarchy restrictions and introduce top layer add/remove. Fixes https://github.com/whatwg/fullscreen/issues/6#issuecomment-121295503 --- Overview.html | 26 ++++++++++++++------------ Overview.src.html | 24 +++++++++++++----------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/Overview.html b/Overview.html index fb4d337..3b00869 100644 --- a/Overview.html +++ b/Overview.html @@ -9,7 +9,7 @@

Fullscreen API

-

Living Standard — Last Updated 13 July 2015

+

Living Standard — Last Updated 15 July 2015

@@ -130,12 +130,14 @@

3 Model

whose fullscreen flag is set, if any, and null otherwise.

To fullscreen an element within a document, set -the element's fullscreen flag, and add, or move if already -present, it on top of document's top layer. +the element's fullscreen flag and +add it to document's +top layer.

To unfullscreen an element within a document, -unset the element's fullscreen flag, and remove it from -document's top layer. +unset the element's fullscreen flag and +remove it from document's +top layer.

To unfullscreen a document, unfullscreen all @@ -248,13 +250,6 @@

4 API

fullscreen enabled flag is set. -
  • element's - node document's - fullscreen element is null, or is an - inclusive ancestor - of element. - -

  • element has no ancestor element whose @@ -580,6 +575,13 @@

    6.1 New stacking layertop is zero. +

    To add an element to a +top layer, add, or move if already present, element on top of +top layer. + +

    To remove an element from a +top layer, remove element from top layer. +

    6.2 ::backdrop pseudo-element

    diff --git a/Overview.src.html b/Overview.src.html index 6716033..0b74afa 100644 --- a/Overview.src.html +++ b/Overview.src.html @@ -115,12 +115,14 @@

    Model

    whose fullscreen flag is set, if any, and null otherwise.

    To fullscreen an element within a document, set -the element's fullscreen flag, and add, or move if already -present, it on top of document's top layer. +the element's fullscreen flag and +add it to document's +top layer.

    To unfullscreen an element within a document, -unset the element's fullscreen flag, and remove it from -document's top layer. +unset the element's fullscreen flag and +remove it from document's +top layer.

    To unfullscreen a document, unfullscreen all @@ -233,13 +235,6 @@

    API

    fullscreen enabled flag is set. -
  • element's - node document's - fullscreen element is null, or is an - inclusive ancestor - of element. - -

  • element has no ancestor element whose @@ -565,6 +560,13 @@

    New stacking layer

    top is zero. +

    To add an element to a +top layer, add, or move if already present, element on top of +top layer. + +

    To remove an element from a +top layer, remove element from top layer. +

    ::backdrop pseudo-element