WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152369
Web Inspector: REGRESSION (
r193913
): Popover covers completion suggestions
https://bugs.webkit.org/show_bug.cgi?id=152369
Summary
Web Inspector: REGRESSION (r193913): Popover covers completion suggestions
Matt Baker
Reported
2015-12-16 17:51:12 PST
Created
attachment 267514
[details]
[Screenshot] Hidden completion suggestions * SUMMARY Popover covers completion suggestions. This occurs because --z-index-popover is higher than --z-index-tooltip, which is used by the popover's completion suggestion view. Regressed in
http://trac.webkit.org/changeset/193913
.
Attachments
[Screenshot] Hidden completion suggestions
(218.20 KB, image/png)
2015-12-16 17:51 PST
,
Matt Baker
no flags
Details
[Patch] Proposed Fix
(6.15 KB, patch)
2015-12-16 18:30 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(1.75 KB, patch)
2015-12-16 18:55 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(1.42 KB, patch)
2015-12-16 22:22 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Matt Baker
Comment 1
2015-12-16 17:56:02 PST
Note that the fix should bump the z-index only for CompletionSuggestionsViews that are created from a popover.
Matt Baker
Comment 2
2015-12-16 18:30:41 PST
Created
attachment 267519
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 3
2015-12-16 18:33:05 PST
Comment on
attachment 267519
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=267519&action=review
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:50 > + this._suggestionsView.element.classList.add("popover");
I suspect this can be inferred from element hierarchy in the CSS selector. .popover .completion-suggestions
Timothy Hatcher
Comment 4
2015-12-16 18:34:48 PST
Comment on
attachment 267519
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=267519&action=review
>> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:50 >> + this._suggestionsView.element.classList.add("popover"); > > I suspect this can be inferred from element hierarchy in the CSS selector. > > .popover .completion-suggestions
Also .popover also likely conflicts and inherits styles form the real popover class.
Nikita Vasilyev
Comment 5
2015-12-16 18:38:12 PST
Would anything break if we simply swap --z-index-tooltip and --z-index-popover, e.g.: --z-index-popover: 512; --z-index-tooltip: 1024; ?
Matt Baker
Comment 6
2015-12-16 18:55:03 PST
Created
attachment 267521
[details]
[Patch] Proposed Fix
Nikita Vasilyev
Comment 7
2015-12-16 19:02:02 PST
Comment on
attachment 267521
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=267521&action=review
> Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.css:33 > + z-index: calc(var(--z-index-popover) + var(--z-index-tooltip));
This is the only place where --z-index-tooltip is used. It would make more sense to simply swap --z-index-popover and --z-index-tooltip in Variables.css.
Matt Baker
Comment 8
2015-12-16 21:58:52 PST
(In reply to
comment #7
)
> Comment on
attachment 267521
[details]
> [Patch] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=267521&action=review
> > > Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.css:33 > > + z-index: calc(var(--z-index-popover) + var(--z-index-tooltip)); > > This is the only place where --z-index-tooltip is used. It would make more > sense to simply swap --z-index-popover and --z-index-tooltip in > Variables.css.
Nice and simple! A reordering of the z-index variables sounds like the best solution. Since only one tooltip is visible at a time, and popups are modal views that can have tooltips, I suggest the following order: --z-index-glass-pane-for-drag: 512; --z-index-uncaught-exception-sheet: 1024; --z-index-popover: 2048; --z-index-tooltip: 4096; As an aside, is there a reason why --z-index-uncaught-exception-sheet has a higher priority than --z-index-glass-pane-for-drag?
Nikita Vasilyev
Comment 9
2015-12-16 22:11:56 PST
(In reply to
comment #8
)
> (In reply to
comment #7
) > > Comment on
attachment 267521
[details]
> > [Patch] Proposed Fix > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=267521&action=review
> > > > > Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.css:33 > > > + z-index: calc(var(--z-index-popover) + var(--z-index-tooltip)); > > > > This is the only place where --z-index-tooltip is used. It would make more > > sense to simply swap --z-index-popover and --z-index-tooltip in > > Variables.css. > > Nice and simple! A reordering of the z-index variables sounds like the best > solution. Since only one tooltip is visible at a time, and popups are modal > views that can have tooltips, I suggest the following order: > > --z-index-glass-pane-for-drag: 512; > --z-index-uncaught-exception-sheet: 1024; > --z-index-popover: 2048; > --z-index-tooltip: 4096; > > As an aside, is there a reason why --z-index-uncaught-exception-sheet has a > higher priority than --z-index-glass-pane-for-drag?
--z-index-uncaught-exception-sheet is for the error page Brian recently added. It should have the highest priority as it can show up on an exception at any state. --z-index-glass-pane-for-drag is for an invisible element that covers the whole inspector. It gets added to the DOM when dragging (e.g. sidebar resizing) starts. The whole point of it is to silence all other mouse events that could have fired on other elements while resizing. It should be on top of --z-index-popover and --z-index-tooltip. I suggest to only swap --z-index-popover and --z-index-tooltip, and keep the rest untouched.
Matt Baker
Comment 10
2015-12-16 22:12:51 PST
(In reply to
comment #9
)
> (In reply to
comment #8
) > > (In reply to
comment #7
) > > > Comment on
attachment 267521
[details]
> > > [Patch] Proposed Fix > > > > > > View in context: > > >
https://bugs.webkit.org/attachment.cgi?id=267521&action=review
> > > > > > > Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.css:33 > > > > + z-index: calc(var(--z-index-popover) + var(--z-index-tooltip)); > > > > > > This is the only place where --z-index-tooltip is used. It would make more > > > sense to simply swap --z-index-popover and --z-index-tooltip in > > > Variables.css. > > > > Nice and simple! A reordering of the z-index variables sounds like the best > > solution. Since only one tooltip is visible at a time, and popups are modal > > views that can have tooltips, I suggest the following order: > > > > --z-index-glass-pane-for-drag: 512; > > --z-index-uncaught-exception-sheet: 1024; > > --z-index-popover: 2048; > > --z-index-tooltip: 4096; > > > > As an aside, is there a reason why --z-index-uncaught-exception-sheet has a > > higher priority than --z-index-glass-pane-for-drag? > > --z-index-uncaught-exception-sheet is for the error page Brian recently > added. It should have the highest priority as it can show up on an exception > at any state. > > --z-index-glass-pane-for-drag is for an invisible element that covers the > whole inspector. It gets added to the DOM when dragging (e.g. sidebar > resizing) starts. The whole point of it is to silence all other mouse events > that could have fired on other elements while resizing. It should be on top > of --z-index-popover and --z-index-tooltip. > > I suggest to only swap --z-index-popover and --z-index-tooltip, and keep the > rest untouched.
Sounds good!
Matt Baker
Comment 11
2015-12-16 22:22:29 PST
Created
attachment 267539
[details]
[Patch] Proposed Fix
Nikita Vasilyev
Comment 12
2015-12-16 22:24:50 PST
(In reply to
comment #11
)
> Created
attachment 267539
[details]
> [Patch] Proposed Fix
Looks good to me, but I'm not a reviewer.
WebKit Commit Bot
Comment 13
2015-12-17 00:16:21 PST
Comment on
attachment 267539
[details]
[Patch] Proposed Fix Clearing flags on attachment: 267539 Committed
r194214
: <
http://trac.webkit.org/changeset/194214
>
WebKit Commit Bot
Comment 14
2015-12-17 00:16:26 PST
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