Amaya absolute positioning question/bug?

Dear Amaya team,

I would be grateful if someone could answer the following question for me please.

As I understand the CSS2 spec., blocks that are positioned absolutely are so positioned relative to their containing block (providing this element itself has been positioned absolutely or relatively), otherwise it's positioned to the initial containing block.  Yet in Amaya version 9.2.2. I cannot get absolute positioning to work properly where such an block is contained within another absolutely positioned block. My test page works fine in browsers such as Firefox 1.0.6 and Internet Explorer version 6 (quirks and compliant modes), but not in Amaya?

The test code is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#container {
    position: absolute;
    top: 200px;
    left: 200px;
}
#pos {
    position: absolute;
    top: 50px;
    left: 50px;
}
</style>
</head>

<body>
    <div id="container">
        <p>X</p>
        <div id="pos"><p>Y</p></div>
    </div>
</body>
</html>

In browsers Firefox, IE 6 and Netscape 6 the "X" is positioned 200px, 200px (relative to top, left of screen) and the "Y" is positioned 250px, 250px (relative to top, left of screen) as I would expect to see. But in Amaya 9.2.2. The "Y" is positioned 250px from the screen left, but only 50px from the screen top.  It is as though it has inherited the left offset but ignored the top offset?

Is this a bug or am I missing something obvious?

Thanks,
Kevin

Received on Wednesday, 19 October 2005 14:03:38 UTC