Bug 247507 - Replaced elements with intrinsic ratio and missing size don't respect min-max constraints
Summary: Replaced elements with intrinsic ratio and missing size don't respect min-max...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 251419
  Show dependency treegraph
 
Reported: 2022-11-04 15:57 PDT by Sammy Gill
Modified: 2023-03-28 23:36 PDT (History)
4 users (show)

See Also:


Attachments
Testcase (836 bytes, text/html)
2022-11-04 15:57 PDT, Sammy Gill
no flags Details
Testcase 2 (834 bytes, text/html)
2022-11-04 15:58 PDT, Sammy Gill
no flags Details

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