Bug 237679 - Web Inspector: Styles Panel: CSS variable completions should be provided even without a query
Summary: Web Inspector: Styles Panel: CSS variable completions should be provided even...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Razvan Caliman
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-09 15:03 PST by Razvan Caliman
Modified: 2022-03-10 04:06 PST (History)
5 users (show)

See Also:


Attachments
Patch 1.0 (1.70 KB, patch)
2022-03-09 15:10 PST, Razvan Caliman
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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].