Closed Bug 293329 Opened 20 years ago Closed 20 years ago

Background color does not show when style float:left is used in span.

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: CheongTM, Assigned: dbaron)

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050503 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050503 Firefox/1.0+

In <div style="background-color:#ffffcc"><span style="float:left">This is left
panel</span></div>, the background-color is not shown in Firefox but it is shown
in IE. If style="float:left" in span element is removed, the background color is
shown.  I believe it is a bug in Firefox.

Refer to the attached testcase in Additional comment #1.

Reproducible: Always
Attached file Testcase to show background-color. (obsolete) —
Assignee: nobody → dbaron
Component: General → Style System (CSS)
Keywords: testcase
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.0 Branch
I see the same result in IE and FF (1.0.3) - no background in the second line. 
My understanding of a float was that it wasn't counted when producing
backgrounds, etc.  So I'm not sure this is a bug.
Component: Style System (CSS) → Build Config
Product: Core → Firefox
Assignee: dbaron → nobody
Product: Firefox → Core
QA Contact: ian → build-config
Assignee: nobody → dbaron
Component: Build Config → Style System (CSS)
QA Contact: build-config → ian
This is invalid. You need to clear after the floats in order for this to work.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Version: 1.0 Branch → Trunk
Sorry for the wrong testcase.  I have attached a new test case to show that the
background-color can be shown in IE but not in Firefox 1.0.3.

If it is not a bug, please suggest a suitable workaround such that I can use
span with style float for formatting my web page in both IE and Firefox.

Thanks
Attachment #182927 - Attachment is obsolete: true
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
If you're going to reopen, at least attach a testcase that can be examined from
the bug rather than a zip file.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
That said, the description of the bug in comment 0 is definitely not a valid bug.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: