Closed Bug 224832 Opened 22 years ago Closed 21 years ago

{inc} element with properties { position: absolute; right: 0; } nested in an relative pos. inline element is displayed oddly

Categories

(Core :: Layout: Positioned, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: chudoba, Assigned: roc)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428 .parent { position: relative; display: inline; border: solid 1px red; } .child { position: absolute; right: 0; border: solid 1px blue; } <span class="parent">abcdef <span class="child">x</span> </span> The child element should be on the right side inside the parent element. Mozilla handle the child element oddly when the parent is an inline element (display: inline;). If the parent is a block element (display: block;) everything seems to be OK. Reproducible: Always Steps to Reproduce:
When using left or top it seems to be OK. When using right or bottom, Mozilla behaves oddly.
Status: UNCONFIRMED → NEW
Depends on: 135082
Ever confirmed: true
Keywords: testcase
Summary: element with properties { position: absolute; right: 0; } nested in an inline element is displayed oddly → {inc} element with properties { position: absolute; right: 0; } nested in an relative pos. inline element is displayed oddly
'right' and 'bottom' are just broken for absolute children of relative inlines.
Assignee: core.layout.r-and-a-pos → roc
Priority: -- → P3
Hardware: PC → All
Attached file minimized testcase
The green dot should be 20px to the left of the right edge of the red box. Instead it's 20px left of the viewport edge. 'left' works correctly.
aaah that fixes it. I didn't know about that bug. excellent! It fixes Ritchie's testcase too.
Fixed by checkin for bug 135082.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: