Description

This test validates that the pointer properly be locked in a DOM element, and exit afterwards.


Manual Test Steps:

  1. Click the "Lock Target" to test if requestPointerLock() and exitPointerLock() causing a pointerlockchange event.
  2. Confirm the lock with a user action (in Firefox).
  3. Exit the pointer lock with a user action (usually 'esc'), to test if the cursor is at the same location.
  4. Click the "ReEnterLock" to test that no engagement gesture is required to reenter pointer lock if pointer lock is exited via exitPointerLock.
  5. Exit the pointer lock with a user action (usually 'esc').
  6. Click the "RepeatLock" to validate that each requestPointerLock() will fire a pointerlockchange event.
  7. Exit the pointer lock with a user action (usually 'esc').


Waiting... Please click the "Lock Target" button.
Target