Skip to content

Commit 0623e17

Browse files
committed
[css2] added the :hover pseudo-class, Ian could you check terminology?
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40652
1 parent 85e114c commit 0623e17

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

css2/selector.src

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
22
<html lang="en">
3-
<!-- $Id: selector.src,v 1.46 1998-01-15 17:11:14 ijacobs Exp $ -->
3+
<!-- $Id: selector.src,v 1.47 1998-01-15 22:11:57 howcome Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Selectors</title>
@@ -184,7 +184,7 @@ DIV P.myclass *[href]
184184

185185
<h2><a name="child-selectors">Child selectors</a></h2>
186186

187-
<p>A <span class="index-def" title="child selector"> <em>child
187+
<p>A <span class="index-def" title="child selector"><em>child
188188
selector</em></span> matches when an element is the <a
189189
href="conform.html#doctree">child</a> of some element. A child
190190
selector is made up of two or more selectors separated by "&gt;".
@@ -910,11 +910,11 @@ descend from A elements that have not yet been visited:</p>
910910

911911
<h3><a name="anchor-pseudo-classes">Anchor pseudo-classes</a>:
912912
<span class="index-def" title="pseudo-classes:::link|:link">:link,</span>
913-
<span class="index-def" title="pseudo-classes:::active|:active">:active,</span> and <span class="index-def" title="pseudo-classes:::visited|:visited">:visited</span>
913+
<span class="index-def" title="pseudo-classes:::active|:active">:active,</span>,
914+
<span class="index-def" title="pseudo-classes:::visited|:visited">:visited</span>, and
915+
<span class="index-def" title="pseudo-classes, :hover|:hover">:hover</span>
914916
</h3>
915917

916-
<!-- <span class="index-def" title="pseudo-classes, :hover|:hover">:hover</span>-->
917-
918918
<p>User agents commonly display unvisited links differently from
919919
previously visited ones. CSS2 allows authors to specify the rendering
920920
of a link in one of several states:</p>
@@ -923,28 +923,29 @@ of a link in one of several states:</p>
923923
<li> The :link pseudo-class applies for links that have
924924
not yet been visited.
925925

926-
<!--
927-
<li> The :hover pseudo-class applies when the user designates,
928-
but does not activate, a link. User agents may require a minimal
929-
time delay before considering that a user has designated a link.
930-
-->
926+
<li> The :hover pseudo-class applies when the user designates, but
927+
does not activate, a link. For example, a visual user agent could
928+
apply this pseudo-class when the cursor hovers over an element. [or,
929+
in our terminology, do cursors only hover over boxes? -howcome]
931930

932931
<li> The :active pseudo-class applies while the link is being
933932
activated by the user.
933+
934934
<li> The :visited pseudo-class applies once the link has been
935935
visited by the user. <strong>Note.</strong>
936936
After a certain amount of time, user agents may choose to
937937
return a visited link to the (unvisited) 'link' state.
938+
938939
</ul>
939940

940-
<P>The three states are mutually exclusive.
941+
<P>The four states are mutually exclusive.
941942

942943
<pre>
943944
A:link { color: red } /* unvisited links */
944945
A:active { color: lime } /* active links */
945946
A:visited { color: blue } /* visited links */
947+
A:hover { color: yellow } /* user hovers */
946948
</pre>
947-
<!-- A:hover { color: yellow } /* user hovers */ -->
948949

949950

950951
<p>User agents are not required to reformat a currently displayed

0 commit comments

Comments
 (0)