WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170292
Web Inspector: RTL: results in Search navigation sidebar have misplaced highlights
https://bugs.webkit.org/show_bug.cgi?id=170292
Summary
Web Inspector: RTL: results in Search navigation sidebar have misplaced highl...
Blaze Burg
Reported
2017-03-30 12:34:02 PDT
This triggers pathologically slow complex text layout, which I filed a separate bug about. The fix for this works around the perf issue.
Attachments
Patch
(8.36 KB, patch)
2017-03-30 12:47 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Before [RTL]
(485.14 KB, image/png)
2017-03-30 12:48 PDT
,
Blaze Burg
no flags
Details
after [RTL]
(483.08 KB, image/png)
2017-03-30 12:49 PDT
,
Blaze Burg
no flags
Details
Patch
(7.90 KB, patch)
2017-03-30 13:17 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Patch v1.1
(8.23 KB, patch)
2017-04-02 12:59 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
search results - LTR
(124.12 KB, image/png)
2017-04-02 13:03 PDT
,
Blaze Burg
no flags
Details
search results - RTL
(104.75 KB, image/png)
2017-04-02 13:04 PDT
,
Blaze Burg
no flags
Details
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Blaze Burg
Comment 1
2017-03-30 12:47:45 PDT
Created
attachment 305879
[details]
Patch
Blaze Burg
Comment 2
2017-03-30 12:48:51 PDT
Created
attachment 305880
[details]
Before [RTL]
Blaze Burg
Comment 3
2017-03-30 12:49:05 PDT
Created
attachment 305881
[details]
after [RTL]
Blaze Burg
Comment 4
2017-03-30 12:54:49 PDT
Comment on
attachment 305879
[details]
Patch Found an issue when the result line is too big.
Blaze Burg
Comment 5
2017-03-30 13:17:23 PDT
Created
attachment 305886
[details]
Patch
Matt Baker
Comment 6
2017-03-30 13:44:35 PDT
Comment on
attachment 305886
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=305886&action=review
> Source/WebInspectorUI/UserInterface/Views/SearchIcons.css:50 > +.source-code-match .icon {
Nice cleanup, so tired of seeing .yet-another-icon .icon everywhere.
> Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js:42 > + const charactersToShowBeforeSearchMatch = isRTL ? 20 : 15;
Why is this changing to 20? It feels wrong presenting less/different data in RTL.
> Source/WebInspectorUI/UserInterface/Views/SearchSidebarPanel.css:57 > + text-align: right;
This looks wrong. Search results are now right aligned when viewed in LTR.
Blaze Burg
Comment 7
2017-04-02 11:59:50 PDT
(In reply to Matt Baker from
comment #6
)
> Comment on
attachment 305886
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=305886&action=review
> > > Source/WebInspectorUI/UserInterface/Views/SearchIcons.css:50 > > +.source-code-match .icon { > > Nice cleanup, so tired of seeing .yet-another-icon .icon everywhere. > > > Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js:42 > > + const charactersToShowBeforeSearchMatch = isRTL ? 20 : 15;
>
> Why is this changing to 20? It feels wrong presenting less/different data in > RTL.
We have to be more conservative so the highlight text doesn't run off into overflow. It's hard to determine what will actually show in RTL since we don't know how much text might overflow to the left, whereas in LTR we know exactly what text starts on the left side. This value worked for me when resizing the sidebar to the minimum expanded width.
> > Source/WebInspectorUI/UserInterface/Views/SearchSidebarPanel.css:57 > > + text-align: right; > > This looks wrong. Search results are now right aligned when viewed in LTR.
Will fix. I'm tempted to just leave subtitles out since we can't find a good way to overflow them without making search results impossible to consistently align left. If the tooltip still displays the title and subtitle, that might be fine.
Blaze Burg
Comment 8
2017-04-02 12:59:42 PDT
Created
attachment 306058
[details]
Patch v1.1
Blaze Burg
Comment 9
2017-04-02 13:03:32 PDT
Created
attachment 306059
[details]
search results - LTR
Blaze Burg
Comment 10
2017-04-02 13:04:01 PDT
Created
attachment 306060
[details]
search results - RTL
Blaze Burg
Comment 11
2017-04-02 13:04:48 PDT
(In reply to Brian Burg from
comment #7
) >
> I'm tempted to just leave subtitles out since we can't find a good way to > overflow them without making search results impossible to consistently align > left. If the tooltip still displays the title and subtitle, that might be > fine.
Oops, this comment belongs in a different bug.
WebKit Commit Bot
Comment 12
2017-04-03 20:30:33 PDT
Comment on
attachment 306058
[details]
Patch v1.1 Clearing flags on attachment: 306058 Committed
r214864
: <
http://trac.webkit.org/changeset/214864
>
WebKit Commit Bot
Comment 13
2017-04-03 20:30:35 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug