Bug 226006

Summary: REGRESSION: Safari v14.1 computes element height to be 33,554,432 pixels
Product: WebKit Reporter: MarkG <theblueslate>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac (Intel)   
OS: macOS 11   
URL: https://jsfiddle.net/ao1xcs2q/
Attachments:
Description Flags
screenshot of how jsfiddle looks in safari v14.1 vs how it should actually look
none
Test reduction
none
Patch none

Description MarkG 2021-05-19 23:08:19 PDT
Created attachment 429138 [details]
screenshot of how jsfiddle looks in safari v14.1 vs how it should actually look

Safari v14.1 (build 16611.1.21.161.6) broke the display of one of our pages. I've replicated the problem here: https://jsfiddle.net/ao1xcs2q/ I have also attached a screenshot which shows how the jsfiddle renders on safari v14.1 (and iOS v14.5.1) and how it used to render on previous versions.

The element that breaks rendering is: <small class="noteshow">This could be a YouTube or Vimeo video, or something else</small>. The css rule that causes the problem is the margin-top: -10px. Safari v14.1 renders the element as 33,554,432 pixels high, completely obscuring any following content on the page. Disabling this rule makes makes the element render as expected.
Comment 1 Alexey Proskuryakov 2021-05-21 16:38:18 PDT
I can reproduce with r277884.
Comment 2 zalan 2021-05-25 11:13:44 PDT
Created attachment 429667 [details]
Test reduction
Comment 3 Radar WebKit Bug Importer 2021-05-25 12:44:25 PDT
<rdar://problem/78471122>
Comment 4 Radar WebKit Bug Importer 2021-05-25 14:22:59 PDT
<rdar://problem/78476119>
Comment 5 zalan 2021-05-25 16:16:01 PDT
Created attachment 429707 [details]
Patch
Comment 6 EWS 2021-05-26 06:28:09 PDT
Committed r278080 (238159@main): <https://commits.webkit.org/238159@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 429707 [details].