Csswg-drafts: [css-grid] Auto-placement aligning to a named line

Created on 7 Dec 2016  路  3Comments  路  Source: w3c/csswg-drafts

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.

Closed Accepted by CSSWG Resolution Needs Edits css-grid-3

Most helpful comment

The Working Group just discussed Auto-placement aligning to a named line, and agreed to the following resolutions:

  • RESOLVED: Add this proposal to grid L2

The full IRC log of that discussion
<dael> Topic: Auto-placement aligning to a named line

<dael> github: https://github.com/w3c/csswg-drafts/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

All 3 comments

is there any progress on this topic?

Proposal: use auto <custom-ident> to mean the same as auto except the line it resolves to has to be named <custom-ident>.

The Working Group just discussed Auto-placement aligning to a named line, and agreed to the following resolutions:

  • RESOLVED: Add this proposal to grid L2

The full IRC log of that discussion
<dael> Topic: Auto-placement aligning to a named line

<dael> github: https://github.com/w3c/csswg-drafts/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

Was this page helpful?
0 / 5 - 0 ratings