WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
235874
Absolutely positioned element at top -9999999em disables scrolling
https://bugs.webkit.org/show_bug.cgi?id=235874
Summary
Absolutely positioned element at top -9999999em disables scrolling
Gabriele Romanato
Reported
2022-01-30 14:20:47 PST
Created
attachment 450368
[details]
Miminal test case Having an element negatively positioned outside the viewport, negative contextual positioning (i.e. the immediate ancestor is relatively positioned) disables vertical scrolling on the whole document when the content of the positioned element has been hidden via the overflow property. Minimal test case (attached):
https://gabrieleromanato.dev/test/css/safari-negative-positioning-overflow.html
Attachments
Miminal test case
(7.20 KB, text/html)
2022-01-30 14:20 PST
,
Gabriele Romanato
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2022-01-31 09:41:17 PST
Looks like we hit LayoutUnit limits when computing overflow.
Simon Fraser (smfr)
Comment 2
2022-01-31 09:42:06 PST
Simple workaround is to use smaller negative offset.
Radar WebKit Bug Importer
Comment 3
2022-01-31 09:43:29 PST
<
rdar://problem/88276643
>
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