Bug 97043

Summary: [PATCH] Please change the order of a:hover and a:active in text.css
Product: Documentation Reporter: Atsushi SUGAWARA <peanutsjamjam>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Atsushi SUGAWARA 2006-05-09 16:00:37 UTC
Please change the order of a:hover and a:active in text.css.

We can not currently see the 'active' color '#990000" while we are pressing mouse button over the links in some FreeBSD Project pages.

URL of text.css:
  http://www.freebsd.org/layout/css/text.css

This file has following 4 lines in this order.
 a:link                          { color:#990000; text-decoration: underline; }
 a:visited                       { color:#990000; text-decoration: underline; }
 a:active                        { color:#990000; text-decoration: underline; }
 a:hover                         { color:#000000; text-decoration: underline; }

Note 'a:hover' rule is currently placed after 'a:active' rule.
This causes the 'a:active' rule to be meaningless.

Because:
 1: While you are pressing mouse button over the A element, the A element's state is both 'active' and 'hover' a
t the same time.
 2: The latter rule would win.

In conclusion, we should place dynamic pseudo-classes in this order:
 link
 visited
 hover
 active

Fix: To fix it, we need only to change the order of lines.
How-To-Repeat: 1: Go to "The FreeBSD Project" home page http://www.freebsd.org/.
2: Move mouse pointer onto a normal link in the page, e.g. "LATEST RELEASES".
3: You will see the color of the link changes to black. The 'a:hover' rule works. :)
4: Press (do not click) the mouse buttton on the link text.
5: You will see the color of the link does not change to '#990000'. :(
Comment 1 Ceri Davies freebsd_committer freebsd_triage 2006-05-09 23:26:03 UTC
State Changed
From-To: open->closed

Committed, thanks.