- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 28 Sep 2016 01:57:12 -0700
- To: whatwg/fullscreen <fullscreen@noreply.github.com>
- Message-ID: <whatwg/fullscreen/pull/54/review/1892433@github.com>
annevk commented on this pull request.
> <p>The <dfn attribute for=Document><code>fullscreen</code></dfn> attribute's getter must return
false if <a>context object</a>'s <a>fullscreen element</a> is null, and true otherwise.
-<p class=note>Use
-<a attribute for=Document lt=fullscreenElement><code>document.fullscreenElement</code></a> instead.
+<p class=note>Use {{DocumentOrShadowRoot/fullscreenElement}} instead.
+
+<p>The
+<dfn attribute for=DocumentOrShadowRoot id=dom-document-fullscreenelement><code>fullscreenElement</code></dfn>
+attribute's getter must run the following steps and return the result accordingly.
+<ol>
+ <li>If the <a>context object</a> is a <a>shadow root</a> and its <a for=DocumentFragment>host</a>
+ is not <a>connected</a>, return null.</li>
+ <li>Run <a>retargeting</a> <a>fullscreen element</a> against the <a>context object</a>.
+ <li>If the result of the previous step and the <a>context object</a> are in the same tree,
+ return the result, otherwise return null.
then return _candidate_*
And instead of the otherwise step add a new `<li><p>Return null.`
--
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/pull/54#pullrequestreview-1892433
Received on Wednesday, 28 September 2016 08:57:41 UTC