Closed Bug 2014442 Opened 8 months ago Closed 7 months ago

Add UI for :open state

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

enhancement

Tracking

(relnote-firefox 150+, firefox150 fixed)

RESOLVED FIXED
150 Branch
Tracking Status
relnote-firefox --- 150+
firefox150 --- fixed

People

(Reporter: sebo, Assigned: sebo)

References

(Blocks 3 open bugs)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

There's a bunch of elements that support the :open pseudo-class like <dialog>, <details>, <input>, and <select>.

To allow debugging their styles when they are in open state, a toggle for that should be added to the :hov panel.

Sebastian

Priority: -- → P3
Depends on: 1936113

Not only does the :open pseudo-class get added, but it is also localed in a new 'Element-specific pseudo-classes` section. That section shows specific pseudo-classes that only apply to specific elements.

Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED
Blocks: 2019791
Attachment #9546305 - Attachment description: Bug 2014442 - [devtools] Added element-specific :open to pseudo-class locks. r=#devtools-reviewers,#fluent-reviewers,flod,nchevobbe → Bug 2014442 - [devtools] Added element-specific :open to pseudo-class locks. r=#devtools-reviewers,#fluent-reviewers,nchevobbe
Pushed by nchevobbe@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/411dca3abd83 https://hg.mozilla.org/integration/autoland/rev/4244750ab096 [devtools] Added element-specific :open to pseudo-class locks. r=flod,nchevobbe,devtools-reviewers,fluent-reviewers
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

I believe it's worth mentioning this in the release notes together with the change in bug 2017985. The wording is probably a little long. Feel free to shorten it.

[Why is this notable]: New DevTools feature
[Affects Firefox for Android]: no
[Suggested wording]: A new element-specific section has been added to the pseudo-class toggle pane including a toggle for the :open pseudo-class, which is only available for elements that have an open state like <dialog> elements. The existing toggle for the :visited pseudo-class was also moved there, as it only applies to <a> and <area> elements.
[Links (documentation, blog post, etc)]:
https://firefox-source-docs.mozilla.org/devtools-user/page_inspector/how_to/examine_and_edit_css/index.html#viewing-common-pseudo-classes

relnote-firefox: --- → ?
Keywords: dev-doc-needed

Tracking issue for MDN release note update https://github.com/mdn/content/issues/43561

QA Whiteboard: [qa-triage-done-c151/b150]

Added to Fx150 release notes, currently in beta.

Added to release notes on MDN https://github.com/mdn/content/pull/43841

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: