Closed Bug 1076912 Opened 10 years ago Closed 10 years ago

[highlighter] Pick pseudo-elements from the page with the mouse

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 920142

People

(Reporter: pbro, Unassigned)

References

Details

bug 920141 adds support for ::before and ::after in the inspector markup-view, which is nice.
It would be even nicer if we could pick pseudo-elements directly with the mouse, when using the inspector's picker.

The element picker works by adding a mousemove event listener on the page. When pseudo-elements get hovered, the listener callback gets executed but the target is the element itself, not the children pseudo-element.

I guess one way to achieve this would be to check if the element has pseudo elements, and if yes, check if the mouse coordinates matches with their boxquads.

It might be slow, but worth investigating.
Depends on: 920141
Sounds identical to Nicks bug 920142.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.