Skip to content

Commit beb5892

Browse files
committed
Add :past and :future for HTML5 to reference.
1 parent 29e93dd commit beb5892

2 files changed

Lines changed: 64 additions & 21 deletions

File tree

selectors4/Overview.html

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515

1616
<h1 id=title>Selectors Level 4</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 25 July 2011</h2>
18+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 3 August 2011</h2>
1919

2020
<dl>
2121
<dt>This version:
2222

23-
<dd> <!-- <a href="http://www.w3.org/TR/2011/ED-selectors4-20110725/">
24-
http://www.w3.org/TR/2011/WD-selectors4-20110725</a> -->
23+
<dd> <!-- <a href="http://www.w3.org/TR/2011/ED-selectors4-20110803/">
24+
http://www.w3.org/TR/2011/WD-selectors4-20110803</a> -->
2525
<a href="http://dev.w3.org/csswg/selectors4">
2626
http://dev.w3.org/csswg/selectors4</a>
2727

@@ -254,7 +254,13 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
254254
Presentation Pseudo-classes</a>
255255
<ul class=toc>
256256
<li><a href="#current-pseudo"><span class=secno>9.1. </span> The
257-
currently-playing pseudo-class <code>:current</code></a>
257+
current-element pseudo-class <code>:current</code></a>
258+
259+
<li><a href="#past-pseudo"><span class=secno>9.2. </span> The
260+
past-element pseudo-class <code>:past</code></a>
261+
262+
<li><a href="#future-pseudo"><span class=secno>9.3. </span> The
263+
future-element pseudo-class <code>:future</code></a>
258264
</ul>
259265

260266
<li><a href="#linguistic-pseudos"><span class=secno>10. </span> Linguistic
@@ -1973,18 +1979,19 @@ <h3 id=active-pseudo><span class=secno>8.3. </span> The input focus
19731979
<h2 id=time-pseudo><span class=secno>9. </span> Time-linear Presentation
19741980
Pseudo-classes</h2>
19751981

1976-
<h3 id=current-pseudo><span class=secno>9.1. </span> The currently-playing
1982+
<h3 id=current-pseudo><span class=secno>9.1. </span> The current-element
19771983
pseudo-class <code>:current</code></h3>
19781984

19791985
<p>The <code>:current</code> pseudo-class represents the innermost element,
1980-
or ancestor of an element, that is currently being rendered in a
1981-
time-dimensional canvas, such as during speech rendering of a document.
1982-
Its alternate form <code>:current()</code>, like <code>:matches()</code>,
1983-
takes a list of compound selectors as its argument: it represents the
1984-
<code>:current</code> element that matches the argument or, if that does
1985-
not match, the innermost ancestor of the <code>:current</code> element
1986-
that does. (If neither the <code>:current</code> element nor its ancestors
1987-
match the argument, then the selector does not represent anything.)
1986+
or ancestor of an element, that is currently being displayed in a
1987+
time-dimensional canvas, such as during speech rendering of an HTML
1988+
document. Its alternate form <code>:current()</code>, like
1989+
<code>:matches()</code>, takes a list of compound selectors as its
1990+
argument: it represents the <code>:current</code> element that matches the
1991+
argument or, if that does not match, the innermost ancestor of the
1992+
<code>:current</code> element that does. (If neither the
1993+
<code>:current</code> element nor its ancestors match the argument, then
1994+
the selector does not represent anything.)
19881995

19891996
<div class=example>
19901997
<p>For example, the following rule will highlight whichever paragraph or
@@ -1996,6 +2003,24 @@ <h3 id=current-pseudo><span class=secno>9.1. </span> The currently-playing
19962003
<!-- -->}</pre>
19972004
</div>
19982005

2006+
<h3 id=past-pseudo><span class=secno>9.2. </span> The past-element
2007+
pseudo-class <code>:past</code></h3>
2008+
2009+
<p>The <code>:past</code> pseudo-class represents any element that is
2010+
defined to occur entirely prior to a <code>:current<code> element. If a
2011+
time-based order of elements is not defined by the document language, then
2012+
this represents any element that is a (possibly indirect) previous sibling
2013+
of a <code>:current</code> element. </code></code>
2014+
2015+
<h3 id=future-pseudo><span class=secno>9.3. </span> The future-element
2016+
pseudo-class <code>:future</code></h3>
2017+
2018+
<p>The <code>:future</code> pseudo-class represents any element that is
2019+
defined to occur entirely after a <code>:current<code> element. If a
2020+
time-based order of elements is not defined by the document language, then
2021+
this represents any element that is a (possibly indirect) next sibling of
2022+
a <code>:current</code> element. </code></code>
2023+
19992024
<h2 id=linguistic-pseudos><span class=secno>10. </span> Linguistic
20002025
Pseudo-classes</h2>
20012026

@@ -3398,10 +3423,10 @@ <h3 id=informative-references><span class=secno>19.2. </span> Informative
33983423
<dt id=SVG11>[SVG11]
33993424

34003425
<dd>Erik Dahlstr&#246;m; et al. <a
3401-
href="http://www.w3.org/TR/2011/WD-SVG11-20110512/"><cite>Scalable Vector
3402-
Graphics (SVG) 1.1 (Second Edition).</cite></a> 12 May 2011. W3C Working
3403-
Draft. (Work in progress.) URL: <a
3404-
href="http://www.w3.org/TR/2011/WD-SVG11-20110512/">http://www.w3.org/TR/2011/WD-SVG11-20110512/</a>
3426+
href="http://www.w3.org/TR/2011/PR-SVG11-20110609/"><cite>Scalable Vector
3427+
Graphics (SVG) 1.1 (Second Edition).</cite></a> 9 June 2011. W3C Proposed
3428+
Recommendation. (Work in progress.) URL: <a
3429+
href="http://www.w3.org/TR/2011/PR-SVG11-20110609/">http://www.w3.org/TR/2011/PR-SVG11-20110609/</a>
34053430
</dd>
34063431
<!---->
34073432

selectors4/Overview.src.html

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,12 +1462,12 @@ <h2 id="time-pseudo">
14621462
Time-linear Presentation Pseudo-classes</h2>
14631463

14641464
<h3 id="current-pseudo">
1465-
The currently-playing pseudo-class <code>:current</code></h3>
1465+
The current-element pseudo-class <code>:current</code></h3>
14661466

14671467
<p>The <code>:current</code> pseudo-class represents the innermost
1468-
element, or ancestor of an element, that is currently being rendered
1469-
in a time-dimensional canvas, such as during speech rendering of a
1470-
document.
1468+
element, or ancestor of an element, that is currently being displayed
1469+
in a time-dimensional canvas, such as during speech rendering of an
1470+
HTML document.
14711471
Its alternate form <code>:current()</code>, like <code>:matches()</code>,
14721472
takes a list of compound selectors as its argument: it represents the
14731473
<code>:current</code> element that matches the argument or, if that does
@@ -1484,6 +1484,24 @@ <h3 id="current-pseudo">
14841484
<!-- -->}</pre>
14851485
</div>
14861486

1487+
<h3 id="past-pseudo">
1488+
The past-element pseudo-class <code>:past</code></h3>
1489+
1490+
<p>The <code>:past</code> pseudo-class represents any element that is
1491+
defined to occur entirely prior to a <code>:current<code> element.
1492+
If a time-based order of elements is not defined by the document language,
1493+
then this represents any element that is a (possibly indirect) previous
1494+
sibling of a <code>:current</code> element.
1495+
1496+
<h3 id="future-pseudo">
1497+
The future-element pseudo-class <code>:future</code></h3>
1498+
1499+
<p>The <code>:future</code> pseudo-class represents any element that is
1500+
defined to occur entirely after a <code>:current<code> element.
1501+
If a time-based order of elements is not defined by the document language,
1502+
then this represents any element that is a (possibly indirect) next
1503+
sibling of a <code>:current</code> element.
1504+
14871505
<h2 id="linguistic-pseudos">
14881506
Linguistic Pseudo-classes</h2>
14891507

0 commit comments

Comments
 (0)