forked from KolibriOS/kolibrios
bb2bbc6b91
git-svn-id: svn://kolibrios.org@4364 a494cfbc-eb01-0410-851d-a64ba20cac60
40 lines
613 B
Plaintext
40 lines
613 B
Plaintext
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)
|
|
|