Closed Bug 404588 Opened 17 years ago Closed 17 years ago

state=disabled only working for stock icons

Categories

(Firefox :: Shell Integration, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: micmon, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071022 Ubuntu/7.10 (gutsy) Firefox/2.0.0.8
Build Identifier: 

For GTK stock icons I can get a disabled state to show up like this:

menuitem[key="openFileKb"][disabled="true"] {

  list-style-image: url("moz-icon://stock/gtk-open?size=menu&state=disabled") !important;
  -moz-image-region: rect(0px 16px 16px 0px) !important;

}

For normal icons this does not work:

menuitem[id="placesContext_openContainer:tabs"][disabled="true"] {
  list-style-image: url("new/tab-new16.png&state=disabled") !important;
  -moz-image-region: rect(0px 16px 16px 0px) !important;

}

The icon is not displayed at all. removing the &state=disabled makes the icon show up, but in its normal state.

Reproducible: Always
> menuitem[id="placesContext_openContainer:tabs"][disabled="true"] {
>   list-style-image: url("new/tab-new16.png&state=disabled") !important;

Why would you expect it to? 'state=disabled' is a flag handled by the moz-icon url type. This one isn't so you need to have an actual image for the item in its disabled state.

Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.