Skip to content

Commit ac45936

Browse files
authored
Apply the resolution to #3925
Remove the notion of Live and Snapshot Profiles and mark `:has()` as "at risk" and "optional", according to the [resolution]()#3925 (comment) to #3925
1 parent af17e39 commit ac45936

File tree

1 file changed

+12
-38
lines changed

1 file changed

+12
-38
lines changed

selectors-4/Overview.bs

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Abstract: <a>Selectors</a> are patterns that match against elements in a tree, a
2323
Abstract: Selectors Level 4 describes the selectors that already exist in [[!SELECT]], and further introduces new selectors for CSS and other languages that may need them.
2424
At Risk: the column combinator
2525
At Risk: the '':read-write'' pseudo-class
26+
At Risk: the '':has()'' pseudo-class
2627
Ignored Terms: function token, Document, DocumentFragment, math, h1, shadow tree, querySelector(), quirks mode, button, a, span, object, p, div, q, area, link, label, input, html, em, li, ol, pre, CSS Value Definition Syntax
2728
Ignored Vars: identifier, extended filtering, i
2829
</pre>
@@ -487,44 +488,6 @@ Selectors Overview</h2>
487488

488489
Note: Some Level 4 selectors (noted above as "3-UI") were introduced in [[CSS3UI]].
489490

490-
<h3 id="profiles">
491-
<a>Live</a> vs <a>Snapshot</a> Selector Profiles</h3>
492-
493-
Selectors are used in many different contexts,
494-
with wildly varying performance characteristics.
495-
Some powerful selectors are unfortunately too slow
496-
to realistically include in the more performance-sensitive contexts.
497-
To accommodate this, two profiles of the Selectors spec are defined:
498-
499-
<dl>
500-
<dt><dfn local-lt="live">live profile</dfn>
501-
<dd>
502-
The <a>live</a> profile is appropriate for use in any context,
503-
including browser CSS selector matching, which is live.
504-
It includes every selector defined in this document,
505-
except for:
506-
507-
<ul>
508-
<li>The '':has()'' pseudo-class
509-
</ul>
510-
511-
<dt><dfn local-lt="snapshot">snapshot profile</dfn>
512-
<dd>
513-
The <a>snapshot</a> profile is appropriate for contexts which aren't extremely performance sensitive;
514-
in particular, it's appropriate for contexts which evaluate selectors against a static document tree.
515-
For example, the {{Element/querySelector()}} method defined in [[DOM]] should use the <a>snapshot</a> profile.
516-
It includes all of the selectors defined in this document.
517-
</dl>
518-
519-
CSS implementations conformant to Selectors Level 4 must use the <a>live</a> profile for CSS selection.
520-
Implementations using the <a>live</a> profile must treat selectors that are not included in the profile
521-
as unknown and invalid.
522-
523-
<p class='issue'>
524-
The categorization of things into the “live” or snapshot profiles needs implementor review.
525-
If some things currently not in the live profile can reasonably be done in CSS Selectors,
526-
we should move them.
527-
528491

529492
<h2 id="syntax">
530493
Selector Syntax and Structure</h2>
@@ -1276,6 +1239,8 @@ The Relational Pseudo-class: '':has()''</h3>
12761239
...would result matching any <code>&lt;section></code> element
12771240
which contains anything that's not a heading element.
12781241
</div>
1242+
1243+
Supporting the '':has()'' pseudo-class is not required to conform to this specification.
12791244

12801245

12811246
<h2 id="elemental-selectors">
@@ -3901,6 +3866,15 @@ Appendix B: Obsolete but Required Parsing Quirks for Web Compat</h2>
39013866

39023867
<h2 id="changes">
39033868
Changes</h2>
3869+
<h3 id="changes-2018-11">
3870+
Changes since the 21 November 2018 Working Draft</h3>
3871+
3872+
Significant changes since the <a href="https://www.w3.org/TR/2018/WD-selectors-4-20181121/">21 November 2018 Working Draft</a>:
3873+
3874+
<ul>
3875+
<li>Removed the Selector profiles, marked '':has()'' as optional and at-risk instead.
3876+
(<a href="https://github.com/w3c/csswg-drafts/issues/3925">Issue 3925</a>)
3877+
</ul>
39043878

39053879
<h3 id="changes-2018-02">
39063880
Changes since the 2 February 2018 Working Draft</h3>

0 commit comments

Comments
 (0)