Bug 237679

Summary: Web Inspector: Styles Panel: CSS variable completions should be provided even without a query
Product: WebKit Reporter: Razvan Caliman <rcaliman>
Component: Web InspectorAssignee: Razvan Caliman <rcaliman>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, hi, inspector-bugzilla-changes, pangle, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch 1.0 none

Description Razvan Caliman 2022-03-09 15:03:20 PST
# Steps to Reproduce:

- Ensure "Use fuzzy matching for completion suggestions" is enabled in Settings > Experimental
- Inspect https://webkit.org
- In the Styles panel, add a new CSS declaration: `color: var(` (notice the missing value for a variable name)

# Result

No completion suggestions provided.

# Expected results

In the absence of a query string, a list of all applicable CSS variable names should be provided. 
This is the behavior for classic prefix autocompletion. It's a regression when using fuzzy matching.
Comment 1 Radar WebKit Bug Importer 2022-03-09 15:03:54 PST
<rdar://problem/90059628>
Comment 2 Razvan Caliman 2022-03-09 15:10:53 PST
Created attachment 454291 [details]
Patch 1.0
Comment 3 Patrick Angle 2022-03-09 16:24:27 PST
Comment on attachment 454291 [details]
Patch 1.0

r=me
Comment 4 EWS 2022-03-10 04:05:59 PST
Committed r291102 (248264@main): <https://commits.webkit.org/248264@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454291 [details].