Skip to content

Commit a580c7a

Browse files
committed
[css2] introduced an ordering in the anchor pseudo-classes
added index entries for all of them --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40737
1 parent d873ba6 commit a580c7a

1 file changed

Lines changed: 27 additions & 24 deletions

File tree

css2/selector.src

Lines changed: 27 additions & 24 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.52 1998-01-28 06:42:00 ijacobs Exp $ -->
3+
<!-- $Id: selector.src,v 1.53 1998-01-28 09:06:54 howcome Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Selectors</title>
@@ -907,12 +907,12 @@ descend from A elements that have not yet been visited:</p>
907907
</pre>
908908
</div>
909909

910-
<h3><a name="anchor-pseudo-classes">Anchor pseudo-classes</a>:
911-
<span class="index-def" title="pseudo-classes:::link|:link">:link,</span>
912-
<span class="index-def"
913-
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>
910+
<h3><a name="anchor-pseudo-classes">The Anchor pseudo-classes</a>:
911+
<span class="index-def" title="pseudo-classes:::link|:link|'link' pseudo-class">:link</span>,
912+
913+
<span class="index-def" title="pseudo-classes:::visited|:visited|'visited' pseudo-class">:visited</span>,
914+
<span class="index-def" title="pseudo-classes:::hover|:hover|'hover' pseudo-class">:hover</span>, and
915+
<span class="index-def" title="pseudo-classes:::active|:active|'active' pseudo-class">:active</span>
916916
</h3>
917917

918918
<p>User agents commonly display unvisited links differently from
@@ -923,6 +923,11 @@ 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+
<li> The :visited pseudo-class applies once the link has been
927+
visited by the user. <strong>Note.</strong>
928+
After a certain amount of time, user agents may choose to
929+
return a visited link to the (unvisited) 'link' state.
930+
926931
<li> The :hover pseudo-class applies when the user designates, but
927932
does not activate, a link. For example, a visual user agent could
928933
apply this pseudo-class when the cursor hovers over an element. [or,
@@ -931,33 +936,31 @@ in our terminology, do cursors only hover over boxes? -howcome]
931936
<li> The :active pseudo-class applies while the link is being
932937
activated by the user.
933938

934-
<li> The :visited pseudo-class applies once the link has been
935-
visited by the user. <strong>Note.</strong>
936-
After a certain amount of time, user agents may choose to
937-
return a visited link to the (unvisited) 'link' state.
938-
939939
</ul>
940940

941-
<P>The four states are mutually exclusive.
942-
943-
<pre>
944-
A:link { color: red } /* unvisited links */
945-
A:active { color: lime } /* active links */
946-
A:visited { color: blue } /* visited links */
947-
A:hover { color: yellow } /* user hovers */
948-
</pre>
949-
941+
<P>The four states are mutually exclusive. If a link qualifies for
942+
several states, the order of preference is: active, hover, visited,
943+
link.
950944

951-
<p>User agents are not required to reformat a currently displayed
945+
<p>User agents are not required to reflow a currently displayed
952946
document due to anchor pseudo-class transitions. For instance, a style
953947
sheet may legally specify that the <span
954948
class="propinst-font-size">'font-size'</span> of an :active link
955949
should be larger that a :visited link, but the UA is not required to
956-
dynamically reformat the document when the reader selects the
950+
dynamically reflow the document when the reader selects the
957951
:visited link.</p>
958952

959953
<div class="example"><p>
960-
In HTML, the following two CSS2 declarations are equivalent and
954+
955+
<pre>
956+
A:link { color: red } /* unvisited links */
957+
A:visited { color: blue } /* visited links */
958+
A:hover { color: yellow } /* user hovers */
959+
A:active { color: lime } /* active links */
960+
</pre>
961+
962+
963+
<p>In HTML, the following two CSS2 declarations are equivalent and
961964
select the same elements:</p>
962965

963966
<pre>

0 commit comments

Comments
 (0)