wpt / css / CSS2 / css1 / c5516-ibrdr-c-000.xht

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

/css/CSS2/css1/c5516-ibrdr-c-000.xht

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: border-color</title>
  <link rel="help" href="http://www.w3.org/TR/REC-CSS1#border-color"/>
  <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="match" href="c5516-ibrdr-c-000-ref.xht" />

  <style type="text/css"><![CDATA[
   p { margin: 3em; }
   .one {border-color: green; border-style: solid;}
   .two {border-color: green; border-width: medium; border-style: solid;}
   .three {border-color: purple green blue yellow; border-width: 2em; border-style: solid;
           line-height: 6em;}
  ]]></style>
  <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-properties" title="8.5 Border properties"/>
 </head>
 <body>
  <p>
   <span class="one">This box should have a green border.</span>
  </p>
  <p>
   <span class="two">This box should have a green border.</span>
  </p>
  <p>
    Clockwise from top, the borders around
   <span class="three">THIS&nbsp;PHRASE</span>
    should be: PURPLE, GREEN, BLUE, YELLOW.
  </p>
 </body>
</html>

/css/CSS2/css1/c5516-ibrdr-c-000-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[
  p {margin: 3em;}

  span
  {
  border-color: green green green green;
  border-style: solid solid solid solid;
  border-width: medium medium medium medium;
  }

  span#multi-color
  {
  border-top: purple solid 2em;
  border-right: green solid 2em;
  border-bottom: blue solid 2em;
  border-left: yellow solid 2em;
  line-height: 6em;
  }
  ]]></style>

 </head>

 <body>

  <p><span>This box should have a green border.</span></p>

  <p><span>This box should have a green border.</span></p>

  <p>Clockwise from top, the borders around <span id="multi-color">THIS&nbsp;PHRASE</span> should be: PURPLE, GREEN, BLUE, YELLOW.</p>

 </body>
</html>