-
Notifications
You must be signed in to change notification settings - Fork 29
Editorial: Fix pre-lock conditions algorithm structure #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
Conversation
Move pre-lock conditions definition after algorithm steps and integrate as optional step 4 for clarity. Addresses feedback about confusing interleaved MUST/MAY structure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Clarifies the Screen Orientation locking algorithm by isolating and formalizing “pre-lock conditions” to improve readability and normative flow.
- Moves the “pre-lock conditions” definition out of the interleaved intro paragraph.
- Adds an explicit optional algorithm step that rejects when pre-lock conditions are required but unmet.
- Rewords and links the definition section to relevant interactions (app manifest and fullscreen).
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
<li>Optionally, if the [=user agent=] requires |document| and its | ||
associated [=Document/browsing context=] to meet [=pre-lock | ||
conditions=] in order to [=lock the screen orientation=], and those | ||
conditions are not met, return [=a promise rejected with=] a | ||
{{"NotSupportedError"}} {{DOMException}} and abort these steps. | ||
</li> |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The leading “Optionally,” makes the requirement ambiguous: if a user agent has chosen to require pre-lock conditions, the rejection when they are not met should not itself be optional. Suggest removing “Optionally,” so the step reads “If the [=user agent=] requires … and those conditions are not met, return …”.
Copilot uses AI. Check for mistakes.
<dfn>Pre-lock conditions</dfn> are optional requirements that a | ||
[=user agent=] MAY impose before allowing screen orientation locking. | ||
Common pre-lock conditions include requiring the document to be in | ||
fullscreen mode or be part of an installed web application. See |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve grammatical parallelism by changing “or be part of” to “or being part of”.
fullscreen mode or be part of an installed web application. See | |
fullscreen mode or being part of an installed web application. See |
Copilot uses AI. Check for mistakes.
</li> | ||
</ol> | ||
<p> | ||
<dfn>Pre-lock conditions</dfn> are optional requirements that a |
Copilot
AI
Oct 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] For consistency with references like [=pre-lock conditions=] and typical Bikeshed practice, consider using lowercase in the : pre-lock conditions. This keeps the term’s canonical form aligned with link text and prior usage.
<dfn>Pre-lock conditions</dfn> are optional requirements that a | |
<dfn>pre-lock conditions</dfn> are optional requirements that a |
Copilot uses AI. Check for mistakes.
This makes it super clear to me, thanks! |
Move pre-lock conditions definition after algorithm steps and integrate as optional step 4 for clarity. Addresses feedback about confusing interleaved MUST/MAY structure.
Closes #261
Preview | Diff