Bug 272851 - bankdhofar.com: User can erroneously scroll horizontally on iPad and macOS and get stuck
Summary: bankdhofar.com: User can erroneously scroll horizontally on iPad and macOS an...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-04-17 14:10 PDT by Ahmad Saleem
Modified: 2024-04-23 12:13 PDT (History)
6 users (show)

See Also:


Attachments
Broken Homepage (horizontal space) (1.28 MB, image/png)
2024-04-17 14:10 PDT, Ahmad Saleem
no flags Details
reducing the layout (458.05 KB, image/png)
2024-04-17 20:20 PDT, Karl Dubost
no flags Details
screen recording of the issue (25.93 MB, video/quicktime)
2024-04-17 20:33 PDT, Karl Dubost
no flags Details
Test reduction (211 bytes, text/html)
2024-04-23 10:34 PDT, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2024-04-17 14:10:55 PDT
Created attachment 470969 [details]
Broken Homepage (horizontal space)

Hi Team,

Steps to reproduce:

1) Visit: https://bankdhofar.com

2) Scroll horizontally - it shows 'grey' area

3) On iPad - it shoes horizontal space

Expected Result:

Chrome Canary 125 and Firefox Nightly 127 don't show this, so match them.

Actual Result:

See reference picture.

____

Thanks!
Comment 1 Karl Dubost 2024-04-17 20:20:28 PDT
Created attachment 470979 [details]
reducing the layout
Comment 2 Karl Dubost 2024-04-17 20:33:36 PDT
Created attachment 470980 [details]
screen recording of the issue

Currently there is this code:

@media screen {
    .loan-modal {
        position: absolute;
        top: -12px;
        right: -12px;
        width: 1px;
        height: 1px;
        background: #fff;
        border-radius: 16px;
        transition: all 0.7s ease;
        z-index: 999;
        border: solid 1px transparent;
    }
}

which is supposed to put out of view the loan modal but create a scrollable context.

If we apply display: none on this, the site displays correctly.
Comment 3 Karl Dubost 2024-04-17 20:34:37 PDT
On Firefox it doesn't create the scrollable context.
Comment 4 Radar WebKit Bug Importer 2024-04-17 20:35:11 PDT
<rdar://problem/126664128>
Comment 5 zalan 2024-04-23 10:34:20 PDT
Created attachment 471073 [details]
Test reduction
Comment 6 zalan 2024-04-23 12:13:04 PDT
The combination of allowing rubber-banding and "overflow: hidden auto" causes this bug.