Closed
Bug 120834
Opened 23 years ago
Closed 23 years ago
Implement :checked selector
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
FIXED
mozilla1.1alpha
People
(Reporter: john, Assigned: bryner)
References
Details
(Whiteboard: [whitebox])
Attachments
(2 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review |
The :checked selector is a CSS3 selector that is on when a checkbox is checked.
Reporter | ||
Updated•23 years ago
|
Blocks: selectors3
Reporter | ||
Comment 2•23 years ago
|
||
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
Reporter | ||
Comment 3•23 years ago
|
||
bryner is implementing this now. Yaaaay :)
Assignee: jkeiser → bryner
Comment 4•23 years ago
|
||
(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.)
Reporter | ||
Comment 5•23 years ago
|
||
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.
Comment 6•23 years ago
|
||
fair enough
Assignee | ||
Comment 7•23 years ago
|
||
: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: 23 years ago
Resolution: --- → FIXED
Updated•22 years ago
|
Whiteboard: [whitebox]
Comment 8•21 years ago
|
||
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?
Comment 9•21 years ago
|
||
-> VERIFIED
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040114
Status: RESOLVED → VERIFIED
Comment 10•17 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•