This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10142 - Set CSS style "color" will replace part of an already exist style "background-color"
Summary: Set CSS style "color" will replace part of an already exist style "background...
Status: RESOLVED FIXED
Alias: None
Product: Amaya
Classification: Unclassified
Component: CSS (show other bugs)
Version: 11.3.1
Hardware: PC other
: P2 normal
Target Milestone: ---
Assignee: Vatton
QA Contact: Vatton
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 06:59 UTC by Bryan
Modified: 2010-07-21 10:19 UTC (History)
5 users (show)

See Also:


Attachments

Description Bryan 2010-07-13 06:59:29 UTC
Steps to Reproduce:
1. set CSS Style "background-color" on any element by clicking "color picker"
   ("color picker" I mean the button in "style" section in "tools" toolbar)

2. set CSS Style "color" on the same element

Actual Results:
HTML Source would look like this:
<p style="background-;color:#ffffff">test</p>

Expected Results:
HTML Source sould look like this:
<p style="background-color: #000000; color:#ffffff">test</p>

Build Date & Platform:

    Version 11.3.1 (Build 2009-12-09) on Windows 7 64-bit
Comment 1 lcarcone 2010-07-16 13:32:28 UTC
Hello,

I can reproduce this behaviour on other platforms, too.
There is indeed a problem in generating the right attribute style when the background-color and the color are set this way.
This problem doesn't happen when the color is set previous the background-color.
Until this problem is fixed, you can set the colors in that order (color then background-color) or use the css dialog (icon 'css' in the icon bar).

Thanks for the report,
Laurent Carcone