Bug 177347
| Summary: | Web Inspector: Autocompletion suggestions for CSS variables shouldn't show outside definitions and var() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | inspector-bugzilla-changes |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=177264 | ||
Devin Rousso
Currently, we always add any variable completions to the overall list, so long as they start with the same prefix as the current token.
margin: --|[text-color-gray-medium];
We should only be adding variable completions in two cases:
1) inside `var()` functions
margin: var(|[--text-color-gray-medium]);
2) when we are defining a variable
--|[text-color-gray-medium]: ...;
NOTES:
| is the cursor
[...] represents the completion hint
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |