wpt / css / CSS2 / borders / border-003.xht

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

/css/CSS2/borders/border-003.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: Border set using border-color</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/"/>
        <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border"/>
        <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties"/>
        <link rel="help" href="http://www.w3.org/TR/css3-background/#borders"/>
        <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-shorthands"/>
        <link rel="match" href="border-003-ref.xht"/>
        <meta name="assert" content="The 'border' shorthand property properly accepts and sets border-color."/>
        <style type="text/css">
            div
            {
                border: blue;
                border-style: solid;
                border-width: 5px;
                height: 100px;
                width: 100px;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is a hollow blue square.</p>
        <div></div>
    </body>
</html>

/css/CSS2/borders/border-003-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/"/>

  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
  <style type="text/css"><![CDATA[
  div
  {
  color: blue;
  font: 5px/1 Ahem;
  width: 22em;
  word-spacing: 19em;
  }

  div.top-and-bottom-stripes
  {
  background-color: blue;
  height: 1em;
  }
  ]]></style>

 </head>

 <body>

  <p>Test passes if there is a hollow blue square.</p>

  <div class="top-and-bottom-stripes"></div>

  <div>1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0</div>

  <div class="top-and-bottom-stripes"></div>

 </body>
</html>