Closed Bug 251774 Opened 20 years ago Closed 20 years ago

Some CSS rules ignored for absolutely positioned children of small absolutely positioned elements

Categories

(Core :: CSS Parsing and Computation, defect)

Other
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 201897

People

(Reporter: wo, Assigned: dbaron)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

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
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Keywords: testcase
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: