Bug 247507

Summary: Replaced elements with intrinsic ratio and missing size don't respect min-max constraints
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/36830
Bug Depends on:    
Bug Blocks: 251419    
Attachments:
Description Flags
Testcase
none
Testcase 2 none

Description Sammy Gill 2022-11-04 15:57:37 PDT
Created attachment 463413 [details]
Testcase

If a replaced element (e.g. SVG) has an intrinsic size in only one dimension, an intrinsic ratio, and min/max constraints in the other dimension, those constraints must be met using the intrinsic ratio. Attached 2 examples.
Comment 1 Sammy Gill 2022-11-04 15:58:05 PDT
Created attachment 463414 [details]
Testcase 2
Comment 2 Radar WebKit Bug Importer 2022-11-04 15:58:31 PDT
<rdar://problem/101979495>
Comment 3 Sammy Gill 2022-11-04 16:41:05 PDT
Pull request: https://github.com/WebKit/WebKit/pull/6155
Comment 4 Sammy Gill 2022-11-04 17:11:46 PDT
Pull request: https://github.com/WebKit/WebKit/pull/6159
Comment 5 Sammy Gill 2022-11-04 17:28:59 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/36830
Comment 6 EWS 2022-12-06 14:30:53 PST
Committed 257434@main (036e53a548a5): <https://commits.webkit.org/257434@main>

Reviewed commits have been landed. Closing PR #6159 and removing active labels.