From 5d57f62f7623eff0e57179cf6661d99ab3157b9e Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Mon, 3 Nov 2014 09:31:02 +0100 Subject: [PATCH] Note about nth-child and preceding elements. --- doc/css_selectors.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/css_selectors.md b/doc/css_selectors.md index 01bc8fb..45cda10 100644 --- a/doc/css_selectors.md +++ b/doc/css_selectors.md @@ -398,8 +398,11 @@ For `:root` the XPath expression is: ### :nth-child(n) 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 -specify one of the following: +their position or an interval, skipping elements that occur in a set before +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 2. A node interval used to match every N nodes