Re: Bug: img size with %

Peter Kerr <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.