diff --git a/index.html b/index.html index e8d3828..d5fc14d 100644 --- a/index.html +++ b/index.html @@ -239,9 +239,9 @@

Extensions to the Element Interface

active sandboxing flag set does not have the sandboxed pointer lock browsing context flag set. -

Pointer lock must succeed only if the target is - in - the +

Pointer lock must succeed only if the target's + shadow-including root + is the active document of a browsing context @@ -275,12 +275,15 @@

Extensions to the Element Interface

for a subsequent requestPointerLock.

-

If any element (including this one) in the same document - is already locked (or pending lock) the pointer - lock target must be updated to this element and a - pointerlockchange event sent.

+

If any element (including this one), whose + shadow-including root + is same as this element's + shadow-including root, + is already locked (or pending lock) the pointer lock target must be updated + to this element and a pointerlockchange event sent.

-

If any element in another document is already locked the request +

If any element, whose shadow-including root is a different document, + is already locked the request must fail and a pointerlockerror event be sent.

Once in the locked state the user agent must fire all relevant @@ -322,21 +325,12 @@

Extensions to the Document Interface

for pointerlockerror events.

-
readonly attribute Element? pointerLockElement
-
- - -

Returns the element set as the target for mouse events - while the pointer is locked. Null if lock is pending, pointer is - unlocked, or if the target is in another document.

-
-
void exitPointerLock ()

Initiates an exit from pointer lock state if currently locked - to a target in this document, + to a target whose shadow-including root is this document, and sends a pointerlockchange event when the lock state has been exited.

@@ -348,6 +342,41 @@

Extensions to the Document Interface

+
+

Extensions to the DocumentOrShadowRoot Mixin

+ +
+
readonly attribute Element? pointerLockElement
+
+ + +

If the element, which is set as the target for mouse events while the pointer is + locked, is a + shadow-including descendant of the + context object, + return the result of the following algorithm: +

    +
  1. Let target be the target for mouse events while the pointer is locked. +
  2. If target is in the same tree as the + context object, + let adjusted-target be target
  3. +
  4. Otherwise: let adjusted-target be the shadow host which is a + shadow-including ancestor of + target and is in the same tree as the + context object.
  5. +
  6. Return adjusted-target +
+

+ +

Returns null if lock is pending, if pointer is unlocked, + or if the target is not a + shadow-including descendant of the + context object. +

+
+
+
+

Extensions to the MouseEvent Interface

@@ -430,7 +459,8 @@

Requirements

[[FULLSCREEN]].

Pointer lock must be exited if the - target is removed from its document, or the user agent, + target is disconnected, + or the user agent, window, or tab loses focus. Moving focus between elements of active documents, including between