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 InspectorAssignee: 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
Reported 2017-09-22 00:27:11 PDT
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
Note You need to log in before you can comment on or make changes to this bug.