Closed Bug 1488258 Opened 7 years ago Closed 2 years ago

Values in CSS variables autocomplete are cropped

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(firefox61 unaffected, firefox62 unaffected, firefox63 affected)

RESOLVED WORKSFORME
Tracking Status
firefox61 --- unaffected
firefox62 --- unaffected
firefox63 --- affected

People

(Reporter: jdescottes, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

STRs: - go to about:newtab (or any page that has css variable) - open inspector - edit any CSS rule value - type `var(--` ER: Values should be fully visible AR: Values are slightly cropped. This doesn't happen in 62, so regression from 63.

Set the autocomplete list width to the maximum width used by its content (longest suggestion), but constrain it to the DevTools window viewport width. Skip computing it in JS.
Remove explicit width: 100% from the autocomplete item. This will fix the issue with cut-off swatches when suggesting CSS variables with colors. Alternatively, we could have kept the explicit width, but needed to set box-sizing: border-box to account for the swatch element dimensions from adding to the 100%).

The autocomplete list is used in a few parts of the DevTools (CSS Rules view, Markup view, Console, etc.) Please consider if these changes risk breaking the list elsewhere.

Assignee: nobody → rcaliman
Status: NEW → ASSIGNED

Looks the same issue as Bug 1621882, thanks for working on that Razvan :)

Assignee: rcaliman → nobody
Status: ASSIGNED → NEW
Severity: normal → S3

Looks fixed now (maybe by Bug 1582400 ?)

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: