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

Re: [css-syntax] At-rules mixed in any declaration list?

From: Simon Sapin <simon.sapin@exyr.org>
Date: Mon, 20 May 2013 23:44:55 +0800
Message-ID: <519A44F7.5040402@exyr.org>
To: www-style@w3.org
Le 20/05/2013 23:28, François REMY a écrit :
>>>> @page {
>>>> @margin-note { /* not supported */ }
>>>> background: green;
>>>> }
>>
>> My point is that even we don’t define any such at-rule yet, this does
>> make a detectable difference in error handling. It was important that
>> CSS 2.1 defined @page that way, for example.
>
> Not necessarily. We could force at-rules to come after all the
> declarations OR be followed by a semi-colon.

CSS 2.1 does define @page that way, this is just a fact:
http://www.w3.org/TR/CSS21/page.html#page-box

Forcing at-rules to be at the end or have a semi-colon would have also 
worked, but I think is an unnecessary restriction.

-- 
Simon Sapin
Received on Monday, 20 May 2013 15:45:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:30 UTC