Skip to content
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

Add an example computing CLS including iframe #83

Open
npm1 opened this issue Oct 8, 2020 · 1 comment
Open

Add an example computing CLS including iframe #83

npm1 opened this issue Oct 8, 2020 · 1 comment

Comments

@npm1
Copy link
Collaborator

npm1 commented Oct 8, 2020

The CLS is defined in the non-normative section and it's not super clear to me how you compute it. In particular, the subframe weighting factor could change over time? (i.e. should it be computed on every frame, or how does one account for an iframe that shifts or moves after user interaction and hence becomes more/less visible within the viewport).

@skobes-chromium
Copy link
Collaborator

Chrome recomputes weighting factor on every frame. Agree an example would help here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants