Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. Parser testcases
  2. ================
  3.  
  4. Format
  5. ------
  6.  
  7. #data
  8. <css source data>
  9. #errors
  10. <list of expected errors, with line/col offsets> (ignored at present)
  11. #expected
  12. <cssom tree, as below>
  13. #reset
  14.  
  15. Format of cssom tree
  16. --------------------
  17.  
  18.   line        ::= rule | declaration
  19.   rule        ::= '| ' name
  20.   name        ::= .+
  21.   declaration ::= '|  ' property-name ': ' property-value
  22.  
  23. Example
  24. -------
  25.  
  26. #data
  27. * { color: #ff0000; background-image: url("foo.png"); }
  28. #errors
  29. #expected
  30. | *
  31. |  color: #ff000000
  32. |  background-image: url("foo.png")
  33. #reset
  34.  
  35. TODO
  36. ----
  37.  
  38.   + Permit nesting of rules (for nested block support)
  39.  
  40.