Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions selectors/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2543,9 +2543,8 @@ Child-indexed Pseudo-classes</h3>
'':nth-child()'' pseudo-class</h4>

The <dfn id='nth-child-pseudo' lt=":nth-child()">:nth-child(<var>An+B</var> [of <var>S</var>]? )</dfn>
pseudo-class notation represents the <var>An+B</var>th element
that matches the <a>selector list</a> <var>S</var>
among its <a>inclusive siblings</a>.
pseudo-class notation represents an element among its <var>An+B</var>th <a>inclusive siblings</a>
that match the <a>selector list</a> <var>S</var>.

The CSS Syntax Module [[!CSS3SYN]] defines the <a href="https://drafts.csswg.org/css-syntax/#anb"><var>An+B</var> notation</a>.
If <var>S</var> is omitted,
Expand Down Expand Up @@ -2619,9 +2618,8 @@ Child-indexed Pseudo-classes</h3>
'':nth-last-child()'' pseudo-class</h4>

The <dfn id='nth-last-child-pseudo' lt=":nth-last-child()">:nth-last-child(<var>An+B</var> [of <var>S</var>]? )</dfn>
pseudo-class notation represents the <var>An+B</var>th element
that matches the <a>selector list</a> <var>S</var>
among its <a>inclusive siblings</a>,
pseudo-class notation represents an element among its <var>An+B</var>th <a>inclusive siblings</a>
that match the <a>selector list</a> <var>S</var>,
counting backwards from the end.

The CSS Syntax Module [[!CSS3SYN]] defines the <a href="https://drafts.csswg.org/css-syntax/#anb"><var>An+B</var> notation</a>.
Expand Down Expand Up @@ -2716,9 +2714,8 @@ Typed Child-indexed Pseudo-classes</h3>
'':nth-of-type()'' pseudo-class</h4>

The <dfn id='nth-of-type-pseudo' lt=":nth-of-type()">:nth-of-type(<var>An+B</var>)</dfn> pseudo-class notation
represents the <var>An+B</var>th element
with the same <a section href="#type-nmsp">namespace</a> and <a section href="#type-selectors">type</a>
among its <a>inclusive siblings</a>.
represents an element among its <var>An+B</var>th <a>inclusive siblings</a>
with the same <a section href="#type-nmsp">namespace</a> and <a section href="#type-selectors">type</a>.

The CSS Syntax Module [[!CSS3SYN]] defines the <a href="https://drafts.csswg.org/css-syntax/#anb"><var>An+B</var> notation</a>.

Expand All @@ -2742,9 +2739,8 @@ Typed Child-indexed Pseudo-classes</h3>
'':nth-last-of-type()'' pseudo-class</h4>

The <dfn id='nth-last-of-type' lt=":nth-last-of-type()">:nth-last-of-type(<var>An+B</var>)</dfn> pseudo-class notation
represents the <var>An+B</var>th element
with the same <a section href="#type-nmsp">namespace</a> and <a section href="#type-selectors">type</a>
among its <a>inclusive siblings</a>,
represents an element among its <var>An+B</var>th <a>inclusive siblings</a>
with the same <a section href="#type-nmsp">namespace</a> and <a section href="#type-selectors">type</a>,
counting backwards from the end.

The CSS Syntax Module [[!CSS3SYN]] defines the <a href="https://drafts.csswg.org/css-syntax/#anb"><var>An+B</var> notation</a>.
Expand Down