RE: [css-grid] proposal for repeat to take a third argument for jointure

Thinking about the argument of Array..join. This is for interblock spacing. (sorry I sent this on my phone, please excuse html)

________________________________
De : Tab Atkins Jr.<mailto:jackalmage@gmail.com>
Envoyé : ‎17-‎12-‎13 02:05
À : François REMY<mailto:francois.remy.dev@outlook.com>
Cc : www-style list<mailto:www-style@w3.org>; fantasai<mailto:fantasai.lists@inkedblade.net>; Rossen Atanassov<mailto:Rossen.Atanassov@microsoft.com>
Objet : Re: [css-grid] proposal for repeat to take a third argument for jointure

On Mon, Dec 16, 2013 at 3:18 PM, François REMY
<francois.remy.dev@outlook.com> wrote:
> TLDR: why not “repeat(<int>,  (col-start) 100px (col-end),  10px)” ==> “(col-start) 100px (col-end)  10px ... 10px  (col-start) 100px (col-end)”?
>
> Reasoning: otherwise, if we want to replicate this behavior, we have to write “(col-start) 100px (col-end) repeat(<int-1>, 10px (col-start) 100px (col-end))” which is counter-intuitive (and I remember we thought it was annoying to have to define “function(<length> [, <length>]*)” instead of “function([<length>]{,}+)” and this seems like a similar issue here).
>
> Thoughts?

Can you give some actual examples of where you'd want something like this?

Also, it's very unclear to me why you chose the precise definition you
did.  Wouldn't it be (int - 2) in the expanded version?  Can you
explain your reasoning?

Also, what's "jointure"?  Wikipedia's definition
<https://en.wikipedia.org/wiki/Jointure> doesn't seem relevant.

~TJ

Received on Tuesday, 17 December 2013 01:12:13 UTC