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)
Core
XUL
Tracking
()
NEW
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
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
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?
| Reporter | ||
Comment 3•22 years ago
|
||
Sorry should have specified. Problem does not exist with html code but with
mozilla's xul language.
This attachement does not work
Comment 4•22 years ago
|
||
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...
| Reporter | ||
Comment 5•22 years ago
|
||
I am not sure, how do i test that.
This also does not work for my windows 2000 installations as well.
Comment 6•22 years ago
|
||
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
Comment 7•22 years ago
|
||
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?
Comment 8•22 years ago
|
||
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.
Comment 9•22 years ago
|
||
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
| Reporter | ||
Comment 10•22 years ago
|
||
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
Updated•21 years ago
|
Product: Browser → Seamonkey
Updated•19 years ago
|
Assignee: bryner → general
Updated•19 years ago
|
Assignee: general → jag
Component: General → XP Toolkit/Widgets
Product: Mozilla Application Suite → Core
QA Contact: general → xptoolkit.widgets
Updated•16 years ago
|
Assignee: jag → nobody
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•