Closed Bug 1617608 Opened 4 years ago Closed 3 years ago

Allow devtools to toggle the focus-visible pseudo-class.

Categories

(DevTools :: Inspector, task, P3)

task

Tracking

(firefox85 fixed)

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

In bug 1617600 I'm prototyping the :focus-visible pseudo-class. Developers should be able to toggle/emulate it just like :focus.

Priority: -- → P3

The number of pseudo-class toggles is growing in the Rules panel. The current behavior is for them to wrap to a new line. But as the number grows, it's worth considering whether this UI is still appropriate (it may be sufficient and we can leave it as-is). Pinging Victoria for a check.

Flags: needinfo?(victoria)

Sorry for the long delay! Didn't mean to block this.

Yes, I think wrapping them to the new line is totally fine for landing this patch.

I'll file a separate bug about potentially lining it up in 3 columns like this

[] hover      [] focus       [] active
[] visited    [] focus-within
Flags: needinfo?(victoria)

For now use the prefixed pseudo-class. Once we ship the unprefixed
version (:focus-visible) we should rename this.

Note that these map to the same value, so using :-moz-focusring also
changes :focus-visible when enabled.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Attachment #9188041 - Attachment description: Bug 1617608 - Allow toggling :-moz-focusring from inspector. r=rcaliman → Bug 1617608 - Allow toggling :focus-visible from inspector. r=rcaliman
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1103b268bc03
Allow toggling :focus-visible from inspector. r=rcaliman
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch

Documentation for this feature (for the FF85 release) is provided in https://github.com/mdn/content/pull/759 (see also https://github.com/mdn/content/issues/296).

Essentially it just updates the existing section(s) and images on toggling pseudo classes to include the new class.

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

Attachment

General

Created:
Updated:
Size: