diff --git a/index.html b/index.html index e8d3828..d5fc14d 100644 --- a/index.html +++ b/index.html @@ -239,9 +239,9 @@
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 @@
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 @@
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.
-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 @@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: +
Returns null if lock is pending, if pointer is unlocked, + or if the target is not a + shadow-including descendant of the + context object. +
+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