Bug 230481

Summary: [css-grid] When the max is less than the min in minmax(), the max will be floored by the min
Product: WebKit Reporter: zsun
Component: CSSAssignee: zsun
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, esprehn+autocc, ews-watchlist, glenn, jfernandez, kondapallykalyan, obrufau, pdr, rego, svillar, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description zsun 2021-09-20 07:40:09 PDT
As per discussions in https://github.com/w3c/csswg-drafts/issues/4043 -

If the max is less than the min in minmax, then the max will be floored by the min (essentially yielding minmax(min, min)) in certain applicable cases such as

 -  If both the min and max track sizing functions are definite, use the maximum of them
 -  If only one track sizing function is definite, use that one
Comment 1 zsun 2021-09-20 07:49:47 PDT
Created attachment 438679 [details]
Patch
Comment 2 Sergio Villar Senin 2021-09-20 09:54:46 PDT
Comment on attachment 438679 [details]
Patch

Nice fix!
Comment 3 EWS 2021-09-21 00:26:32 PDT
Committed r282804 (241936@main): <https://commits.webkit.org/241936@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 438679 [details].
Comment 4 Radar WebKit Bug Importer 2021-09-21 00:27:17 PDT
<rdar://problem/83342685>