Join GitHub today
[css-grid] Auto-placement aligning to a named line #796
I have seen a couple of requests from authors to be able to auto-place to the next available row or column line with a certain name.
This came up in a Q&A that I am running, and there is also an earlier request for this behaviour detailed on the www-style list, and on the wiki for possible L2 features. Raising this issue just to capture these in one place.
The Working Group just discussed
The full IRC log of that discussion<dael> Topic: Auto-placement aligning to a named line
<dael> github: https://github.com//issues/796
<dael> Rossen_: RachelAndrews raised this, but she's not on. fantasai can you summerize?
<dael> fantasai: There have been several requrests to do auto placement but filter out lines that don't match a name. Right now auto placement uses auto keypwrd. Add a custom ident for the name after the auto. So auto and the name would only do placement on lines with that name.
<dael> fantasai: This is level 2 of grid.
<dael> Rossen_: Seems reasonable. I'm trying to understand primary use case
<dael> fantasai: Example wanting to have narrow and wide columns, some items should go in narrow and some in the wide. You name the lines to make the distinction and then be able to filter out the ones that match what you're looking for.
<dael> Rossen_: Okay. What's behavrio if I list all named lines?
<dael> fantasai: Proposal is you only have one custom ident. A line can have many names so if it matches any name it matches. That's the same as looking for lines. If you wanted various behaviors you'd name the lines differently.
<dael> TabAtkins: Identical to if you spec a line name right now. It's just giving you auto placement with same behavior.
<dael> Rossen_: Sounds reasonable. What do others think?/
<dael> florian: I like it
<dael> rego: Level 2?
<dael> Rossen_: Yeah.
<dael> rego: Another commonly requested feature is spanning until last line including implicit grid?
<dael> fantasai: There's another open issue on that
<dael> Rossen_: Obj to accepting proposal to add to L2?
<dael> RESOLVED: Add this proposal to grid L2