Skip to content

Commit a06e00a

Browse files
committed
[selectors] Added an issue about the restriction on nesting :matches() and :not().
1 parent 86ff191 commit a06e00a

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

selectors/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,10 @@ The Matches-Any Pseudo-class: '':matches()''</h3>
12091209
Additionally, pseudo-elements cannot be represented by the matches-any pseudo-class;
12101210
they are not valid within '':matches()''.
12111211

1212+
Issue: This restriction probably isn't necessary.
1213+
If it is, it needs to be expanded,
1214+
since '':has()'' and '':nth-child()'' have the same functionality as '':matches()''.
1215+
12121216
Default namespace declarations do not affect any “implied” universal selectors
12131217
within a '':matches()'' pseudo-class.
12141218

selectors/Overview.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,10 @@ <h3 class="heading settled heading" data-level=4.2 id=matches><span class=secno>
14231423
Additionally, pseudo-elements cannot be represented by the matches-any pseudo-class;
14241424
they are not valid within <a class=css data-link-type=maybe href=#matches-pseudo title=:matches()>:matches()</a>.
14251425

1426+
<p class=issue id=issue-2adb46fb><a class=self-link href=#issue-2adb46fb></a> This restriction probably isn’t necessary.
1427+
If it is, it needs to be expanded,
1428+
since <a class=css data-link-type=maybe href=#has-pseudo title=:has()>:has()</a> and <a class=css data-link-type=maybe href=#nth-child-pseudo title=:nth-child()>:nth-child()</a> have the same functionality as <a class=css data-link-type=maybe href=#matches-pseudo title=:matches()>:matches()</a>.
1429+
14261430
<p> Default namespace declarations do not affect any “implied” universal selectors
14271431
within a <a class=css data-link-type=maybe href=#matches-pseudo title=:matches()>:matches()</a> pseudo-class.
14281432

@@ -3724,7 +3728,11 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
37243728

37253729
<a href=#issue-73b391d2></a></div><div class=issue>Explain this better.<a href=#issue-2422b936></a></div>
37263730

3727-
<div class=issue>Add comma-separated syntax for
3731+
<div class=issue> This restriction probably isn’t necessary.
3732+
If it is, it needs to be expanded,
3733+
since <a class=css data-link-type=maybe href=#has-pseudo title=:has()>:has()</a> and <a class=css data-link-type=maybe href=#nth-child-pseudo title=:nth-child()>:nth-child()</a> have the same functionality as <a class=css data-link-type=maybe href=#matches-pseudo title=:matches()>:matches()</a>.
3734+
3735+
<a href=#issue-2adb46fb></a></div><div class=issue>Add comma-separated syntax for
37283736
<a href=http://lists.w3.org/Archives/Public/www-style/2011Mar/0215.html>multiple-value matching</a>?
37293737
e.g. [rel ~= next, prev, up, first, last]
37303738

0 commit comments

Comments
 (0)