-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
(Context: https://crbug.com/399058544)
Should Layout Shift entry data, especially the Attribution list, be provided in CSS Pixels? In Chromium at least it seems currently to be reported in physical pixels.
Food for thought:
- Other web platform apis and performance timeline apis (almost?) always default to CSS pixels.
- Existing spec is very vague but does refer to
pixel unitswhich are "CSS pixels" I think. - The actual "value" of a layout shift entry is unit-less anyway, because it is a fraction of two areas, so units cancel out. Either option will yield the same result.
I tried to read if the current spec is explicit about what is expected here.
- https://wicg.github.io/layout-instability/#sec-layout-shift-attribution
- https://wicg.github.io/layout-instability/#create-the-attribution
- https://wicg.github.io/layout-instability/#sec-basic-concepts
And the only explicit reference I see is to "pixel units" (https://www.w3.org/TR/css-values-4) which my reading suggests should be "CSS Pixels" -- so perhaps the spec already intends for this behaviour.
Metadata
Metadata
Assignees
Labels
No labels