Closed Bug 76924 Opened 24 years ago Closed 24 years ago

[CSS2] top: auto; or bottom: auto; does not work with position: absolute

Categories

(Core :: Layout, defect)

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 44508

People

(Reporter: ejones, Assigned: karnaze)

References

()

Details

(Keywords: css2, testcase)

Attachments

(1 file)

The following combinations of CSS2 positioning styles are rendered incorrectly: style="position: absolute;" style="position: absolute; top: auto;" style="position: absolute; bottom: auto;" All three should be and are rendered identically but incorrectly. According to the CSS2 specification at http://www.w3.org/TR/REC-CSS2, an element with one of these styles should appear with the same vertical and horizontal position as an element without it. Instead, it is rendered one line lower than an element without it. The left: auto; and right: auto; properties are rendered correctly, as are top: auto; and bottom: auto; when position: relative; is chosen. This problem is evident when trying to render the example included in the CSS2 spec in section 9.8.4: Absolute Positioning at http://www.w3.org/TR/REC-CSS2/visuren.html#q29. The example is attached as a test case. It should display two red hypens to the left of the line containing "THIS". Instead, it sits on the line below.
Tested with build: 20010419 on Windows 95 and Linux.
Keywords: css2, testcase
exact dupe...even has same test case =P *** This bug has been marked as a duplicate of 44508 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: