If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

improper margin in fixed position content

VERIFIED INVALID

Status

()

Core
CSS Parsing and Computation
VERIFIED INVALID
16 years ago
16 years ago

People

(Reporter: Fred L. Drake, Jr., Assigned: dbaron)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020313
BuildID:    2002031312

A page that uses CSS "position: fixed" is missing the right margin for the
fixed-position element when an enclosed table has a width="100%" attribute.

Reproducible: Always
Steps to Reproduce:
1. Load
http://starship.python.net/~fdrake/mozilla-bugs/sizing-in-fixed-position.html


Actual Results:  The 4px right margin is missing.

Expected Results:  Drawn the margin all the way around the <div> element.

There is a screenshot of the result in Mozilla 0.9.9 at
http://starship.python.net/~fdrake/mozilla-bugs/
Invalid.  "width: 100%" means the content area of the <div> should be as white
as the viewport.  The div also has 4px of padding, so the inner padding edge on
the right side ends up 4px off the viewport.  Thus the rendering is correct... 
See http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width and
http://www.w3.org/TR/REC-CSS2/box.html#box-dimensions

What you want is "left: 0; right:0" instead of "width:100%"
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID
bz is correct
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.