w3c / device-posture

Device Posture API
https://www.w3.org/TR/device-posture/
Other
33 stars 21 forks source link

Modernize algorithms in "Algorithm" section #120

Closed rakuco closed 8 months ago

rakuco commented 8 months ago

The original main goal was to give a name to the existing algorithm that used to run in the "next animation frame task" so that it could be referenced in the upcoming WebDriver section, but "animation frame task" as a concept did not exist, and one thing led to another and the final change includes a better version of the original algorithms, but without any user-visible changes.

This change borrows a lot of ideas from the Screen Orientation spec as of its 2023-08-09 Editor's Draft.

Most important changes:

While here: the definition of the onchange attribute was updated to mention the current terms defined in the HTML spec, along with a proper <dfn> for the event handler event type.

The language and the references used in the text have also been updated: we no longer deal with browsing contexts, but with navigables; the PAGE-VISIBILITY spec is no longer treated as a separate specification, as it was merged into HTML a few years ago.

Related to #104. Fixes #95.


Preview | Diff