W3C home > Mailing lists > Public > www-style@w3.org > July 2008

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 02 Jul 2008 13:34:02 -0700
Message-ID: <486BE63A.7080409@inkedblade.net>
To: Bert Bos <bert@w3.org>
CC: "www-style@w3.org" <www-style@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT