W3C home > Mailing lists > Public > www-style@w3.org > December 2013

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

From: François REMY <francois.remy.dev@outlook.com>
Date: Tue, 17 Dec 2013 02:10:57 +0100
Message-ID: <DUB406-EAS154275A62E761666F397197A5DB0@phx.gbl>
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>, fantasai <fantasai.lists@inkedblade.net>, Rossen Atanassov <Rossen.Atanassov@microsoft.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC