From eeb0b5a76ccdd27503aab8f891a7ef07afd45553 Mon Sep 17 00:00:00 2001 From: Loirooriol Date: Fri, 28 Apr 2017 03:40:28 +0200 Subject: [PATCH] [selectors-4] Clarifying :nth-child and friends MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was not completely clear what “the An+Bth element” meant, because according to CSS Syntax, this notation represents a list of elements. Fixes #1292 --- selectors/Overview.bs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/selectors/Overview.bs b/selectors/Overview.bs index 3688d366c97..91d22c211c8 100644 --- a/selectors/Overview.bs +++ b/selectors/Overview.bs @@ -2543,9 +2543,8 @@ Child-indexed Pseudo-classes '':nth-child()'' pseudo-class The :nth-child(An+B [of S]? ) - pseudo-class notation represents the An+Bth element - that matches the selector list S - among its inclusive siblings. + pseudo-class notation represents an element among its An+Bth inclusive siblings + that match the selector list S. The CSS Syntax Module [[!CSS3SYN]] defines the An+B notation. If S is omitted, @@ -2619,9 +2618,8 @@ Child-indexed Pseudo-classes '':nth-last-child()'' pseudo-class The :nth-last-child(An+B [of S]? ) - pseudo-class notation represents the An+Bth element - that matches the selector list S - among its inclusive siblings, + pseudo-class notation represents an element among its An+Bth inclusive siblings + that match the selector list S, counting backwards from the end. The CSS Syntax Module [[!CSS3SYN]] defines the An+B notation. @@ -2716,9 +2714,8 @@ Typed Child-indexed Pseudo-classes '':nth-of-type()'' pseudo-class The :nth-of-type(An+B) pseudo-class notation - represents the An+Bth element - with the same namespace and type - among its inclusive siblings. + represents an element among its An+Bth inclusive siblings + with the same namespace and type. The CSS Syntax Module [[!CSS3SYN]] defines the An+B notation. @@ -2742,9 +2739,8 @@ Typed Child-indexed Pseudo-classes '':nth-last-of-type()'' pseudo-class The :nth-last-of-type(An+B) pseudo-class notation - represents the An+Bth element - with the same namespace and type - among its inclusive siblings, + represents an element among its An+Bth inclusive siblings + with the same namespace and type, counting backwards from the end. The CSS Syntax Module [[!CSS3SYN]] defines the An+B notation.