Show CSS values found within the page first in the values suggestions list

NEW
Unassigned

Status

DevTools
Style Editor
P3
enhancement
3 years ago
12 days ago

People

(Reporter: danemacmillan, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
By smart, I mean to say the following, which was originally posted in a bug 1097516 about the color suggestions popup:

This bug got me thinking: what if the color suggestions were prioritized? By prioritized, I mean to say that any and all colors defined in the applied stylesheet(s) will be suggested first, and then all the generic, alphabetically-ordered color names will be listed afterwards. That would be badass. Not to mention, when debugging a UI, I do not typically care about every color under the rainbow; I just care about the colors defined in the UI's color palette. If I have not explicitly defined `aliceblue`, `antiquewhite`, `aqua`, etc, I especially do not want to stumble through the irrelevant suggestions. Who even uses color names anymore?
Comment hidden (off-topic)
(Reporter)

Comment 2

3 years ago
Comment 1 was meant for a completely different post. I would delete it if I could.
You can tag it with off-topic to hide it by default, which I have done for you.
I generalized the summary, so that it covers more than just color values, e.g. font families could also be prioritized. And I made the summary more precise in regard of what 'smart' means.

Sebastian
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Smart color suggestions when editing CSS → Show CSS values found within the page first in the values suggestions list
See Also: → bug 1097516
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3

Updated

12 days ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.