Closed
Bug 34363
Opened 24 years ago
Closed 24 years ago
Absolutely positioned div not taking into consideration containing block padding
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
VERIFIED
INVALID
People
(Reporter: christinehoff4, Assigned: pierre)
Details
(Keywords: css2)
Attachments
(1 file)
963 bytes,
text/html
|
Details |
Using the following builds: Windows: 04-03-09-m15 Mac: 04-03-08-m15 Linux: 04-03-08-m15 Open the attached file. There are two divs. The yellow div has top and left padding of 50px. It is relatively positioned. The fuchsia div is absolutely positioned within the yellow div (its containing block) with the following values: left: 50px; top: 50px Expected result: the absolutely positioned fuchsia div should display 100px from the top side of the yellow div and 100px from the left side of the yellow div because it first needs to take into consideration the padding of the containing block. 10.1 of the CSS2 specs states: If the element has 'position: absolute', the containing block is established by the nearest ancestor with a 'position' other than 'static', in the following way: 1. In the case that the ancestor is block-level, the containing block is formed by the padding edge of the ancestor.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Updated•24 years ago
|
The padding-edge is the outside edge of the padding (the content edge is the inside edge). Therefore the bit of CSS2 that you quote says that the current behavior is correct. Marking INVALID.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Comment 4•24 years ago
|
||
Netscape's standard compliance QA team reorganised itself once again, so taking remaining non-tables style bugs. Sorry about the spam. I tried to get this done directly at the database level, but apparently that is "not easy because of the shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
You need to log in
before you can comment on or make changes to this bug.
Description
•