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

70 lines
1.1 KiB
CSS

input[type="checkbox"] {
-moz-border-radius:0px;
width:11px;
height:11px;
border:2px inset rgb(192, 192, 192);
background-color:white;
color:black;
}
input[type="radio"] {
-moz-border-radius:6px;
width:12px;
height:12px;
border:2px inset rgb(192, 192, 192);
background-color:white;
}
:-moz-radio {
-moz-border-radius:1px;
border: 2px solid black;
}
input[type=button] {
-moz-border-radius:0px;
border: 2px outset rgb(156, 154, 156);
background-color: rgb(206, 206, 206);
color:black;
padding: 1px;
}
input[type="button"]:active {
border-style:inset;
padding-left: 2px;
padding-right: 0px;
padding-top: 2px;
padding-bottom: 0px;
}
input[type="button"]:active:-moz-outline {
border : 1px solid black;
}
select {
-moz-border-radius:0px;
border:2px inset rgb(192, 192, 192);
}
select[size] option:checked {
background-color:rgb(0, 0, 128);
color: white;
}
select option:checked {
background-color:rgb(0, 0, 128);
color: white;
}
select[size="1"] option:checked {
background-color:rgb(0, 0, 128);
color: white;
}
:-moz-dropdown-list {
border: 1px solid black;
background-color:white;
}