Previous Message
Next Message

Mozilla display: table-cell problem

Sent by Adam Kuehn on 15 July 2004 19:07


>>Rats!  I just figured it out myself, and was in the midst of 
>>e-mailing my reply.  I can't figure out the theory, either.  It 
>>doesn't seem to happen with any other block- or inline-level 
>>elements.  Perhaps it has something to do with the fact that an 
>>image is a replaced element?
>
>I don't know.  Changing the display value of the image doesn't seem 
>to do anything.

True, but that doesn't change the fact that the image is a replaced 
element, it just changes the display value.  Whether or not something 
is replaced is an intrinsic characteristic that can't be changed in 
CSS.

Just on a whim, I followed up the hunch by commenting out your image, 
and inserting in its place a form with a textarea.  (A textarea is a 
replaced element, as well.)  It seems that the textarea triggers the 
same behavior, curable in the same way, so perhaps I'm on to 
something.

It is a weird "feature", to be sure.  I can't think of a good 
justification for it, but Safari exhibits exactly the same behavior, 
so perhaps I'm just missing something.  It would be an uncommon 
situation to encounter, since the lack of support in IE make most 
developers shy away from display: table-cell, but it still seems 
wrong to me.

I thought this might be of general interest, so I am copying this 
back on to the list.

-- 

-Adam Kuehn
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: