Bug 230481 - [css-grid] When the max is less than the min in minmax(), the max will be floored by the min
Summary: [css-grid] When the max is less than the min in minmax(), the max will be flo...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zsun
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-20 07:40 PDT by zsun
Modified: 2021-09-21 00:27 PDT (History)
11 users (show)

See Also:


Attachments
Patch (8.30 KB, patch)
2021-09-20 07:49 PDT, zsun
no flags Details | Formatted Diff | Diff

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