RESOLVED FIXED 205033
Web Inspector: REGRESSION(r253167): Elements: class list toggle doesn't stay sticky to the bottom of the sidebar
https://bugs.webkit.org/show_bug.cgi?id=205033
Summary Web Inspector: REGRESSION(r253167): Elements: class list toggle doesn't stay ...
Devin Rousso
Reported 2019-12-09 16:05:16 PST
Created attachment 385200 [details] [Image] Screenshot of issue .
Attachments
[Image] Screenshot of issue (62.51 KB, image/png)
2019-12-09 16:05 PST, Devin Rousso
no flags
Patch (2.33 KB, patch)
2019-12-09 16:09 PST, Devin Rousso
no flags
Patch (1.29 KB, patch)
2019-12-09 17:05 PST, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-12-09 16:09:38 PST
Devin Rousso
Comment 2 2019-12-09 16:10:34 PST
*** Bug 205031 has been marked as a duplicate of this bug. ***
Nikita Vasilyev
Comment 3 2019-12-09 16:48:27 PST
Comment on attachment 385202 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385202&action=review > Source/WebInspectorUI/ChangeLog:15 > + * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.css: > + (.spreadsheet-css-declaration:nth-last-child(n of .spreadsheet-css-declaration)): Added. > + Drive-by: remove the bottom border from the last section since there's a top border on both > + the class list toggle area and the filter bar. That's not what it does. It removes the border after every section. I don't think we should remove this subtle 0.5px border for the last section. The background of the panel is different from the section background — I don't think it looks good without the border.
Devin Rousso
Comment 4 2019-12-09 16:56:50 PST
Comment on attachment 385202 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385202&action=review >> Source/WebInspectorUI/ChangeLog:15 >> + the class list toggle area and the filter bar. > > That's not what it does. It removes the border after every section. > > I don't think we should remove this subtle 0.5px border for the last section. The background of the panel is different from the section background — I don't think it looks good without the border. I suppose. I was trying to avoid a double-border when the content of the sidebar is scrolled all the way to the bottom. I'll think of other alternatives. > Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.css:37 > +.spreadsheet-css-declaration:nth-last-child(n of .spreadsheet-css-declaration) { Ah, whoops. I meant to use `1` instead of `n`.
Nikita Vasilyev
Comment 5 2019-12-09 16:57:50 PST
Comment on attachment 385202 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385202&action=review >> Source/WebInspectorUI/ChangeLog:15 >> + the class list toggle area and the filter bar. > > That's not what it does. It removes the border after every section. > > I don't think we should remove this subtle 0.5px border for the last section. The background of the panel is different from the section background — I don't think it looks good without the border. (Also, I had to read MDN to undestand what this selector is supposed to do. It seems like this could be `.spreadsheet-css-declaration:last-of-type`.)
Devin Rousso
Comment 6 2019-12-09 17:05:50 PST
Nikita Vasilyev
Comment 7 2019-12-09 17:06:01 PST
Comment on attachment 385202 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385202&action=review >>>> Source/WebInspectorUI/ChangeLog:15 >>>> + the class list toggle area and the filter bar. >>> >>> That's not what it does. It removes the border after every section. >>> >>> I don't think we should remove this subtle 0.5px border for the last section. The background of the panel is different from the section background — I don't think it looks good without the border. >> >> I suppose. I was trying to avoid a double-border when the content of the sidebar is scrolled all the way to the bottom. I'll think of other alternatives. > > (Also, I had to read MDN to undestand what this selector is supposed to do. It seems like this could be `.spreadsheet-css-declaration:last-of-type`.) I agree that we shouldn't have a double-border when scrolled all the way to the bottom. It didn't have double borders when we used absolute positioning: .sidebar > .panel.details.css-style > .content.has-filter-bar { bottom: calc(var(--navigation-bar-height) - 1px); }
Nikita Vasilyev
Comment 8 2019-12-09 17:06:55 PST
Comment on attachment 385213 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385213&action=review > Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.css:27 > + flex-grow: 1; This certanly fixes the regression.
Blaze Burg
Comment 9 2019-12-10 09:52:45 PST
Comment on attachment 385213 [details] Patch r=me
WebKit Commit Bot
Comment 10 2019-12-10 10:38:48 PST
Comment on attachment 385213 [details] Patch Clearing flags on attachment: 385213 Committed r253330: <https://trac.webkit.org/changeset/253330>
WebKit Commit Bot
Comment 11 2019-12-10 10:38:49 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12 2019-12-10 10:39:52 PST
Note You need to log in before you can comment on or make changes to this bug.