Closed Bug 213747 Opened 22 years ago Closed 18 years ago

css background-image doesn't work reliably for chrome

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mjh-bugs-mozilla-20060801, Assigned: blizzard)

References

Details

(Keywords: helpwanted, qawanted)

User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030708 The background-image tag does not seem to work for buttons under gtk. The same chrome code works fine using xlib. Reproducible: Always Steps to Reproduce: 1. Chrome contains: stylesheet: .VKey { background-image: url("chrome://kiosk/content/images/keybutt.jpg"); } chrome: <hbox pack="end"> <button id="a" class="Vkey" label="A" oncommand="do_input()"/> </hbox> Image exists in the appropriate jar file. 2. load the chrome. Actual Results: Using mozilla compiled to use xlib, the button appears with the background graphic and the text label. Using mozilla compiled to use gtk, the button appears with just the text label. (both self compiled code and the 1.4 official release). Expected Results: Displayed the background graphic. Entire chrome available on request.
Is this in the classic theme? That is, does the button have a -moz-appearance set on it?
It is.
Sounds like a moz-appearance bug, then... Do you see the problem in other themes (eg Modern)?
Blocks: gtk2
It doesn't occur with Modern.
> Sounds like a moz-appearance bug, then... It seems to be. I tried removing the -moz-appearance: line from skin/classic/global/button.css, and everything works. (I don't know if that breaks anything else, but I haven't found anything that looks incorrect).
Keywords: helpwanted, qawanted
This would probably get fixed automatically by bug 241070
Depends on: 241070
bug 241070 is fixed. is this also fixed?
Please REOPEN if this still occurs in a recent trunk build. http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ -> WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.