001.html   [plain text]


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
 <head>
  <title>Replaced inline elements with % widths</title>
  <style type="text/css">
   div { width: 600px: height: 100px; background: red; }
   img { width: 100%; height: 100px; vertical-align: bottom; }
  </style>
 </head>
 <body>
  <p>There should be no red below.</p>
  <div>
   <p><img src="/resources/images/sample" alt="Image support required for this test"></p>
  </div>
 </body>
</html>