Open Bug 1122970 Opened 11 years ago Updated 2 years ago

Inspecting pseudo-element selects originating element

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [btpp-backlog])

Test case: Right-click on the yellowo pseudo-element and choose 'Inspect Element' from the context menu at this page: data:text/html,<!DOCTYPE html><style type="text/css">p::before{content:"pseudo-element";margin-right:5px;background-color: yellow;}</style><p>text</p> You'll see that the <p> tag gets selected within the Inspector panel instead of the pseudo-element. Sebastian
That's because the right-click event used to open the menu doesn't have the pseudo-element as its target, but the parent element instead. This is similar to bug 1076912.
(In reply to Patrick Brosset [:pbrosset] [:patrick] from comment #1) > This is similar to bug 1076912. Bug 1076912 was closed as duplicate of bug 920142. Sebastian
See Also: → 920142
Inspector bug triage. Filter on CLIMBING SHOES.
Severity: minor → normal
Priority: -- → P3
Whiteboard: [btpp-backlog]
Product: Firefox → DevTools
Assignee: nobody → rcaliman
Status: NEW → ASSIGNED
Assignee: rcaliman → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.