Last Comment Bug 255713 - Pseudo Class :active should not apply to any element
: Pseudo Class :active should not apply to any element
Status: RESOLVED DUPLICATE of bug 243459
:
Product: Core
Classification: Components
Component: CSS Parsing and Computation (show other bugs)
: Trunk
: x86 Windows XP
: -- normal (vote)
: ---
Assigned To: David Baron :dbaron: ⌚️UTC-7 (review requests must explain patch)
: Hixie (not reading bugmail)
Mentors:
http://www.lachy.id.au/dev/css/tests/...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-15 15:11 PDT by Lachlan Hunt
Modified: 2004-08-15 19:17 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Lachlan Hunt 2004-08-15 15:11:12 PDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3

The :active pseudo class should not apply to any element, it should only apply
to elements that are defined in the (X)HTML, or other XML language specs as
being able to be activated.  So, basically hyperlinks (a with href), buttons,
etc. should apply the :active state when clicked.  As a general guide, :active
should apply to those elements that can also recieve :focus.

More tests are available for HTML (HTML 4.01), XHTML and XML (XHTML1.1).  See
the pseudo-class-active-* files here:
http://www.lachy.id.au/dev/css/tests/css21/5-selectors/

Reproducible: Always
Steps to Reproduce:
1. Go to the test cases
2. Click on the green text
Actual Results:  
:active is applied to the elements, but it shouldn't.

Expected Results:  
The text should stay green.
Comment 1 Mats Palmgren (:mats) 2004-08-15 19:17:59 PDT

*** This bug has been marked as a duplicate of 243459 ***

Note You need to log in before you can comment on or make changes to this bug.