WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 180791
Web Inspector: Styles Redesign: clicking CSS property or selector should always select its text
https://bugs.webkit.org/show_bug.cgi?id=180791
Summary
Web Inspector: Styles Redesign: clicking CSS property or selector should alwa...
Nikita Vasilyev
Reported
2017-12-13 18:29:03 PST
Created
attachment 329304
[details]
[Animated GIF] Bug Clicking on CSS selector, property name or value sometimes selects the text and sometimes just places text caret where it was clicked. It should always select the text.
Attachments
[Animated GIF] Bug
(100.79 KB, image/gif)
2017-12-13 18:29 PST
,
Nikita Vasilyev
no flags
Details
Patch
(6.65 KB, patch)
2019-02-21 14:30 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-12-13 18:29:15 PST
<
rdar://problem/36038366
>
Nikita Vasilyev
Comment 2
2018-01-06 16:06:33 PST
Currently, the editing starts on mousedown. This matches the behavior of a textarea element, contentEditable, etc. In Chrome DevTools and Firefox DevTools, editing starts on mouseup. This makes copying several CSS properties easier: clicking on a CSS property doesn't immediately start editing. Clicking on a property name and dragging the cursor down can select text of several properties. Perhaps starting editing on mouseup is the desirable behavior for most cases, and we should do this, too.
Devin Rousso
Comment 3
2019-02-21 14:30:01 PST
Created
attachment 362649
[details]
Patch
Nikita Vasilyev
Comment 4
2019-02-21 15:31:41 PST
I've been working[1] towards using SpreadsheetTextField for CSS selectors and getting rid of SpreadsheetSelectorField entirely. You're welcome to write a patch to use SpreadsheetTextField for CSS selectors. I'd be happy to review it. 1:
Bug 194724
- Web Inspector: Move CSS completion logic from SpreadsheetTextField to SpreadsheetStyleProperty
Blaze Burg
Comment 5
2019-02-22 14:49:19 PST
Comment on
attachment 362649
[details]
Patch r=me
WebKit Commit Bot
Comment 6
2019-02-22 20:08:04 PST
Comment on
attachment 362649
[details]
Patch Clearing flags on attachment: 362649 Committed
r241980
: <
https://trac.webkit.org/changeset/241980
>
WebKit Commit Bot
Comment 7
2019-02-22 20:08:05 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug