forked from KolibriOS/kolibrios
370da47fa0
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
247 lines
2.5 KiB
Plaintext
247 lines
2.5 KiB
Plaintext
# Test data for nth-* expressions
|
|
|
|
# Odd and Even
|
|
|
|
#data
|
|
E:nth-child(odd) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(even) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+0)
|
|
#reset
|
|
|
|
# Basic numbers
|
|
|
|
#data
|
|
E:nth-child(1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(0n+1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(-1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(0n+-1)
|
|
#reset
|
|
|
|
# IDENT ws [ NUMBER ws ]?
|
|
|
|
#data
|
|
E:nth-child(n) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(1n+0)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(-n) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(-1n+0)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(-n- 1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(-1n+-1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(-n-1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(-1n+-1)
|
|
#reset
|
|
|
|
# DIMENSION ws [ NUMBER ws ]?
|
|
|
|
#data
|
|
E:nth-child(2n) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+0)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(-2n) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(-2n+0)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n- 1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+-1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(-2n- 1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(-2n+-1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n-1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+-1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(-2n-1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(-2n+-1)
|
|
#reset
|
|
|
|
# IDENT ws CHAR ws NUMBER ws
|
|
|
|
#data
|
|
E:nth-child(n - 1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(1n+-1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(n+1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(1n+1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(n + 1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(1n+1)
|
|
#reset
|
|
|
|
# DIMENSION ws CHAR ws NUMBER ws
|
|
|
|
#data
|
|
E:nth-child(2n - 1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+-1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n+1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+1)
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n + 1) {}
|
|
#errors
|
|
#expected
|
|
| 1 E:nth-child(2n+1)
|
|
#reset
|
|
|
|
# Illegal inputs
|
|
|
|
#data
|
|
E:nth-child(n--1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(n-+1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(n- -1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(n- +1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(n + -1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(n - +1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n--1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n-+1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n- -1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n- +1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n + -1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(2n - +1) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(3 n) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(+2 n) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|
|
#data
|
|
E:nth-child(+ 2) {}
|
|
#errors
|
|
#expected
|
|
#reset
|
|
|