From owner-freebsd-www@FreeBSD.ORG Tue May 9 15:00:38 2006 Return-Path: X-Original-To: freebsd-www@hub.freebsd.org Delivered-To: freebsd-www@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7E0C16A413 for ; Tue, 9 May 2006 15:00:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42F1843D46 for ; Tue, 9 May 2006 15:00:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k49F0cjL022477 for ; Tue, 9 May 2006 15:00:38 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k49F0brX022476; Tue, 9 May 2006 15:00:38 GMT (envelope-from gnats) Resent-Date: Tue, 9 May 2006 15:00:38 GMT Resent-Message-Id: <200605091500.k49F0brX022476@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-www@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Atsushi SUGAWARA Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63C3216A420 for ; Tue, 9 May 2006 14:58:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2413043D46 for ; Tue, 9 May 2006 14:58:49 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k49EwmRx081768 for ; Tue, 9 May 2006 14:58:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k49EwmwQ081767; Tue, 9 May 2006 14:58:48 GMT (envelope-from nobody) Message-Id: <200605091458.k49EwmwQ081767@www.freebsd.org> Date: Tue, 9 May 2006 14:58:48 GMT From: Atsushi SUGAWARA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: www/97043: [PATCH] Please change the order of a:hover and a:active in text.css X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2006 15:00:38 -0000 >Number: 97043 >Category: www >Synopsis: [PATCH] Please change the order of a:hover and a:active in text.css >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue May 09 15:00:37 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Atsushi SUGAWARA >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: System: FreeBSD sweet.local 6.1-STABLE FreeBSD 6.1-STABLE #19: Tue May 9 19:13:09 JST 2006 sugawara@sweet.local:/usr/src/sys/i386/compile/JAMKERNEL i386 >Description: 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 >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'. :( >Fix: To fix it, we need only to change the order of lines. --- patch begins here --- Index: text.css =================================================================== RCS file: /home/ncvs/www/en/layout/css/text.css,v retrieving revision 1.3 diff -u -r1.3 text.css --- text.css 23 Nov 2005 14:22:06 -0000 1.3 +++ text.css 9 May 2006 14:38:33 -0000 @@ -99,13 +99,13 @@ 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; } +a:active { color:#990000; text-decoration: underline; } #FOOTER a:link, #footer a:link { color:#666; text-decoration: underline; } #FOOTER a:visited, #footer a:visited { color:#666; text-decoration: underline; } -#FOOTER a:active, #footer a:active { color:#666; text-decoration: underline; } #FOOTER a:hover, #footer a:hover { color:#000000; text-decoration: underline; } +#FOOTER a:active, #footer a:active { color:#666; text-decoration: underline; } #FRONTNEMSCONTAINER h2, #frontnemscontainer h2 { margin: 0; --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: