Skip to content

[cssom-view] Needs more details for offsetWidth and offsetHeight #6588

@kojiishi

Description

@kojiishi

The offsetWidth spec:

  1. Says "the first CSS layout box" but great if we can define what the "first" means more clearly.
  2. Isn't as clear what to do when the width or height is zero as the getBoundingClientRect spec is.

From a few quick testing for an inline box:

  • When the inline box is line-fragmented, all 3 impls include all fragments.
  • When the inline box contains an in-flow block-level box, Gecko includes it and also inline boxes after the block-level box, while Blink/WebKit ignore them. Blink may try to change this though.
  • WebKit includes width of boxes whose height is zero, while Blink/Gecko does not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions