kolibrios/programs/network/netsurf/libcss/test/data/parse2
Dmitry Pereverzev (SoUrcerer) 370da47fa0 Netsurf initial port (still needs native ui and cURL)
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-01 17:14:14 +00:00
..
au.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
bg.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
bgpos.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
border.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
comments.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
eof.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
font.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
illegal-values.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
INDEX Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
list.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
malformed-declarations.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
margin.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
multicol.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
outline.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
padding.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
README Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
selectors.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
tests1.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +00:00
unknown-properties.dat Netsurf initial port (still needs native ui and cURL) 2013-06-01 17:14:14 +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)