Closed Bug 271274 Opened 20 years ago Closed 18 years ago

Right-floating div's width does not match right margin of another div

Categories

(Core :: Layout: Floats, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mklencke, Unassigned)

References

()

Details

(Keywords: qawanted, testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

When there is a block div with a right margin of a specific number of pixels and
a float to cover this right margin exactly, sometimes the float doesn't cover
enough.

Reproducible: Always
Steps to Reproduce:
1. Maximize the browser window on the example URL
2. Slowly decrease the horizontal size.
Actual Results:  
At some point a vertical line will show up in the blue top bar. This should not
occur since margin-right of the main bar and the width of the top right float
are equal. This remains also when the page is reloaded with a visible vertical line.

Expected Results:  
The vertical white line should not be there. The float should always exactly
cover the margin.

To workaround, simple make the margin slightly less than the width of the float.
Component: General → Layout
Product: Firefox → Core
Version: unspecified → Trunk
This needs a minimal testcase...  Looks like a rounding issue somehow, though.
Assignee: firefox → nobody
Keywords: qawanted
QA Contact: firefox.general → core.layout
Attached file testcase
This is as small as I could get. I fixed the body width (to 594px) so no window
resizing is required to see the white line.
Keywords: testcase
Uri, thanks!  Definitely a rounding issue.
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Floats
Depends on: pixels
Ever confirmed: true
QA Contact: core.layout → core.layout.floats
This WFM since 2005-03-29 trunk builds. Not sure what fixed it.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: