Bug 217388

Summary: Scrolling to an anchor inside multicol scrolls to the wrong place
Product: WebKit Reporter: john-ivan
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: mmaxfield, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Other   
OS: All   
Attachments:
Description Flags
Test none

Description john-ivan 2020-10-06 08:45:30 PDT
SYSTEM:  Debian Buster x86_64
BROWSER: Epiphany 3.32.1.2
WEBKIT:  WebKitGTK+ 2.28.4

REPLICATION:
1. Go to https://yltbible.site/study/tool.html
2. Click 'A-piece to Angle'
3. Click 'A-piece to Abhor'
4. Click 'A-piece'
5. In top-right frame, click 'Numbers 3:47'

PROBLEM:
The proper result(as in Firefox78.3.0esr) is to go to the internal link at Numbers 3:47.
WebKit seems to be not realizing that the iframe only has 49.5% of the screen height;
it seems to be rendering as if the iframe has 100% height but is covered.
Comment 1 Alexey Proskuryakov 2020-10-06 12:01:15 PDT
I can reproduce in Safari, it scrolls to the wrong position.
Comment 2 Radar WebKit Bug Importer 2020-10-06 12:01:25 PDT
<rdar://problem/70010429>
Comment 3 Simon Fraser (smfr) 2020-10-06 16:25:30 PDT
This is about multicol. The "columns: 2" triggers it.
Comment 4 Simon Fraser (smfr) 2021-10-15 16:22:56 PDT
Created attachment 441449 [details]
Test
Comment 5 Simon Fraser (smfr) 2021-10-15 16:23:22 PDT
This works now. Test:
https://bug-217388-attachments.webkit.org/attachment.cgi?id=441449#link