Values in CSS variables autocomplete are cropped
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(firefox61 unaffected, firefox62 unaffected, firefox63 affected)
| Tracking | Status | |
|---|---|---|
| firefox61 | --- | unaffected |
| firefox62 | --- | unaffected |
| firefox63 | --- | affected |
People
(Reporter: jdescottes, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Updated•7 years ago
|
Comment 1•6 years ago
|
||
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.
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Looks the same issue as Bug 1621882, thanks for working on that Razvan :)
Updated•5 years ago
|
Updated•3 years ago
|
Comment 3•2 years ago
|
||
Looks fixed now (maybe by Bug 1582400 ?)
Description
•