Closed Bug 2030731 Opened 4 months ago Closed 3 months ago

Display container-name in @container tooltip

Categories

(DevTools :: Inspector: Rules, enhancement)

enhancement

Tracking

(firefox151 fixed)

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

When the container has a container-name different than none, we should display it

We now show the container-name property (when it's not none), in the tooltip
that is displayed on @container condition tooltip.
Along this change, we also show the tooltip when the condition does not match
any container element (e.g. there's no parent element with the specified container-name
value), with a label indicating that there's no container with such name.
From the server, that means that instead of returning a vague unmatched property,
we know pass a hasContainer property that we can use to include the "open in inspector"
icon in the condition.
The existing test for container queries is updated to assert those updates.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0960deadc3d5 https://hg.mozilla.org/integration/autoland/rev/4eee69abdc42 [devtools] Show container name in @container tooltip. r=devtools-reviewers,fluent-reviewers,bolsson,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: