| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <style> | 2 <style> |
| 3 #a:nth-child(1n+0) { color: green; } | 3 #a:nth-child(1n+0) { color: green; } |
| 4 #b:nth-child(n+0) { color: green; } | 4 #b:nth-child(n+0) { color: green; } |
| 5 #c:nth-child(n) { color: green; } | 5 #c:nth-child(n) { color: green; } |
| 6 #d:nth-child(-n+0) { color: green; } | 6 #d:nth-child(-n+0) { color: green; } |
| 7 #e:nth-child(-n) { color: green; } | 7 #e:nth-child(-n) { color: green; } |
| 8 | 8 |
| 9 #f:nth-child(1N+0) { color: green; } | 9 #f:nth-child(1N+0) { color: green; } |
| 10 #g:nth-child(N+0) { color: green; } | 10 #g:nth-child(N+0) { color: green; } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 <p>Test parsing of CSS nth-child tokens.</p> | 64 <p>Test parsing of CSS nth-child tokens.</p> |
| 65 | 65 |
| 66 <p id="message">TEST DID NOT COMPLETE</p> | 66 <p id="message">TEST DID NOT COMPLETE</p> |
| 67 | 67 |
| 68 <p>Rules from the stylesheet:</p> | 68 <p>Rules from the stylesheet:</p> |
| 69 | 69 |
| 70 <pre id="result"></pre> | 70 <pre id="result"></pre> |
| 71 | 71 |
| 72 <p>Expected result:</p> | 72 <p>Expected result:</p> |
| 73 | 73 |
| 74 <pre id="expected">#a:nth-child(1n+0) { color: green; } | 74 <pre id="expected">#a:nth-child(1n) { color: green; } |
| 75 #b:nth-child(n+0) { color: green; } | 75 #b:nth-child(1n) { color: green; } |
| 76 #c:nth-child(n) { color: green; } | 76 #c:nth-child(1n) { color: green; } |
| 77 #d:nth-child(-n+0) { color: green; } | 77 #d:nth-child(-1n) { color: green; } |
| 78 #e:nth-child(-n) { color: green; } | 78 #e:nth-child(-1n) { color: green; } |
| 79 #f:nth-child(1N+0) { color: green; } | 79 #f:nth-child(1n) { color: green; } |
| 80 #g:nth-child(N+0) { color: green; } | 80 #g:nth-child(1n) { color: green; } |
| 81 #h:nth-child(N) { color: green; } | 81 #h:nth-child(1n) { color: green; } |
| 82 #i:nth-child(-N+0) { color: green; } | 82 #i:nth-child(-1n) { color: green; } |
| 83 #j:nth-child(-N) { color: green; } | 83 #j:nth-child(-1n) { color: green; } |
| 84 #l:nth-child(-1N | 84 #l:nth-child(-1n-123) { color: green; } |
| 85 - | 85 #m:nth-child(1n-123) { color: green; } |
| 86 123) { color: green; } | 86 #o:nth-child(23n+123) { color: green; } |
| 87 #m:nth-child(N- 123) { color: green; } | 87 #t:nth-child(1n+3) { color: green; } |
| 88 #o:nth-child(23n | 88 #u:nth-child(1n+7) { color: green; } |
| 89 | |
| 90 + | |
| 91 | |
| 92 123) { color: green; } | |
| 93 #t:nth-child(+n+3) { color: green; } | |
| 94 #u:nth-child(+n + 7) { color: green; } | |
| 95 </pre> | 89 </pre> |
| 96 | 90 |
| 97 <script> | 91 <script> |
| 98 | 92 |
| 99 </script> | 93 </script> |
| 100 </body> | 94 </body> |
| OLD | NEW |