Bug 224113

Summary: [AspectRatio] Out-of-flow box with intrinsic width (e.g. <img>) may trigger infinite recursion
Product: WebKit Reporter: alan baradlay <zalan>
Component: Layout and RenderingAssignee: alan baradlay <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, rbuis, simon.fraser, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

alan baradlay
Reported 2021-04-02 09:06:22 PDT
<style> img { aspect-ratio: 1; max-width: fit-content; top: 0; bottom: 0; position: absolute; } </style> <img src="foobar"> <rdar://75877776>
Attachments
Patch (3.80 KB, patch)
2021-04-02 09:38 PDT, alan baradlay
no flags
alan baradlay
Comment 1 2021-04-02 09:38:45 PDT
Rob Buis
Comment 2 2021-04-02 10:34:38 PDT
Comment on attachment 425029 [details] Patch Sorry for that one!
alan baradlay
Comment 3 2021-04-02 10:37:50 PDT
(In reply to Rob Buis from comment #2) > Comment on attachment 425029 [details] > Patch > > Sorry for that one! This is a very peculiar case :) (I myself made this mistake many times -not taking the blockified replaced case into consideration.) Thanks for the review!
EWS
Comment 4 2021-04-02 12:30:17 PDT
Committed r275430: <https://commits.webkit.org/r275430> All reviewed patches have been landed. Closing bug and clearing flags on attachment 425029 [details].
Note You need to log in before you can comment on or make changes to this bug.