Summary: | Web Inspector: RTL: navigation sidebar text overflows on left side (per RTL context), but resource names are LTR | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | BJ Burg <bburg> | ||||||||
Component: | Web Inspector | Assignee: | BJ Burg <bburg> | ||||||||
Status: | NEW --- | ||||||||||
Severity: | Normal | CC: | bburg, hi, inspector-bugzilla-changes, karlcow, mattbaker | ||||||||
Priority: | P2 | ||||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
(In reply to comment #0) > Created attachment 302555 [details] > SCREENSHOT > > Problems: > > - ellipsis on left side of text is prepended to the resource > - subtitle with origin text should be overflowed before the resource name > > For the first, we should override the dir attribute for these labels so that > ellipsis appear on the right side of text. I think it should still be > possible to right align them. > For the second, we should double-check that the separator used for this is > localizable so RTL languages can swap the order of the title and subtitle. > Or, we could do it manually if this is ambiguous. I have a patch that resolves the second issue. Elements will flow their contents according the current direction as long as the children are inline-block. With only minor CSS tweaks our GeneralTreeElement class works great in RTL! Created attachment 304131 [details]
Patch
Created attachment 304132 [details]
[Image] Tree element titles
Comment on attachment 304131 [details]
Patch
Need to come up with an alternate solution: inline-block breaks text-overflow on the title/subtitle elements.
This depends on partially at least on this bug with RTL text and ellipsis. https://bugs.webkit.org/show_bug.cgi?id=164999 |
Created attachment 302555 [details] SCREENSHOT Problems: - ellipsis on left side of text is prepended to the resource - subtitle with origin text should be overflowed before the resource name For the first, we should override the dir attribute for these labels so that ellipsis appear on the right side of text. I think it should still be possible to right align them. For the second, we should double-check that the separator used for this is localizable so RTL languages can swap the order of the title and subtitle. Or, we could do it manually if this is ambiguous.