Bug 249056 - HTMLImageElement width/height should updateLayout first
Summary: HTMLImageElement width/height should updateLayout first
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-09 17:18 PST by Ahmad Saleem
Modified: 2022-12-15 16:22 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>