Skip to content

Commit f4c6cef

Browse files
committed
[selectors-4] Rename :nth-column() to :nth-col() to avoid confusion with potential ::column pseudo-class. Closes #2157.
1 parent e3093cf commit f4c6cef

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

selectors-4/Overview.bs

+13-11
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,13 @@ Selectors Overview</h2>
478478
<td>[[#table-pseudos]]
479479
<td>4
480480
<tr>
481-
<td><code>E:nth-column(<var>n</var>)</code>
481+
<td><code>E:nth-col(<var>n</var>)</code>
482482
<td>an E element that represents a cell belonging to the
483483
<var>n</var>th column in a grid/table
484484
<td>[[#table-pseudos]]
485485
<td>4
486486
<tr>
487-
<td><code>E:nth-last-column(<var>n</var>)</code>
487+
<td><code>E:nth-last-col(<var>n</var>)</code>
488488
<td>an E element that represents a cell belonging to the
489489
<var>n</var>th column in a grid/table, counting from the last one
490490
<td>[[#table-pseudos]]
@@ -3143,7 +3143,7 @@ Grid-Structural Selectors</h2>
31433143
are represented hierarchically); the columns must be implied.
31443144
To be able to represent such implied column-based relationships, the
31453145
<a>column combinator</a> and the
3146-
'':nth-column()'' and '':nth-last-column()'' pseudo-classes
3146+
'':nth-col()'' and '':nth-last-col()'' pseudo-classes
31473147
are defined.
31483148
In a column-primary format, these pseudo-classes match against row associations instead.
31493149

@@ -3180,10 +3180,10 @@ Column combinator</h3>
31803180
</pre>
31813181
</div>
31823182

3183-
<h3 id="the-nth-column-pseudo">
3184-
'':nth-column()'' pseudo-class</h3>
3183+
<h3 id="the-nth-col-pseudo">
3184+
'':nth-col()'' pseudo-class</h3>
31853185

3186-
The <dfn id='nth-column-pseudo' lt=":nth-column()">:nth-column(<var>An+B</var>)</dfn>
3186+
The <dfn id='nth-col-pseudo' lt=":nth-col()">:nth-col(<var>An+B</var>)</dfn>
31873187
pseudo-class notation represents a cell element belonging to a column
31883188
that has <var>An+B</var>-1 columns
31893189
<strong>before</strong> it, for any positive
@@ -3197,10 +3197,10 @@ Column combinator</h3>
31973197

31983198

31993199

3200-
<h3 id="the-nth-last-column-pseudo">
3201-
'':nth-last-column()'' pseudo-class</h3>
3200+
<h3 id="the-nth-last-col-pseudo">
3201+
'':nth-last-col()'' pseudo-class</h3>
32023202

3203-
The <dfn id='nth-last-column-pseudo' lt=":nth-last-column()">:nth-last-column(<var>An+B</var>)</dfn>
3203+
The <dfn id='nth-last-col-pseudo' lt=":nth-last-col()">:nth-last-col(<var>An+B</var>)</dfn>
32043204
pseudo-class notation represents a cell element belonging to a column
32053205
that has <var>An+B</var>-1 columns
32063206
<strong>after</strong> it, for any positive
@@ -3759,6 +3759,10 @@ Changes</h2>
37593759
(See <a href="https://github.com/w3c/csswg-drafts/issues/1967">open issue</a>.)
37603760
<li>Renamed '':user-error'' to '':user-invalid''.
37613761
(See <a href="https://www.w3.org/mid/CADhPm3v+WfeGQfBwwx8QBuiOjn2k38V_DcKW17Cm81VgZb1nbQ@mail.gmail.com">Discussion</a>)
3762+
<li>Renamed '':nth-column()''/'':nth-last-column()'' to '':nth-col()''/'':nth-last-col()''
3763+
to avoid naming confusion with a potential ''::column'' pseudo-class.
3764+
<li>Changed the <css>:local-link</css> pseudo-class to account for fragment URLs.
3765+
<li>Removed the <code>:local-link()</code> pseudo-class and reference combinator for lack of interest.
37623766
<li>Rewrote selectors grammar using the CSS Value Definition Syntax.
37633767
<li>Split out <a>relative selectors</a> from <a>scoped selectors</a>,
37643768
as these are different concepts that can be independently invoked.
@@ -3788,8 +3792,6 @@ Changes</h2>
37883792
<li>Defined <a>specificity</a> of a <a>selector list</a>. (Why?)
37893793
<li>Required quotes around '':lang()'' values involving an asterisk;
37903794
only language codes which happen to bhe CSS identifiers can be used unquoted.
3791-
<li>Changed the <css>:local-link</css> pseudo-class to account for fragment URLs.
3792-
<li>Removed the <code>:local-link()</code> pseudo-class and reference combinator for lack of interest.
37933795
</ul>
37943796

37953797

0 commit comments

Comments
 (0)