SAC: parse example

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 UTC