If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

state=disabled only working for stock icons

RESOLVED INVALID

Status

()

Firefox
Shell Integration
RESOLVED INVALID
10 years ago
10 years ago

People

(Reporter: micmon, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
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

Comment 1

10 years ago
> 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
Last Resolved: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.