Skip to content

Commit 3a2efb3

Browse files
committed
[css-conditional-4] Clarify that unknown/invalid portions of a selector that do not invalidate the selector cause the selector to be unsupported nonetheless. w3c#7280
1 parent 95c2bfa commit 3a2efb3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

css-conditional-4/Overview.bs

+15-2
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,16 @@ Extensions to the definition of support</h3>
124124

125125
A CSS processor is considered to
126126
<dfn export for=CSS id="dfn-support-selector">support a CSS selector</dfn>
127-
if it accepts that selector
128-
(rather than discarding it as a parse error),
127+
if it accepts that all aspects of that selector, recursively,
128+
(rather than considering any of its syntax to be unknown or invalid)
129129
and that selector doesn't contain
130130
<a>unknown -webkit- pseudo-elements</a>.
131131

132+
Note: Some functional selectors are parsed forgivingly,
133+
i.e. if some arguments are unknown/invalid,
134+
the selector itself is not invalidated.
135+
These are nonetheless unsupported
136+
132137
<h2 class=no-num id="security">Security Considerations</h2>
133138

134139
No Security issues have been raised against this document
@@ -159,6 +164,14 @@ Extensions to the definition of support</h3>
159164
<h2 id='changes' class='no-num'>
160165
Changes</h2>
161166

167+
<h3 id="changes-from-2022-02-17" class="no-num">
168+
Changes since the <a href="https://www.w3.org/TR/2022/CR-css-conditional-4-20220217/">Candidate Recommendation Snapshot of 17 February 2022</a></h3>
169+
170+
<ul>
171+
<li>Clarify that unknown or invalid portions of a selector that do not invalidate the selector
172+
nonetheless cause the selector to be considered unsupported.
173+
</ul>
174+
162175
<h3 id="changes-from-20200303" class="no-num">
163176
Changes since the <a href="https://www.w3.org/TR/2020/WD-css-conditional-4-20200303/">First Public Working Draft of 3 March 2020</a></h3>
164177

0 commit comments

Comments
 (0)