<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

 <head>

  <title>CSS Test: Border conflict resolution - adjacent cells with same border-style and border-width</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution">
  <meta content="ahem image" name="flags">
  <meta content="When two adjacent cells have the same border-width and the same border-style in a 'border-collapse: collapse' table, then the color of the border from the leftmost cell wins (if the table's 'direction' is 'ltr'; right, if it is 'rtl') and the color of the border from the topmost cell wins." name="assert">

  <style type="text/css">
  table
  {
  border-collapse: collapse;
  color: white;
  font: 1.25em/1 Ahem;
  margin: auto auto 2em 2em;
  }

  td {padding: 0px;}

  img
  {
  height: 1em;
  vertical-align: bottom; 
  /* 
  With 'vertical-align: bottom', swatch-[color] images "sit" 
  at the bottom of the cell's line box and not on its baseline 
  */
  width: 1em;
  }
  </style>

 </head>

 <body>

  <p>Test passes if both grids are <strong>perfectly identical</strong>.</p>

  <table id="test">

   <tr>
    <td><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-blue.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-yellow.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-green.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-orange.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"></td>
   </tr>

  </table>


  <table id="reference">

   <tr>
    <td><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-blue.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-yellow.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-green.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-orange.png" alt="Image download support must be enabled">O<img src="support/swatch-orange.png" alt="Image download support must be enabled">B<img src="support/swatch-blue.png" alt="Image download support must be enabled">Y<img src="support/swatch-yellow.png" alt="Image download support must be enabled">G<img src="support/swatch-green.png" alt="Image download support must be enabled"></td>
   </tr>

   <tr>
    <td><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-orange.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-blue.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-yellow.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"><img src="support/swatch-green.png" alt="Image download support must be enabled"></td>
   </tr>

  </table>

 </body>
</html>