Closed Bug 1855 Opened 26 years ago Closed 26 years ago

CSS2's bottom: and right: positioning properties don't work

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jeremie, Assigned: troy)

References

()

Details

top and left work great, but bottom and right are apparently not working :( Example code: <HTML> <BODY> <SPAN ID="top" STYLE="position:absolute;top:100px;">top:100px</SPAN> <SPAN ID="right" STYLE="position:absolute;right:100px;">right:100px</SPAN> <SPAN ID="bottom" STYLE="position:absolute;bottom:100px;">bottom:100px</SPAN> <SPAN ID="left" STYLE="position:absolute;left:100px;">left:100px</SPAN> </BODY> </HTML>
Assignee: peterl → troy
Right isn't quite supposed to work like that. Because the rules for setting the margins are quite complex (see http://www.w3.org/TR/REC-CSS2/visudet.html ), you need to set margin-left: auto for right to work (that way). See: http://www.fas.harvard.edu/~dbaron/csstest/sec090302a.html (top) http://www.fas.harvard.edu/~dbaron/csstest/sec090302b.html (right) http://www.fas.harvard.edu/~dbaron/csstest/sec090302c.html (bottom) http://www.fas.harvard.edu/~dbaron/csstest/sec090302d.html (left) However, the point remains that they still don't work.
Status: NEW → ASSIGNED
Yes, they don't work. There's support in the style system now, but not in the formatting objects
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
There is support for 'right' and 'bottom' now. It's not perfect, but it's getting better. David's right though, 'right' doesn't behave the way you're hoping. Even setting 'margin-left' to 'auto' doesn't do it, because 'width' is 'auto'.
QA Contact: 4110
setting chrisd as QA contact
Status: RESOLVED → VERIFIED
Revised tests supplied by dbaron@fas.harvard.edu for verification testing. Used the following: http://slip/projects/marvin/bugs/bug_1855_top.html http://slip/projects/marvin/bugs/bug_1855_bottom.html http://slip/projects/marvin/bugs/bug_1855_right.html http://slip/projects/marvin/bugs/bug_1855_left.html Using the 2/4 build, verified bug fixed; however, have sent email to dbaron@fas.harvard.edu for further clarification regarding margin-left and margin-right 'auto' settings (see 1/8 comments).
You need to log in before you can comment on or make changes to this bug.