WICG / layout-instability

A proposal for a Layout Instability specification
https://wicg.github.io/layout-instability/
Other
159 stars 27 forks source link

Add an example computing CLS including iframe #83

Open npm1 opened 4 years ago

npm1 commented 4 years ago

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 commented 4 years ago

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