rulesets without selector

Hi,

CSS Level 2 defines:

  ruleset : selector? '{'
              S* declaration? [ ';' S* declaration? ]*
            '}' S*;

Why is a selector optional? A stylesheet like

    { color: red }

does not make any sense to me.

selector is by the way defined as any+ where any can be a whitespace, so even
if a selector is required, the above stylesheet conforms to the core syntax.
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
  "Everything we see or seem is but a dream within a dream" - E.A. Poe

Received on Saturday, 2 December 2000 14:34:06 UTC