XUL does not invert background color in dropdown when mouse is over an item

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
13 years ago
10 years ago

People

(Reporter: naseem.amjad, Unassigned)

Tracking

Trunk
x86
Windows Server 2003
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

I have developed a xul file with following code.

==========================================================================
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>

<!DOCTYPE overlay SYSTEM "test.dtd">
<!-- XUL/FireFox Bug Reported by Naseem Amjad-->
<overlay id="firefoxdropdownbug" 
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<vbox>
<menulist id="checking">
      <menupopup>
     <menuitem  label="One" style="background-color:#0099FF " />
    <menuitem  label="Two" style="background-color:#AA99FF " />
    <menuitem  style="background-color:#FF99FF " label="Three"/>

</menupopup>
</menulist>

</vbox>
</overlay>
=============================================================================

The code simply shows menuitems with diferent background colors. Now when a user hovers over an item (while selecting the option from dropdownmenu/menulist the color of text is inverted (which is normal behaviour) but the color of BACKGROUND does not get inverted.

Reproducible: Always

Steps to Reproduce:
1. Create XUL or XPI with menulist/dropdownlist having items with diferent background colors.
2. Hover over a menuitem


Actual Results:  
You will notice that background color of menuitem does not invert.


Expected Results:  
The background color of menuitem should invert.

The html page works fine and inverts background color of option in select tag. Seems that this bug is in XUL handler only. Here is the HTML code.

=========================
<HTML>

<BODY onLoad="FillKeyboardListCombo()">
<form name="form1" method="post" action="">
  <select name="select">
    <option style="background-color:#0099FF ">One</option>
    <option style="background-color:#AA99FF ">Two</option>
    <option style="background-color:#FF99FF ">Three</option>
  </select>

  
</form>

</BODY>
</HTML>
===================================

I have also uploaded the screen shot. Plz visit http://www.geocities.com/naseem_amjad/delme/bug_in_firefox.jpg to view the screens.
(Reporter)

Comment 1

13 years ago
Created attachment 224668 [details]
ScreenShot
Not an EM bug. Firefox -> Menus for triage
Component: Extension/Theme Manager → Menus
QA Contact: extension.manager → menus
Component: Menus → XP Toolkit/Widgets: Menus
Product: Firefox → Core
QA Contact: menus → xptoolkit.menus
Version: unspecified → Trunk

Updated

10 years ago
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.menus → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.