<!DOCTYPE html>
<html>
<head>
<style>
    td {
        border: 1px solid #f90; padding: 0px;
    }
    #baseline {
        vertical-align:baseline;
    }
    #top {
        vertical-align:top;
    }
</style>
<script>
    function loadAndStall()
    {
        return "http://127.0.0.1:8000/resources/load-and-stall.py";
    }
    
    function pngImage()
    {
        return "?name=../../../fast/css/resources/bikes.bmp&mimeType=image%bmp";
    }
    
    function runTest()
    {
        var images = document.querySelectorAll("img");
        for (var i = 0, len = images.length; i < len; i++) {
            var image = images[i];
            image.src = loadAndStall() + pngImage() + "&stallAt=0&stallFor=0";
        }
    }
</script>
</head>
<body>
<p> https://bugs.webkit.org/show_bug.cgi?id=108357:  There should be no space between the top of the image and the orange border.</p>
<table>
    <tbody>
        <tr>
             <td id="baseline"><img></td><td id="baseline"><video autoplay></video></td>
        </tr>
        <tr>
             <td id="top"><img></td><td id="top"><video autoplay></video></td>
        </tr>
    </tbody>
             <script>runTest();</script>
</table>
</body>
</html>

