Open Bug 1817514 Opened 1 year ago Updated 1 year ago

DevTools displays wrong content-size for elements in multi-column layout

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: TYLin, Unassigned)

References

Details

Attachments

(3 files)

What were you doing?

  1. Load the attached testcase.
  2. Open DevTools, and inspect the element under the multi-column container.

What happened?

See "Layout" panel -> "Box Model". The element's content-size is 140x190, which seems to be the bounding box of the element across all columns.

What should have happened?

The element's content-size should be 40x590, where its width 40px is 50px column width minus border-left 5px and border-right 5px. Google Chrome's DevTools displays the correct size.

It looks like we compute this information using getBoundingClientRect while Chrome are using clientWidth.

Discussed with the team, since the 140px includes borders (and potentially margins...), the representation from Chrome seems more accurate but that's still not a very helpful representation of such an element. Will file a followup to investigate improvements.

Severity: -- → S3
Priority: -- → P3
Duplicate of this bug: 1635265
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: