Re: [csswg-drafts] [css-grid-3] Masonry - Intrinsic sizing of tracks & masonry-grid doesn't produce to good/desirable results. (#8206)

The CSS Working Group just discussed `[css-grid-3] Masonry - Intrinsic sizing of tracks & masonry-grid doesn't produce to good/desirable results. `, and agreed to the following:

* `RESOLVED: Remove first-row-is-special handling of intrinsic track sizing in Masonry spec, replace with all auto-placed items contribute to all intrinsically sized tracks`

<details><summary>The full IRC log of that discussion</summary>
&lt;emeyer> iank_: Spec as it was initially introduced has some awkward placement + intrinsic size outcomes<br>
&lt;emeyer> …In grid layout, you have to put everything into areas and then size areas based on that placement<br>
&lt;emeyer> …Masonry layout is kind of backwards, in that you place your item into the highest available track<br>
&lt;emeyer> …The original spec got around this, but by placing everything into the first column after it had placed an item in each track, this had a lot of bad side effects around intrinsic sizing<br>
&lt;emeyer> …You can have intrinsically sized track and something goes into the second column, the column might not be wide enough<br>
&lt;emeyer> TabAtkins: The upshot is part of our larger argument that masonry shouldn’t be defined on top of grid because of the inside-out ness<br>
&lt;astearns> ack emilio<br>
&lt;astearns> ack fantasai<br>
&lt;emeyer> …We think masonry should be its own display type that can have its own layout approach and maybe some new features that aren’t possible as long as it’s based on grid<br>
&lt;emeyer> fantasai: I’d like to sidestep display types and focus on sizing<br>
&lt;emeyer> …We a gree with Ian that it’s not ideal and speccing something out that handles intrinsic sizing on its own terms makes sense<br>
&lt;emeyer> …We’d like to spec that out in the editor’s draft<br>
&lt;emeyer> …Asking for a resolution to remove the “first row is special” thing from the spec<br>
&lt;iank_> q+<br>
&lt;emeyer> …And add l anguage to keep intrinsic sizing from being dependent on placement<br>
&lt;emeyer> …If we embed into grid, this is a bit more complicated<br>
&lt;astearns> ack iank_<br>
&lt;emeyer> astearns: This reworking is necessary whether we change display types?<br>
&lt;emeyer> fantasai: Yes<br>
&lt;emeyer> iank_: I don’t think it’s that simple because there are a lot of touchpoints with the grid specification<br>
&lt;emeyer> …Regarding placement in the non-masonry axis regarding how the element contributes<br>
&lt;emeyer> …I’m a little concerned that implementations-wise, there’s lots and lots of edge cases that rely on grid placement<br>
&lt;astearns> ack fantasai<br>
&lt;emeyer> fantasai: I recognize that this is complicated, but I’d like to at least try<br>
&lt;emeyer> …We can definitely come back to where we are if our proposal isn’t workable<br>
&lt;emeyer> iank_: We could work out the issues in a PR<br>
&lt;emeyer> fantasai: True, but the Draft is a draft and we all agree the current draft isn’t what we want<br>
&lt;emeyer> iank_: I think the Microsoft folks had a look and came to similar conclusions<br>
&lt;emeyer> …I want to avoid falling into quadratic behavior with variable track sizes<br>
&lt;emeyer> …When I originally wrote this up, I thought it could be mitigated, but now I’m pretty strongly in the camp we’ll need a new display type<br>
&lt;emeyer> astearns: I propose we task Elika and Ian to work on a PR and come back to the group<br>
&lt;emeyer> fantasai: Can we please land changes in the ED and iterate until we either have a solution or decide we can’t?<br>
&lt;fantasai> It's an "editor's draft" for a reason.<br>
&lt;fantasai> This is exactly what editor's drafts are for<br>
&lt;emeyer> jensimmons: It sounds like there’s a lot of disagreement between Appole and Google on this<br>
&lt;emeyer> astearns: I was thinkg of it more as “let’s collaborate” so we know whatever gets into the draft won’t have immediate objections<br>
&lt;emeyer> jensimmons: I think there’s good questions about implementability and speed, and Ian’s skepticism is perhaps correct<br>
&lt;emeyer> …We want to push further down the road<br>
&lt;TabAtkins> It wasn't minus, but I said "yes, please work in the ED"<br>
&lt;emeyer> astearns: So we propose Elika fix up the Editor’s Draft and bring it back<br>
&lt;emeyer> iank_: Okay with me<br>
&lt;TabAtkins> s/minus/minuted/<br>
&lt;emeyer> fantasai: If we’re going to stick with the grid model, we should go this direction<br>
&lt;emeyer> astearns: I want to avoid resolving on a direction since we don’t know what the direction will be<br>
&lt;emeyer> fantasai: I think we need to take Ian’s approach contributions of all auto sized items in every auto sized track<br>
&lt;emeyer> …Updating the draft to say that we want to push in that direction seems to make sense to me<br>
&lt;emeyer> iank_: Yes, the direction, like, when I proposed this direction I didn’t see all the complications I now see<br>
&lt;emeyer> …If we want to go down the grid path, I’m not sure this path is workable<br>
&lt;emeyer> …I’m fine with editing the ED with a large scary note that details what’s being worked out<br>
&lt;emeyer> jensimmons: There’s an inconsistency between how this is being handled and how anchor positioning is being handled<br>
&lt;emeyer> …We have real objections about try blocks and they’re not being heard, but here similar objections are being taken seriously<br>
&lt;TabAtkins> We've already said that we'd like fantasai to continue iterating on this in the Grid 3 ED. Unsure what the complaint is.<br>
&lt;fantasai> proposal: Remove first-row-is-special handling of intrinsic track sizing in Masonry spec, replace with all auto-placed items contribute to all intrinsically sized tracks<br>
&lt;emeyer> astearns: Elika, can you state the proposed resolution?<br>
&lt;fantasai> Also: add a scary warning<br>
&lt;fantasai> :)<br>
&lt;emeyer> RESOLVED: Remove first-row-is-special handling of intrinsic track sizing in Masonry spec, replace with all auto-placed items contribute to all intrinsically sized tracks<br>
&lt;TabAtkins> I'm here ://///<br>
&lt;TabAtkins> Dang zoom<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8206#issuecomment-1721366240 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 15 September 2023 14:22:28 UTC