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)
Core
Layout
Tracking
()
People
(Reporter: ejones, Assigned: karnaze)
References
()
Details
(Keywords: css2, testcase)
Attachments
(1 file)
365 bytes,
text/html
|
Details |
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.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Tested with build: 20010419 on Windows 95 and Linux.
Comment 3•24 years ago
|
||
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.
Description
•