Re: t040105-atrule-04-b.htm

On Friday 05 January 2007 01:48, you wrote:
> The test named in the subject provides a help link to
> http://www.w3.org/TR/CSS21/syndata.html#at-rules.  However I find
> nothing in that section to explain why the output of the test should be
> green.
>
> What statement(s) in the 2.1 spec is/are being tested here?
>
I think it is actually testing 
http://www.w3.org/TR/CSS21/syndata.html#error-parsing

First the rule that unknown-at-rules trigger ignore to next semi-colon or 
block, whichever comes first. 

So it tests that the stylesheet has the same effect as:
  p { color: green; };
  p { color: red; }


Then it tests, that an excess semicolon is treated as part of an unknown 
selector, which is also ignored until next block or semicolon.

Giving:
  p { color: green; }

`Allan

Received on Friday, 5 January 2007 08:28:51 UTC