W3C home > Mailing lists > Public > www-style@w3.org > November 2000

SAC: parse example

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 26 Nov 2000 19:36:35 +0100
Message-ID: <005e01c057e1$da0c6f40$c7e0a8c0@de>
To: <www-style@w3.org>
Hi,

Given the following style sheet:

h1 {
  /* comment */
  color: red;
}
@page { size 8.5in 11in; margin: 2cm }

Which events are now generated by a SAC 1.1 parser?
I think these should be:

  startDocument
    startSelector
      comment
      property
    endSelector
    startPage
      property
      property
    endPage
  endDocument

right?

Ok, then what about parse errors? Assume the following style sheet:

[...]
#1 { }
@magic url "#id";
h1 {
  color: veryGray
}
h2 {
  -moz-something: "string"
}
* -> * :matches(foo) {
  @import url('index.css')
}

hi :-)
[...]

What events should now be generated?

regards,
--
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 Sunday, 26 November 2000 14:47:19 GMT

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