Re: [CSS2.1] Grammar for @media versus general block parsing

Bert Bos wrote:
> 
> The grammar in Paged Media confirms CSS 2.1 in that respect, because it 
> requires semicolons to separate the margin boxes. Adding some 
> semicolons to fix the examples is easy. But those examples show how 
> tempting it is to write them without semicolons...
> 
> Is it too late for a different syntax for margin boxes? E.g., rewriting 
> example V in 3.5.1:
> 
>     @page ::top-left { ... }
>     @page ::bottom-center { ... }
> 
>     @page :left ::left-middle { ... }
>     @page :right ::right-middle { ... }
> 
>     @page :left ::bottom-left-corner { ... }
>     @page :right ::bottom-right-corner { ... }
>     @page :first ::bottom-left-corner { ... }
>     @page :first ::bottom-right-corner { ... }
> 
> The double colons are not nice, but they do remind one of 
> pseudo-elements (just like the single colon in ':first' reminds one of 
> pseudo-classes). And they actually avoid a pair of curly braces, which 
> is worth something, too.

Unfortunately @margin-boxes are already implemented in at least three
implementations.

~fantasai

Received on Wednesday, 2 July 2008 20:34:43 UTC