Closed Bug 257925 Opened 20 years ago Closed 20 years ago

An object with more than one style="" attributes only has one applied

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hfmeza, Assigned: dbaron)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040803
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040803

If you have an object with two style="" elements, the second one is ignored. IE
renders this correctly, but I'm not sure if this is the right behavior.

   <td align="center" style="border-top-color: #666666;border-top-style:
solid;border-top-width: 1px;" style="border-left-color:
#666666;border-left-style: solid;border-left-width: 1px; background-color:
#76AFCB;">border-top and border-left are defined in 2 separate style elements,
background color is in the second</td>

In this <td>, there are 2 style="" elements. When it is rendered with mozilla,
only the first style is applied.

In IE, the 2 styles are applied.

Reproducible: Always
Steps to Reproduce:
1. Look at the testcase
2.
3.

Actual Results:  
The page show 2 table rows. The first row does not have a left border or a blue
background color. The second row has them

Expected Results:  
Both rows should have background color and a left border.
Attached file Testcase
you can't have two attributes with the same name
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: An object with more than one style="" elements only has one applied → An object with more than one style="" attributes only has one applied
*** Bug 308176 has been marked as a duplicate of this bug. ***
(In reply to comment #0)


Why does IE support this but not Firefox?
(In reply to comment #0)

Firefox should compensate for this occurence, because some websites use it this way
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: