Re: [web-nfc] Switch to HTML page visibility refs (#627)

> This PR is an attempt to address #626 as the Page Visibility spec is moving to the HTML spec.
> 
> @noamr What do you think?
> 
> [Preview](https://pr-preview.s3.amazonaws.com/beaufortfrancois/web-nfc/pull/627.html) | [Diff](https://pr-preview.s3.amazonaws.com/w3c/web-nfc/627/760581a...beaufortfrancois:8536386.html)

Can't you use `{{Document/visibilityState}}` instead of `data-cite`?

In addition, the heads up was about this: https://w3c.github.io/web-nfc/#handling-visibility-change.
It "monkey patches" the HTML spec by saying that "X and Y happens when the visibility changes".
The proposal was to make a call from the HTML spec to this spec [here](https://html.spec.whatwg.org/#page-visibility-change-steps), which would allow specifying the order between reactions to visibility change. 

-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/web-nfc/pull/627#issuecomment-961644976 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 5 November 2021 05:53:48 UTC