Open Bug 1382452 Opened 7 years ago Updated 10 months ago

Allow snapping the Measuring Tool area to page elements

Categories

(DevTools :: Inspector, enhancement, P5)

enhancement

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

To make measuring easier there should be a way to let the Measuring Tool area snap to the borders of the elements on the page. This could be achieved by holding down a modifier like Ctrl while sizing or dragging the area.

When the area is snapped at some edge or point, there should be an indication for it.

Sebastian
Component: Developer Tools: Inspector → Developer Tools: Measuring Tool
Product: Firefox → DevTools
Priority: P3 → P5

I would ideally like to be able to snap to various things:

  • edges of lineboxes
  • borders (inner and outer edges)
  • content boxes (if that's the right phrase: I mean the inside of the padding)
  • (probably the tricky one?) changes in colour which aren't strictly to do with DOM layout, like a colour change in a background image, or where the painted text actually starts (as opposed to where the linebox starts -- there might be extra space there due to font metrics mumbojumbo).
  • probably more?
Component: Inspector: Highlighters → Inspector
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.