|
15 | 15 |
|
16 | 16 | <h1 id=title>Selectors Level 4</h1> |
17 | 17 |
|
18 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 July 2011</h2> |
| 18 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 21 July 2011</h2> |
19 | 19 |
|
20 | 20 | <dl> |
21 | 21 | <dt>This version: |
22 | 22 |
|
23 | | - <dd> <!-- <a href="http://www.w3.org/TR/2011/ED-selectors4-20110718/"> |
24 | | - http://www.w3.org/TR/2011/WD-selectors4-20110718</a> --> |
| 23 | + <dd> <!-- <a href="http://www.w3.org/TR/2011/ED-selectors4-20110721/"> |
| 24 | + http://www.w3.org/TR/2011/WD-selectors4-20110721</a> --> |
25 | 25 | <a href="http://dev.w3.org/csswg/selectors4"> |
26 | 26 | http://dev.w3.org/csswg/selectors4</a> |
27 | 27 |
|
@@ -232,6 +232,9 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2> |
232 | 232 |
|
233 | 233 | <li><a href="#useraction-pseudos"><span class=secno>7.5. </span> The |
234 | 234 | user action pseudo-classes :hover, :active, and :focus</a> |
| 235 | + |
| 236 | + <li><a href="#current-pseudo"><span class=secno>7.6. </span> The |
| 237 | + currently-playing pseudo-class <code>:current</code></a> |
235 | 238 | </ul> |
236 | 239 |
|
237 | 240 | <li><a href="#linguistic-pseudos"><span class=secno>8. </span> Linguistic |
@@ -1919,6 +1922,29 @@ <h3 id=useraction-pseudos><span class=secno>7.5. </span> The user action |
1919 | 1922 | class=css>:link</code>’ and ‘<code |
1920 | 1923 | class=css>:active</code>’). |
1921 | 1924 |
|
| 1925 | + <h3 id=current-pseudo><span class=secno>7.6. </span> The currently-playing |
| 1926 | + pseudo-class <code>:current</code></h3> |
| 1927 | + |
| 1928 | + <p>The <code>:current</code> pseudo-class represents the innermost element, |
| 1929 | + or ancestor of an element, that is currently being rendered in a |
| 1930 | + time-dimensional canvas, such as during speech rendering of a document. |
| 1931 | + Its alternate form <code>:current()</code>, like <code>:matches()</code>, |
| 1932 | + takes a list of compound selectors as its argument: it represents the |
| 1933 | + <code>:current</code> element that matches the argument or, if that does |
| 1934 | + not match, the innermost ancestor of the <code>:current</code> element |
| 1935 | + that does. (If neither the <code>:current</code> element nor its ancestors |
| 1936 | + match the argument, then the selector does not represent anything.) |
| 1937 | + |
| 1938 | + <div class=example> |
| 1939 | + <p>For example, the following rule will highlight whichever paragraph or |
| 1940 | + list item is being read aloud in a speech rendering of the document: |
| 1941 | + |
| 1942 | + <pre> |
| 1943 | +<!-- -->:current(p, li, dt, dd) { |
| 1944 | +<!-- --> background: yellow; |
| 1945 | +<!-- -->}</pre> |
| 1946 | + </div> |
| 1947 | + |
1922 | 1948 | <h2 id=linguistic-pseudos><span class=secno>8. </span> Linguistic |
1923 | 1949 | Pseudo-classes</h2> |
1924 | 1950 |
|
@@ -1953,11 +1979,12 @@ <h3 id=dir-pseudo><span class=secno>8.1. </span> The directionality |
1953 | 1979 | For example, in HTML, the directionality of an element inherits so that a |
1954 | 1980 | child without a <code>dir</code> attribute will have the same |
1955 | 1981 | directionality as its closest ancestor with a valid <code>dir</code> |
1956 | | - attribute. As another example, in <a href="#HTML5" |
1957 | | - rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>, an element that matches |
1958 | | - <code>[dir=auto]</code> will match either <code>:dir(ltr)</code> or |
1959 | | - <code>:dir(rtl)</code> depending on the resolved directionality of the |
1960 | | - elements as determined by its contents. |
| 1982 | + attribute. As another example, <a |
| 1983 | + href="http://www.w3.org/TR/html5/#the-directionality">in HTML5</a>, an |
| 1984 | + element that matches <code>[dir=auto]</code> will match either |
| 1985 | + <code>:dir(ltr)</code> or <code>:dir(rtl)</code> depending on the resolved |
| 1986 | + directionality of the elements as determined by its contents. <a |
| 1987 | + href="#HTML5" rel=biblioentry>[HTML5]<!--{{HTML5}}--></a> |
1961 | 1988 |
|
1962 | 1989 | <h3 id=lang-pseudo><span class=secno>8.2. </span> The language pseudo-class |
1963 | 1990 | <code>:lang</code></h3> |
|
0 commit comments