Re: Strawman proposal for tweaking background shorthand syntax to address position/size complexity

On Monday 11 May 2009, Jeff Walden wrote:
> On 9.5.09 16:04, Jeff Walden wrote:
> > I have no particular love for this proposal except that it's close
> > to a patch I wrote to Gecko for this
>
> Close no longer, as I ripped out the shorthand syntax parsing parts
> of that patch pending better, more final syntax here.  Moreover, this
> strawman requires greater parser lookahead than is otherwise
> necessary for parsing CSS, which is probably a bigger problem than
> the ugliness the proposal was intended to address, all things
> considered.

Do you have any opinion on the alternative syntax with parentheses that 
I mentioned earlier[1]?

    <bg-layer> = <bg-image> || <bg-position> || ( <bg-size> ) ||
      <repeat> || <attachment> || <bg-origin> || no-clip

    <final-bg-layer> = <bg-image> [ / <color> ]? ||
      <bg-position> || ( <bg-size> ) || <repeat> || <attachment> ||
      <bg-origin> || no-clip || <bg-color>

Or the functional notation

    <bg-layer> = ... size( <bg-size> ) ...

that somebody else suggested[2]?

[1] http://lists.w3.org/Archives/Public/www-style/2009Apr/0358.html
[2] http://lists.w3.org/Archives/Public/www-style/2009Apr/0371.html



Bert

PS. Related to ISSUE-63 and ACTION-105

-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Monday, 11 May 2009 17:05:01 UTC