wpt / css / CSS2 / backgrounds / background-bg-pos-208.xht

Status: PASS | Duration: 10ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/CSS2/backgrounds/background-bg-pos-208.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: Background Position: bottom right and the viewport</title>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-20 -->
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/bg-pos-6.html" type="text/html"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background"/>
  <link rel="match" href="background-bg-pos-208-ref.xht" />

<style type="text/css"><![CDATA[
   html { background: bottom right url(support/diamond.png) scroll white no-repeat; color: black; }
   html, body { margin: 0; border: 0; padding: 0; }
   p { margin: 2em 0 0 0; }
]]></style>

</head>

<body>
<p>There should be a single fuchsia diamond at the right of the viewport at the end of this line.</p></body>
</html>

/css/CSS2/backgrounds/background-bg-pos-208-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: 0;}

  p
  {
  margin: 0;
  padding: 2em 0 0 0;
  position: relative;
  }

  img
  {
  bottom: 0;
  position: absolute;
  right: 0;
  }
  ]]></style>

 </head>

 <body>

  <p><img src="support/diamond.png" alt="Image download support must be enabled" />There should be a single fuchsia diamond at the right of the viewport at the end of this line. </p>

 </body>
</html>