Closed Bug 1258494 Opened 9 years ago Closed 7 years ago

Auto complete CSS custom property names

Categories

(DevTools :: Inspector: Rules, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1422635

People

(Reporter: pbro, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [btpp-fix-later])

Similarly to how text editors often offer variable name auto-completion, it would be useful if the rule-view auto-completed CSS variable names. Say you start typing "var(--" as a value of a property in the rule-view, it'd be nice if the rule-view then showed the usual auto-completion drop-down list (which we already have for property names and values in certain cases), populated with matching variable names if they are in scope. Getting the list of variable names to populate the drop-down shouldn't be too hard since we only need to start looking at the current rule and then walk up the parent rules. This is exactly what the rule-view already does when it displays the list of rules for a given element. The hard(er) part will be making the suggestion drop-down appear at the right time and place.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.