RE: [css-snappoints] 2/27 Updated ED

Thanks, agreed that snap-list as a function isn't necessary since it's just wrapping a list of lengths.  I've updated the spec to just use the list of lengths instead of a snap-list function.  However, based on the guidelines that Fantasai forwarded [1] I'm wondering if these should be comma-separated (per "Lists of parallel items are comma-separated").

The "repeat" syntax you suggest below seems difficult to interpret at face-value to me.  Rather than suggesting a single interval is jointly established by the three tokens, it looks more like 3 orthogonal arguments (e.g. drawing parallels to the shorthand for "background").  Is there some value that already establishes this syntax as precedence?  Otherwise maybe something like one of these?

repeat(<length>? <length>)
<length>? repeat(<length>)

Or drawing inspiration from the Shapes syntax:

repeat(<length> [at <length>]?)

(Also, I think a lot of this will change again as I incorporate the feedback to merge x/y into a single property with coordinate pairs)

Thanks,
-Matt

[1] http://lists.w3.org/Archives/Public/www-style/2014Mar/0032.html


-----Original Message-----
From: Tab Atkins Jr. [mailto:jackalmage@gmail.com] 
Sent: Tuesday, March 4, 2014 11:14 AM
To: Matt Rakow
Cc: www-style@w3.org
Subject: Re: [css-snappoints] 2/27 Updated ED
> 
> On Thu, Feb 27, 2014 at 6:24 PM, Matt Rakow <marakow@microsoft.com> wrote:
> > I've just pushed an update to the ED for Scroll Snap Points.  This is primarily just inserting issue notes for the various feedback I've received from the Seattle f2f, Robert's mail, and some inspection of the proposal on the Mozilla wiki.  I'll continue to address this feedback and start up discussions as needed prior to FPWD, but please do confirm that I've captured your feedback and let me know if I've missed anything.
> >
> > Two quick and easy f2f issues that have been resolved:
> > - Snap coordinates apply to all elements (was block-level elements)
> > - Function naming all lower case and hyphenated, and with no commas 
> > (was camel cased)
> 
> As I've said in multiple feedbacks, the spec's use of functions here is very odd.  The grammar can be rewritten to better match normal usage as something like:
> 
> <length>+ | [ <length>* repeat <length> ] | elements
> 
> -----------
> 
> As currently written, the grammar for snap-list() is wrong.  [] is a grouping operator in CSS grammar, not a repetition operator.  You want "snap-list( <length>+ )".
> 
> ~TJ
>

Received on Wednesday, 5 March 2014 00:38:19 UTC