Bug 249056

Summary: HTMLImageElement width/height should updateLayout first
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-12-09 17:18:45 PST
Hi Team,

While going through Blink's commit, I found another potential failing test case:

Test Case - https://jsfiddle.net/hs7q31ak/show

^ I used random image from web-site.

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/d3adbd3a3f1bcbebdf515ac15a8c250873a2a1d9

Webkit GitHub Source - https://github.com/WebKit/WebKit/blob/91e9772155e7dc877cd28d7d9734b3631d99dea9/Source/WebCore/html/HTMLImageElement.cpp#LL504 & https://github.com/WebKit/WebKit/blob/91e9772155e7dc877cd28d7d9734b3631d99dea9/Source/WebCore/html/HTMLImageElement.cpp#LL529

Just wanted to raise bug before trying to do PR.

Thanks!
Comment 1 EWS 2022-12-15 16:21:53 PST
Committed 257961@main (4db09a035420): <https://commits.webkit.org/257961@main>

Reviewed commits have been landed. Closing PR #7462 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2022-12-15 16:22:18 PST
<rdar://problem/103423673>