Skip to content

Should all values be exposed in CSS pixels or Physical Pixels? #124

@mmocny

Description

@mmocny

(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 units which 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.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions