Closed Bug 278819 Opened 20 years ago Closed 20 years ago

some styles is redundant in checkbox.css

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: surkov, Assigned: jag+mozilla)

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111

There are redundant styles in checkbox.css. If there is style -moz-appearence on
element then background and border styles are unused. In instance thease styles
(checkbox.css) are unused:

/* ..... checked state ..... */ 

checkbox[checked="true"] > .checkbox-check {
  background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
}

checkbox[checked="true"][disabled="true"] > .checkbox-check {
  background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif")
!important
} 

style for class checkbox-check can be replaced with
.checkbox-check {
  -moz-appearance: checkbox; 
}

I think there are redundant styles not only for checkbox. It is need to check
styles for other elements like textbox or toolbarbutton.

Reproducible: Always

Steps to Reproduce:
Attached file overrided styles
compare this checkbox.css with global/skin/checkbox.css
Attached file testcase
not everyone implements -moz-appearance.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
What do you mean by everyone? os or something else?
Native themes are only supported on the three major OSes.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: