Open Bug 1608140 Opened 5 years ago Updated 2 years ago

Extend the BoxQuads API with a scrollable-overflow CSSBoxType

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

People

(Reporter: pbro, Unassigned)

References

(Blocks 1 open bug)

Details

In DevTools, we show when elements have an overflow area, with a little [scrollable] badge inside of the inspector (see screenshot).
This is super useful when people are trying to debug unwanted scrollbars on their pages. It tells them where to start looking for problems.

We want to expand on this feature and make it even easier for people to debug this common problem. There are 2 things we want to do:

  • show where the scrollable area is in the page
  • list the elements that caused the overflow to occur.

This bug is about the former. And, while talking to Mats about it, he suggested the following, which would make it possible for devtools to achieve this:

Extend the BoxQuads API with a "scrollable-overflow" CSSBoxType (https://drafts.csswg.org/cssom-view/#the-geometryutils-interface).

Blocks: 1608143
No longer blocks: 1608143
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.