bryner%netscape.com 01634657fa - Implement the :checked CSS pseudoclass which maps to the "selected" property on option elements.
- Eliminate the _moz-option-selected attribute; move the actual selected state into the option content node.
- Change all users of _moz-option-selected to use :checked.
- Add a third parameter to nsIDocument[Observer]::ContentStatesChanged to indicate which pseudoclass changed, this is used for optimizing handling of :checked state changes.

Bug 128947, r=dbaron, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@116029 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 03:34:29 +00:00

46 lines
720 B
CSS

input[type="checkbox"] {
-moz-border-radius:0px;
width:12px;
height:12px;
border:1px solid black;
background-color:rgb(200, 200, 200);
}
input[type="radio"] {
width:14px;
height:14px;
border:1px solid black;
background-color:rgb(200, 200, 200);
}
input[type=button] {
padding-left:10px;
padding-right:10px;
border:1px solid black;
-moz-border-radius:5px;
font-weight:bold;
}
select {
-moz-border-radius:5px;
border:1px solid black;
background-color:rgb(200, 200, 200);
}
:-moz-dropdown-list {
border-color:black;
background-color:rgb(200, 200, 200);
}
option {
padding-left:10px;
}
option:checked {
color:black;
background-color:rgb(255, 221, 255);
padding-left:10px;
}