kolibrios/contrib/network/netsurf/libcss/test/data/parse2
Yogev Ezra bb2bbc6b91 Move NetSurf to /contrib folder
git-svn-id: svn://kolibrios.org@4364 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-15 14:01:21 +00:00
..
au.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
bg.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
bgpos.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
border.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
comments.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
eof.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
font.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
illegal-values.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
INDEX Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
list.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
malformed-declarations.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
margin.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
multicol.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
outline.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
padding.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
README Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
selectors.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
tests1.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00
unknown-properties.dat Move NetSurf to /contrib folder 2013-12-15 14:01:21 +00:00

Parser testcases
================

Format
------

#data
<css source data>
#errors
<list of expected errors, with line/col offsets> (ignored at present)
#expected
<cssom tree, as below>
#reset

Format of cssom tree
--------------------

  line        ::= rule | declaration
  rule        ::= '| ' name
  name        ::= .+
  declaration ::= '|  ' property-name ': ' property-value

Example
-------

#data
* { color: #ff0000; background-image: url("foo.png"); }
#errors
#expected
| *
|  color: #ff000000
|  background-image: url("foo.png")
#reset

TODO
----

  + Permit nesting of rules (for nested block support)