Bug 238224 - Web Inspector: selection variable $0 hidden with Show scroll bars Always
Summary: Web Inspector: selection variable $0 hidden with Show scroll bars Always
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-22 14:30 PDT by Jeff Johnson
Modified: 2022-03-22 15:18 PDT (History)
3 users (show)

See Also:


Attachments
Screenshot: variable partially hidden (2.82 MB, image/png)
2022-03-22 14:30 PDT, Jeff Johnson
no flags Details
Screenshot: variable shown (2.84 MB, image/png)
2022-03-22 14:31 PDT, Jeff Johnson
no flags Details
Screenshot: variable hidden (2.82 MB, image/png)
2022-03-22 14:31 PDT, Jeff Johnson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnson 2022-03-22 14:30:10 PDT
Steps to reproduce:
1) Open macOS System Preferences to General pane
2) Show scroll bars: Always
3) Open safari to https://webkit.org
4) Open web inspector
5) Select Elements tab
6) Select any DOM node
7) Resize the DOM tree area

See the attached screenshots. The DOM nodes themselves seem to respect Show scroll bars: Always, but the "= $0" variable becomes hidden behind the scroll bar.
Comment 1 Jeff Johnson 2022-03-22 14:30:35 PDT
Created attachment 455424 [details]
Screenshot: variable partially hidden
Comment 2 Jeff Johnson 2022-03-22 14:31:04 PDT
Created attachment 455425 [details]
Screenshot: variable shown
Comment 3 Jeff Johnson 2022-03-22 14:31:47 PDT
Created attachment 455426 [details]
Screenshot: variable hidden
Comment 4 Patrick Angle 2022-03-22 15:18:30 PDT
Also occurs without always-on scrollbars if you resize Web Inspector until `= $0` doesn't fit on the first line anymore, but the rest of the content does. Use of `position: absolute;` for this text seems suspicious, but changing that leads to a weird issue with the height of the blue "selected item" area until I move my cursor over it and back off of it. Need to reduce that issue to understand if it is in WebInspectorUI, or an underlying layout/repaint issue.
Comment 5 Radar WebKit Bug Importer 2022-03-22 15:18:58 PDT
<rdar://problem/90662184>