Bug 215138 - Web Inspector: Use border-inline-start/end properties instead of border-left/right for DataGrid and Table
Summary: Web Inspector: Use border-inline-start/end properties instead of border-left/...
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: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-08-04 14:36 PDT by Nikita Vasilyev
Modified: 2020-08-04 15:19 PDT (History)
3 users (show)

See Also:


Attachments
Patch (4.47 KB, patch)
2020-08-04 14:38 PDT, Nikita Vasilyev
hi: review+
Details | Formatted Diff | Diff
Patch (4.67 KB, patch)
2020-08-04 14:52 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2020-08-04 14:36:29 PDT
Simplify LTR/RTL CSS code by using logical CSS properties.

This is a follow up for Bug 214563 - Web Inspector: Change DataGrid and Table styles to closer match macOS.
Comment 1 Nikita Vasilyev 2020-08-04 14:38:42 PDT
Created attachment 405943 [details]
Patch
Comment 2 Devin Rousso 2020-08-04 14:43:34 PDT
Comment on attachment 405943 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=405943&action=review

r=me, awesome!

> Source/WebInspectorUI/UserInterface/Views/DataGrid.css:-96
> -body[dir=ltr] .data-grid th:not(:last-child) > .header-cell-content {

please double check that removing `body[dir=*]` doesn't cause this to be overridden by some other CSS declaration due to a lower specificity

> Source/WebInspectorUI/UserInterface/Views/DataGrid.css:97
> +    border-inline-end: var(--data-grid-column-border-end);

we should inline the `1px solid var(--border-color)` and eliminate `--data-grid-column-border-end` while we're at it too 😃
Comment 3 Nikita Vasilyev 2020-08-04 14:50:46 PDT
Comment on attachment 405943 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=405943&action=review

>> Source/WebInspectorUI/UserInterface/Views/DataGrid.css:-96
>> -body[dir=ltr] .data-grid th:not(:last-child) > .header-cell-content {
> 
> please double check that removing `body[dir=*]` doesn't cause this to be overridden by some other CSS declaration due to a lower specificity

Valid concern but there are no other rules that set border on this element.

>> Source/WebInspectorUI/UserInterface/Views/DataGrid.css:97
>> +    border-inline-end: var(--data-grid-column-border-end);
> 
> we should inline the `1px solid var(--border-color)` and eliminate `--data-grid-column-border-end` while we're at it too 😃

Makes sense.
Comment 4 Nikita Vasilyev 2020-08-04 14:52:03 PDT
Created attachment 405946 [details]
Patch
Comment 5 EWS 2020-08-04 15:18:26 PDT
Committed r265262: <https://trac.webkit.org/changeset/265262>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 405946 [details].
Comment 6 Radar WebKit Bug Importer 2020-08-04 15:19:19 PDT
<rdar://problem/66544335>