OLD | NEW |
1 <head> | 1 <head> |
2 <style type="text/css"> | 2 <style type="text/css"> |
3 #a:nth-child(n-1) { color: green; } | 3 #a:nth-child(n-1) { color: green; } |
4 #b:nth-child(n- 10) { color: green; } | 4 #b:nth-child(n- 10) { color: green; } |
5 #c:nth-child(n- 1 2) { color: green; } | 5 #c:nth-child(n- 1 2) { color: green; } |
6 #d:nth-child(n-b1) { color: green; } | 6 #d:nth-child(n-b1) { color: green; } |
7 #e:nth-child(n-+1) { color: green; } | 7 #e:nth-child(n-+1) { color: green; } |
8 #f:nth-child(n-1n) { color: green; } | 8 #f:nth-child(n-1n) { color: green; } |
9 #g:nth-child(-n-1) { color: green; } | 9 #g:nth-child(-n-1) { color: green; } |
10 #h:nth-child(-n- 10) { color: green; } | 10 #h:nth-child(-n- 10) { color: green; } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 </head> | 45 </head> |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 <p id="message">TEST DID NOT COMPLETE</p> | 47 <p id="message">TEST DID NOT COMPLETE</p> |
48 | 48 |
49 <p>Rules from the stylesheet:</p> | 49 <p>Rules from the stylesheet:</p> |
50 | 50 |
51 <pre id="result"></pre> | 51 <pre id="result"></pre> |
52 | 52 |
53 <p>Expected result:</p> | 53 <p>Expected result:</p> |
54 | 54 |
55 <pre id="expected">#a:nth-child(n-1) { color: green; } | 55 <pre id="expected">#a:nth-child(1n-1) { color: green; } |
56 #b:nth-child(n- 10) { color: green; } | 56 #b:nth-child(1n-10) { color: green; } |
57 #g:nth-child(-n-1) { color: green; } | 57 #g:nth-child(-1n-1) { color: green; } |
58 #h:nth-child(-n- 10) { color: green; } | 58 #h:nth-child(-1n-10) { color: green; } |
59 #n:nth-child(-n | 59 #n:nth-child(-1n-1) { color: green; } |
60 - 1) { color: green; } | 60 #o:nth-child(-1n+13) { color: green; } |
61 #o:nth-child(-n | |
62 +13) { color: green; } | |
63 </pre> | 61 </pre> |
64 </body> | 62 </body> |
OLD | NEW |