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

Cumulative Layout Shift #386

Open
bdekoz opened this issue Jul 7, 2020 · 5 comments
Open

Cumulative Layout Shift #386

bdekoz opened this issue Jul 7, 2020 · 5 comments
Labels
team: Performance venue: W3C Specifications in W3C Working Groups

Comments

@bdekoz
Copy link

bdekoz commented Jul 7, 2020

Request for Mozilla Position on an Emerging Web Specification

  • Specification Title: Cumulative Layout Shift
  • Specification or proposal URL: https://web.dev/cls/
  • Caniuse.com URL (optional):
  • Bugzilla URL (optional):
  • Mozillians who can provide input (optional): @dholbert, @heycam

Other information

One of 3 metrics defined by Google's Web Vitals in 2020. See: https://web.dev/vitals/

This depends on the layout instability API, for which there is a separate issue #374.

More detailed specs of 'layout-shift-score' and links to canonical sources will be added as comments to this issue.

@marcoscaceres marcoscaceres added the venue: W3C Specifications in W3C Working Groups label Jul 7, 2020
@npm1
Copy link

npm1 commented Jul 8, 2020

To clarify, the specification would be https://wicg.github.io/layout-instability/ since CLS is not exposed directly but can be computed based on the layout shifts exposed by the Layout Instability API. We can add a section dedicated to CLS if it helps.

@dholbert
Copy link
Contributor

dholbert commented Jul 8, 2020

Duplicate of #374 ? (Oh, now I see "This depends on the layout instability API, for which there is a separate issue #374." So I guess not a dupe, but related.)

@bdekoz
Copy link
Author

bdekoz commented Jul 8, 2020

@npm1 yes, it would be helpful to have a section to CLS and how it's computed in the proposal, as editable text, just because that will clarify and guide future work.

@dholbert
Copy link
Contributor

dholbert commented Jul 8, 2020

[EDIT: I removed this comment and spun it off as WICG/layout-instability/issues/57 , "The spec disagrees with developer documentation about whether precise layout-shift values/thresholds should be relied on"]

@skobes-chromium
Copy link

In WICG/layout-instability#58, the spec for the Layout Instability API has been updated with further details in non-normative text about the definition of CLS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: Performance venue: W3C Specifications in W3C Working Groups
Projects
Status: Needs assignees
Development

No branches or pull requests

6 participants