Open Bug 211917 Opened 22 years ago Updated 3 years ago

style="background-color:red" does not color in button background

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: murray.bryant, Unassigned)

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030704 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030704 Setting style="background-color:red" no longer colors in the background on a button. First noticed the problem while setting the style attribute of the button through javascript. document.getElementById(button).setAttribute('style','background:red'); Which does not work either. I have tested this and get the same problem on several windows machines (windows 2000) and a linux machine (slackware). However it does work off a mac machine (OSX 10.2.6). All machines are running current-stable mozilla 1.4 downloaded today( Jul 7 2003). This was working previously with 1.4RC1 and earlier versions of mozilla Reproducible: Always Steps to Reproduce: 1.create button on page <button style="background-color:red"> 2.view 3.no color showing Actual Results: No background color on button Expected Results: Shown background color
Attached file testcase
Murray, I cannot reproduce the problem with the testcase I just attached with a current Linux trunk build. Can you reproduce the problem with that testcase on Linux? On Windows? If not, could you attach a testcase on which you _can_ reproduce the problem?
Sorry should have specified. Problem does not exist with html code but with mozilla's xul language. This attachement does not work
Hm... That testcase also works for me... Is your Linux build compiled with GTK2 or something? This could be native theming interfering with the in-page styles...
I am not sure, how do i test that. This also does not work for my windows 2000 installations as well.
I can reproduce it with Mozilla 1.4 on Win2K. I'll attach a screenshot of DOM Inspector that might explain this.
Severity: major → normal
Keywords: testcase
Murray, you can look up your build configuration by typing "about:buildconfig" in the URL bar. On Windows, the issue is almost certainly native theming if you are using the Classic theme. Are you? Do you see different results with Modern?
Boris, you're right about the windows platform. With the modern theme the button's background is red. BTW, the same applies to Mozilla on FreeBSD.
Over to bryner-- the native theming code needs to drop the nsITheme styling when styles are applied to the button...
Assignee: general → bryner
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
In my linux configuration it does have the flay --enable-default-toolkit=gtk2 With both the linux ( slackware) and the windows when i change to the modern theme the button does show the colors
Product: Browser → Seamonkey
Assignee: bryner → general
Assignee: general → jag
Component: General → XP Toolkit/Widgets
Product: Mozilla Application Suite → Core
QA Contact: general → xptoolkit.widgets
Assignee: jag → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: