Bug 163612

Summary: Web Inspector: CSS Autocompletion sometimes adds extra unexpected characters
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, joepeck, mattbaker, nvasilyev, timothy, vicki, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix
none
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2016-10-18 12:48:40 PDT
Summary:
CSS Autocompletion sometimes adds extra unexpected characters

Steps to Reproduce:
1. Inspect <body> on about:blank
2. Show Styles - Rules sidebar
3. Type "transform: translate(10px)"
4. Place cursor at "translate|(" and push Esc to force completions
  => Expected suggestions like: "transform: translateX(10px)"
  => Actual suggestions like: "transform: translateX() (10px)"
5. Type: "color: blue;"
6. Place cursor at "bl|ue" and push Esc to force completions
  => Expected no completions, or fancy suggestions for "bl" that account for the "ue" in a reasonable way
  => Actual result: "color: black ue;"

Notes:
This makes working in the style sidebar pretty frustrating for me.
Comment 1 Radar WebKit Bug Importer 2016-10-18 12:49:05 PDT
<rdar://problem/28829557>
Comment 2 Joseph Pecoraro 2016-10-18 12:50:00 PDT
Created attachment 291972 [details]
[PATCH] Proposed Fix
Comment 3 Joseph Pecoraro 2016-10-18 12:52:35 PDT
Created attachment 291974 [details]
[PATCH] Proposed Fix
Comment 4 Timothy Hatcher 2016-10-18 13:00:35 PDT
Comment on attachment 291974 [details]
[PATCH] Proposed Fix

Nice!
Comment 5 WebKit Commit Bot 2016-10-18 13:23:44 PDT
Comment on attachment 291974 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 291974

Committed r207481: <http://trac.webkit.org/changeset/207481>
Comment 6 WebKit Commit Bot 2016-10-18 13:23:48 PDT
All reviewed patches have been landed.  Closing bug.