Bug 175357

Summary: Web Inspector: Make styles sidebar always LTR
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, inspector-bugzilla-changes, joepeck, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Image] Before the patch
none
Patch for review
ews-watchlist: commit-queue-
[Image] With patch applied
none
Archive of layout-test-results from ews101 for mac-sierra
none
[Image] With patch applied 2
none
Patch for review
none
Archive of layout-test-results from ews107 for mac-sierra-wk2 none

Description Nikita Vasilyev 2017-08-08 16:37:19 PDT
The current version of the styles sidebar aligns text to the left.

With the spreadsheet model, we can:
- align text to right.
- move checkboxes to the right side.
- flip CSS property names and values.
Comment 1 Radar WebKit Bug Importer 2017-08-08 16:37:42 PDT
<rdar://problem/33787988>
Comment 2 Nikita Vasilyev 2018-01-09 16:38:17 PST
Created attachment 330859 [details]
[Image] Before the patch
Comment 3 Nikita Vasilyev 2018-01-09 16:40:11 PST
(In reply to Nikita Vasilyev from comment #0)
> The current version of the styles sidebar aligns text to the left.
> 
> With the spreadsheet model, we can:
> - align text to right.
> - move checkboxes to the right side.
> - flip CSS property names and values.

After long consideration, I don't think this makes sense to do. CSS is strictly LTR.
Flipping names and values would break copy/pasting, among other things.
Comment 4 Nikita Vasilyev 2018-01-09 16:42:05 PST
Created attachment 330860 [details]
Patch for review
Comment 5 Nikita Vasilyev 2018-01-09 16:42:33 PST
Created attachment 330861 [details]
[Image] With patch applied
Comment 6 EWS Watchlist 2018-01-09 22:30:21 PST
Comment on attachment 330860 [details]
Patch for review

Attachment 330860 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/6013410

New failing tests:
imported/w3c/web-platform-tests/media-source/mediasource-config-change-mp4-a-bitrate.html
accessibility/mac/aria-multiple-liveregions-notification.html
Comment 7 EWS Watchlist 2018-01-09 22:30:23 PST
Created attachment 330882 [details]
Archive of layout-test-results from ews101 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 8 Joseph Pecoraro 2018-01-10 10:46:11 PST
Comment on attachment 330860 [details]
Patch for review

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

> Source/WebInspectorUI/UserInterface/Views/SpreadsheetRulesStyleDetailsPanel.js:36
> +        this.element.dir = "ltr";

I think this deserves a comment.

Does this section titles as well? Should it?
Comment 9 Nikita Vasilyev 2018-01-10 15:47:23 PST
Created attachment 330979 [details]
[Image] With patch applied 2

(In reply to Joseph Pecoraro from comment #8)
> Does this section titles as well? Should it?

Does this make the section titles RTL as well?.. Is that what you asked?

Yes, it does. I think it would be harder to follow the structure when only the section titles are aligned right.
Comment 10 Nikita Vasilyev 2018-01-10 15:48:52 PST
Created attachment 330980 [details]
Patch for review
Comment 11 EWS Watchlist 2018-01-10 19:13:51 PST
Comment on attachment 330980 [details]
Patch for review

Attachment 330980 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/6028516

New failing tests:
webgl/1.0.2/conformance/uniforms/uniform-default-values.html
Comment 12 EWS Watchlist 2018-01-10 19:13:53 PST
Created attachment 331011 [details]
Archive of layout-test-results from ews107 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 13 Nikita Vasilyev 2018-01-11 11:12:41 PST
Comment on attachment 330980 [details]
Patch for review

The test failures are unrelated to the patch.
Comment 14 Joseph Pecoraro 2018-01-19 11:49:58 PST
Comment on attachment 330980 [details]
Patch for review

r=me
Comment 15 WebKit Commit Bot 2018-01-19 12:13:25 PST
Comment on attachment 330980 [details]
Patch for review

Clearing flags on attachment: 330980

Committed r227228: <https://trac.webkit.org/changeset/227228>
Comment 16 WebKit Commit Bot 2018-01-19 12:13:27 PST
All reviewed patches have been landed.  Closing bug.