wpt / css / CSS2 / positioning / abspos-025.xht

Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/CSS2/positioning/abspos-025.xht

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>CSS Test: Positioning replaced elements with four offsets</title>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/024.html" type="text/html"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width"/>
  <link rel="match" href="abspos-025-ref.xht" />

  <meta name="flags" content="image"/>
  <style type="text/css">
   html { background: url(support/swatch-red.png) no-repeat 4em 4em; }
   body {margin: 8px; font: 1em/1.25 serif;}
   strong {line-height: 1;}
   img { position: absolute; left: 4em; right: 0; top: 4em; bottom: 0; }
  </style>
 </head>
 <body>
  <p>Test passes if there is a green square and <strong>no red</strong>. <img src="support/swatch-green.png" alt="FAIL" /></p>

</body>
</html>

/css/CSS2/positioning/abspos-025-ref.xht

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 <head>

  <title>CSS Reftest Reference</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

  <style type="text/css"><![CDATA[
  body {margin: 8px; font: 1em/1.25 serif;}

  strong {line-height: 1;}

  img
  {
  left: 56px;
  position: relative;
  top: 12px;
  vertical-align: top;
  }
  ]]></style>

 </head>

 <body>

  <p>Test passes if there is a green square and <strong>no red</strong>.</p>

  <div><img src="support/swatch-green.png" alt="Image download support must be enabled" /></div>

 </body>
</html>