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)
DevTools
Inspector
Tracking
(Not tracked)
NEW
People
(Reporter: TYLin, Unassigned)
References
Details
Attachments
(3 files)
What were you doing?
- Load the attached testcase.
- 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.
Reporter | ||
Comment 1•1 year ago
|
||
Reporter | ||
Comment 2•1 year ago
|
||
Comment 3•1 year ago
|
||
It looks like we compute this information using getBoundingClientRect
while Chrome are using clientWidth
.
Comment 4•1 year ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•