Note about nth-child and preceding elements.
This commit is contained in:
parent
8446e172e7
commit
5d57f62f76
|
@ -398,8 +398,11 @@ For `:root` the XPath expression is:
|
||||||
### :nth-child(n)
|
### :nth-child(n)
|
||||||
|
|
||||||
The `:nth-child(n)` selector can be used to select a set of elements based on
|
The `:nth-child(n)` selector can be used to select a set of elements based on
|
||||||
their position and/or an interval. Here `n` is an argument that can be used to
|
their position or an interval, skipping elements that occur in a set before
|
||||||
specify one of the following:
|
the given position or interval.
|
||||||
|
|
||||||
|
In the form `:nth-child(n)` the identifier `n` is an argument that can be used
|
||||||
|
to specify one of the following:
|
||||||
|
|
||||||
1. A literal node set index
|
1. A literal node set index
|
||||||
2. A node interval used to match every N nodes
|
2. A node interval used to match every N nodes
|
||||||
|
|
Loading…
Reference in New Issue