Update of /cvsroot/dynapi/dynapi/tests
In directory usw-pr-cvs1:/tmp/cvs-serv23475

Added Files:
        z_index_bug.html 
Log Message:
testfile for z-index bug, see bug # 456245 

--- NEW FILE ---
<html>
<head>
<title>Untitled</title>
<Script language="Javascript" src="../src/dynapi.js"></script>
<Script language="Javascript">
<!--
        DynAPI.setLibraryPath('../src/lib/')
        DynAPI.include('dynapi.api.browser.js')
        DynAPI.include('dynapi.api.dynlayer.js')
        DynAPI.include('dynapi.api.dyndocument.js')
//-->
</script>
<script>
        DynAPI.onLoad = function() {

                layer01 = new DynLayer();
                layer01.setSize(50, 50);
                layer01.moveTo(50, 150);
                layer01.setZIndex(2);
                layer01.setBgColor('#0099ff');
                DynAPI.document.addChild(layer01);

                layer02 = new DynLayer();
                layer02.setSize(50, 50);
                layer02.moveTo(70, 170);
                layer02.setZIndex(1);
                layer02.setBgColor('#cc0066');
                DynAPI.document.addChild(layer02);

                layer03 = new DynLayer();
                layer03.setSize(50, 50);
                layer03.moveTo(150, 150);
                layer03.setZIndex(1);
                layer03.setBgColor('#0099ff');
                DynAPI.document.addChild(layer03);

                layer04 = new DynLayer();
                layer04.setSize(50, 50);
                layer04.moveTo(170, 170);
                layer04.setZIndex(0);
                layer04.setBgColor('#cc0066');
                DynAPI.document.addChild(layer04);

                layer05 = new DynLayer();
                layer05.setSize(50, 50);
                layer05.moveTo(250, 150);
                layer05.setZIndex(50);
                layer05.setBgColor('#0099ff');
                DynAPI.document.addChild(layer05);

                layer06 = new DynLayer();
                layer06.setSize(50, 50);
                layer06.moveTo(270, 170);
                layer06.setBgColor('#cc0066');
                DynAPI.document.addChild(layer06);

        }
</script>
</head>
<body>
<b>Issue:</b>
It seems NS4 and NS6 might have problems assigning z-index to layers properly.<br />
In this test the blue layer is created first, but it's z-index is set later, so it 
should show above the red one.<br />
In the first pair, blue is set to 2, and red to 1.<br />
In the second pair, blue is set to 1, and red to 0.<br />
In the first pair, blue is set to 50, and red is not set at all.<br />
Currently NS4 does not work correctly.
</body>
</html>

_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-cvs

Reply via email to