Closed Bug 1005791 Opened 11 years ago Closed 11 years ago

Absolute positioning containing block established by relative-positioned fieldsets is misplaced by <legend> child

Categories

(Core :: Layout: Form Controls, defect)

29 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 942341

People

(Reporter: nicolas.ternisien, Unassigned)

References

Details

(Keywords: testcase)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 Steps to reproduce: Coordinates count not from the top left corner of the block, but from contents (i.e. move downwards and to the right on size padding-top and padding-left. Reproducible: Always Steps to Reproduce: 1. Create a html file with this code in it: ------ <fieldset style="width: 300px; height: 300px; position: relative; padding: 20px; border: 1px solid black"> <span style="position: absolute; top: 0; left: 0">Test word</span> </fieldset> ------ See test cases at: https://bugzilla.mozilla.org/show_bug.cgi?id=450418 Note: Previous reporter was told to reopen this bug, which is what I'm doing right now. Actual results: The test word is shifted on 20 pixels at the left and from above. Expected results: The test word is in the top left corner of the block.
Actually, the testcase I just created from your example: http://jsbin.com/wavuduho/1/edit looks correct to me in Firefox 29. It looks like this breaks because of the <legend> in the original attachment 333579 [details].
Blocks: 450418
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
Summary: Absolute positioning containing block established by relative-positioned fieldsets is misplaced → Absolute positioning containing block established by relative-positioned fieldsets is misplaced by <legend> child
This looks to me like a duplicate of bug 942341 (which has way more discussion on the matter).
Depends on: 942341
Yes, I agree, the 942341 is clearly my case.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.