summaryrefslogtreecommitdiff
path: root/test/data/parse2/README
blob: dec15f4a3e91afa7de9d7462c2fce9112af01250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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)