[EMAIL PROTECTED] wrote: > When I disabled image in firefox, Firefox will just draw the 'alt' > text, but Firefox does not take into the account of the image > dimension and the text below the image got moved up.
This actually depends on whether you're in standards or quirks mode. In quirks mode, if the image has width/height attributes we create a box of that size. > Take www.cnn.com main story as an example. That page is in standards mode. > Can you please tell me why is there? Because in standards mode we just create an inline frame with the alt text in it. > Where in the code shift the text up when image loading is disabled? nsImageFrame::ShouldCreateImageFrameFor returns false, and then we end up creating a frame for the image based on its CSS display. At that point the rule at http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/style/html.css&rev=3.216&mark=403-410#402 kicks in. -Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

