W3C home > Mailing lists > Public > public-css-testsuite@w3.org > January 2007

Re: t040105-atrule-04-b.htm

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Fri, 5 Jan 2007 09:28:36 +0100
To: "Grant, Melinda" <melinda.grant@hp.com>
Cc: public-css-testsuite@w3.org
Message-Id: <200701050928.36804.kde@carewolf.com>

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

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:12 UTC