Re: Bug: img size with %

On 25/01/2009, at 5:05 AM, WalkinRaven wrote:
>
> code:
> <div style="height:10em">
> <img style="height:100%"></img>
> </div>
>
> I ment to show a picture in a block. it work well both in firefox  
> and ie. But in amaya it shows terrible, I don't know if this is a bug?
>

Safari 3.2.1 MacOS 10.5.6 with a random screenshot "picture.png"
renders the whole picture filling 100% of the inherited 10em space.

Amaya 11.0 renders the picture at 100% of its own 30em height,
ignoring inheritance, and stretching the <div>.
I suspect this may be an allowed behaviour,

http://www.w3.org/TR/CSS21/cascade.html

But worse, to test behaviour with a bitmap image, I saved the picture
using Gimp and Preview.app, to uncompressed tiff "picture.tif"

Safari behaved as previously.
Amaya did not render the picture, and shrank the "empty" <div>
to 5em height....

Peter Kerr
SSchool of Music

Received on Saturday, 24 January 2009 20:12:52 UTC