[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: Bug#35069: CSS-Problem
From: Oliver Strutynski <olistrut () gmx ! net>
Date: 2001-11-20 21:51:59
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- From the CSS-1 Spec:
"User agents commonly display newly visited anchors differently from older
ones. In CSS1, this is handled through pseudo-classes on the 'A' element:
A:link { color: red } /* unvisited link */
A:visited { color: blue } /* visited links */
A:hover { color: lime } /* active links */
All 'A' elements with an 'HREF' attribute will be put into one and only one
of these groups (i.e. target anchors are not affected)."
With no css target anchors are not highlighted. Correct.
With a stylesheet defining attributes for A:hover, KHTML uses these
attributes for target anchors, showing the wrong rendering as described in
the initial bug report. This is only the case for A:hover, active, visited
and link work as expected.
Test case below.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test 35069</title>
<style>
a:link { color: #dd0000; background-color: #000000 }
a:visited { color: #555555; text-decoration:none }
a:hover { color: #dd0000; background-color: #dddddd }
a:active { color: #dd0000; background-color: #0000ff }
</style>
</head>
<body>
<a name="time">This text should not be highlighted on mouseover</a><br>
<a href="http://www.kde.org">This link should be highlighted and displayed
red on a black background.</a>
</body>
</html>
- --
_____________________________________________________________________
Oliver Strutynski oliver.strutynski@cs.tum.edu
olistrut@gmx.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7+tB/uUAlUEFqtKYRAkhnAJ9oFLU2nvXTKGSz6InUG+q/TBy+XwCglCWy
In0Uf+jDOD6mEqnox3BfL4Y=
=91aL
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic