W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2009

Re: Bug: img size with %

From: Peter Kerr <p.kerr@auckland.ac.nz>
Date: Sun, 25 Jan 2009 09:11:57 +1300
Cc: www-amaya@w3.org
Message-Id: <9B759BF9-1BC8-4C97-89FF-704BCCA9FADC@auckland.ac.nz>
To: WalkinRaven <walkinraven@gmail.com>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:40 UTC