Bug 256191

Summary: Clicking on Agreed/Proceed on after first reaching the site scrolls to top
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://css-tricks.com/almanac/properties/z/zoom/
Attachments:
Description Flags
rendering in safari, firefox, chrome none

Description Karl Dubost 2023-05-01 19:07:05 PDT
Created attachment 466164 [details]
rendering in safari, firefox, chrome

Steps to reproduce:
1. with Safari Release 168 (Safari 16.4, WebKit 18616.1.10.2)
2. Make sure you have no cookies for css-tricks.com
3. Go to https://css-tricks.com/almanac/properties/z/zoom/
4. A banner is displayed at the bottom
5. Scroll a bit to bring a different part of the page
6. Click on the Agreed and Proceed button

Expected:
After the banner goes away, the page stays at the same position after scrolling

Actual:
The page goes back to the top of the viewport.

See screenshot for 

STP 168 | MiniBrowser
----------------------
Chrome  | Firefox
Comment 1 Radar WebKit Bug Importer 2023-05-01 19:07:22 PDT
<rdar://problem/108767292>
Comment 2 Simon Fraser (smfr) 2023-05-01 20:33:42 PDT
The page is doing a reload when you accept cookies.