Here is an absolutely positioned element which is the only child of another absolutely positioned element: <div style="position:absolute; left:500px; top:10px; border:1px solid red;"> <div style="position:absolute; left:0px; top:100px; background-color:yellow; text-align:center; color:blue;"> line 1 blabla<br> line 2 </div> </div> I would expect the style rules for the inner div to apply, but the text isn't centered and the background isn't yellow. The positioning and font colour is correct though. If the outer div is assigned a sufficiently large width, the problem disappears. Also, if the inner div has a negative x position, the part of it located in the negative area is yellow. I'm seeing this on Linux in Firefox 0.9.1, SeaMonkey 1.7, and the 04-07-12 nightly from the Seamonkey trunk. I'm leaving this as unconfirmed because I'm not a CSS expert and so not sure this is actually a bug. FWIW, Konqueror and Opera show the expected behaviour.
*** This bug has been marked as a duplicate of 201897 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.