RESOLVED FIXED179585
Web Inspector: Styles Redesign: clicking on the white space after the property sometimes places a blank property at the wrong index
https://bugs.webkit.org/show_bug.cgi?id=179585
Summary Web Inspector: Styles Redesign: clicking on the white space after the propert...
Nikita Vasilyev
Reported 2017-11-11 18:59:49 PST
Created attachment 326702 [details] [Animated GIF] Bug Clicking on a property with index=N should add a blank property at N+1. Instead, it sometimes adds it at N+2.
Attachments
[Animated GIF] Bug (77.31 KB, image/gif)
2017-11-11 18:59 PST, Nikita Vasilyev
no flags
[Animated GIF] Indices don't get updated (77.91 KB, image/gif)
2018-01-15 16:05 PST, Nikita Vasilyev
no flags
Patch (1.58 KB, patch)
2018-01-15 16:23 PST, Nikita Vasilyev
no flags
[Animated GIF] With patch applied (63.20 KB, image/gif)
2018-01-15 16:24 PST, Nikita Vasilyev
no flags
Radar WebKit Bug Importer
Comment 1 2017-11-11 19:00:06 PST
Nikita Vasilyev
Comment 2 2018-01-15 16:05:13 PST
Created attachment 331359 [details] [Animated GIF] Indices don't get updated I added this CSS for debugging: .spreadsheet-style-declaration-editor .property[data-property-index]::before { content: attr(data-property-index)': '; color: red; } On the attached animated GIF you can see that the indices don't get updated after a blank property is discarded.
Nikita Vasilyev
Comment 3 2018-01-15 16:23:14 PST
Nikita Vasilyev
Comment 4 2018-01-15 16:24:42 PST
Created attachment 331363 [details] [Animated GIF] With patch applied With patch applied and the debug CSS added.
Joseph Pecoraro
Comment 5 2018-01-16 12:19:30 PST
Comment on attachment 331362 [details] Patch r=me
WebKit Commit Bot
Comment 6 2018-01-16 12:23:16 PST
Comment on attachment 331362 [details] Patch Clearing flags on attachment: 331362 Committed r226994: <https://trac.webkit.org/changeset/226994>
WebKit Commit Bot
Comment 7 2018-01-16 12:23:18 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.