Minutes Seattle F2F 2017-01-13 Part I: Grid
Grid
- Resolved: Automatic minimum is clamped by max track size not final track size.
- Resolved: Specify that
min-width: auto
only resolves to the automatic minimum size if the item spans at least one track whose min track size is auto. It is otherwise zero.
- Discussion on how percentages should be resolved during intrinsic size computation:
- Originally there were two options listed; treating percentage track sizes as auto or resolve to 0.
- Neither of these options seemed to work well/expectedly for all use cases.
- The group developed six choices to select from:
- Ignore percentage and treat as auto (like block % heights)
- Back compute percentages (like tables)
- Percentages contribute zero, but resolve afterward
- Percentages contribute intrinsic size, resolve afterward during layout
- Option c unless all siblings are percentage, else option a
- Percentages contribute their minimum size (min-width), but resolve afterward
- Several people thought option b would be interesting, but would take a bunch of time to solve.
- Option d was generally agreed to be easiest, but may not solve all use cases and results in overflow when shrink-to-fit sizing is invoked.
- In order to take a straw poll, the list was narrowed down to:
- Ignore percentages
- Backcompute percentages
- Percentages contribute intrinsic size, but resolve afterward
- #3 with a switch based on min-width
- Resolved: Percentages contribute intrinsic size and they resolve after layout.
- During the conversation dbaron raised an idea he had been thinking through: to have properties that let you assign the intrinsic sizes. This was interesting to several people and he was encouraged to write it up, but it wasn’t the right solution for this specific problem.
- Mats’s alternate proposal for stretching images in a ratio-preserving way as well as the original options were discussed.
- Options:
- Make default sizing intrinsic (could opt into contain with keywords)
- Make default sizing contain (could opt into intrinsic with keywords)
- Add sizing options to alignment (Mats’s proposal)
- Resolved: We’re keeping the current specified behavior as it is (no change to the default sizing, non replace get stretched, replaced gets start and add new sizing keywords to address the issues)
- There was also an expressed interest in adding contain to sizing, but people needed more time to understand how it would work.
Full Minutes || Spec Referenced
« Previous article
Next article »