Closed Bug 120834 Opened 23 years ago Closed 22 years ago

Implement :checked selector

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla1.1alpha

People

(Reporter: john, Assigned: bryner)

References

Details

(Whiteboard: [whitebox])

Attachments

(2 files)

The :checked selector is a CSS3 selector that is on when a checkbox is checked.
Blocks: selectors3
This is part of the fix for bug 115462.
Depends on: 115462
Note to self: this selector /depends/ on bug 115462 as much as it is part of it.
 We gain two things from that bug:

- a per-node repository for this kind of state
- the ability to (hopefully efficiently) notify the stylesheet of changes in a
per-node selector and recalculate style.  hyatt tells me that the way I'm trying
to do to implement this (with ContentStylesChanged) is a bad idea.

This selector is necessary for XBL checkboxes not to suck though; currently
bryner are going to have to implement a Moz-specific attribute that he can style
off of.  Still, I am not sure if the CSS changes are going to get done or land
before 1.0.
Priority: -- → P3
Target Milestone: --- → mozilla1.1
bryner is implementing this now.  Yaaaay :)
Assignee: jkeiser → bryner
(note: unless the fix for this uses the technique described in bug 115462, I'd
rather this bug not be marked FIXED when the patch is checked in.)
I don't see a need to muddy the exit criteria for this bug.  When :checked is
working, this bug is fixed, by definition--it doesn't matter how performant the
implementation is.  If it does, we can change this bug to "make :checked more
extensible and performant" I suppose, or open a new bug, but I think bug 115462
adequately covers that.

I do think bug 115462 is a very good idea, and will help us out a lot--just it's
not covered by this bug.
fair enough
:checked is now working for the elements explicitly mentioned in the CSS3 spec
(namely selects, checkboxes, and radio buttons).  Please file any additional
RFE's as separate bugs (not on me, please file on the default style system
assignee).
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: [whitebox]
Attached file test case
This test case shows it it not dynamically updated. Problably there is another
bug for that, or nobody has noticed this yet, but shouln't bug be reopened
then?
-> VERIFIED

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040114
Status: RESOLVED → VERIFIED
Blocks: 35246
Checked in the tests.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: