Re: [w3c/screen-orientation] Add hidden document monitoring in parallel orientation lock steps (PR #272)

@marcoscaceres commented on this pull request.



> @@ -703,6 +703,11 @@ <h2>
             not `null`, [=reject and nullify the current lock promise=] of
             |document| with an {{"AbortError"}} and abort these steps.
             </li>
+            <li>If |document|'s [=Document/visibility state=] becomes "hidden", and

The [common safety checks](https://w3c.github.io/screen-orientation/#common-safety-checks) already reject a hidden document at the start of lock() and unlock(). This step now also covers a document that is already hidden when the steps that run in parallel begin.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/pull/272#discussion_r4734544602
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/screen-orientation/pull/272/review/6106365435@github.com>

Received on Monday, 30 November 2026 02:54:27 UTC