wpt / css / CSS2 / generated-content / content-172.xht

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

/css/CSS2/generated-content/content-172.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: Generated Content: \A and white-space</title>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/content/002.html" type="text/html"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
  <link rel="match" href="content-172-ref.xht" />

  <style type="text/css">
   /* Setup */
   td { font: 1em/1em monospace; border: solid; }
   .normal div { white-space: normal; }
   .pre div { white-space: pre; }
   .nowrap div { white-space: nowrap; }
   :before, :after { white-space: inherit; /* this isn't a cascade test */ }

   /* Test */
   .test:before { content: 'XXX\A    XXX\A       '; }
   .test:after { content: 'XXX'; }
  </style>
 </head>
 <body>

  <p>The following two columns should be pixel-perfect identical (the
  first two rows should just be rows of Xs, the last row should be
  a step pattern):</p>

  <table>
   <thead>
    <tr>
     <th> Test </th>
     <th> Control </th>
    </tr>
   </thead>
   <tbody>
    <tr class="normal">
     <td>
<div class="test"></div>
     </td>
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
    </tr>
    <tr class="nowrap">
     <td>
<div class="test"></div>
     </td>
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
    </tr>
    <tr class="pre">
     <td>
<div class="test"></div>
     </td>
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
    </tr>
   </tbody>
  </table>
 </body>
</html>

/css/CSS2/generated-content/content-172-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[
  td
  {
  border: black solid medium;
  font: 1em/1 monospace;
  }

  tr.normal div {white-space: normal;}

  tr.pre div {white-space: pre;}

  tr.nowrap div {white-space: nowrap;}
  ]]></style>

 </head>

 <body>

  <p>The following two columns should be pixel-perfect identical (the
  first two rows should just be rows of Xs, the last row should be
  a step pattern):</p>

  <table>
   <thead>
    <tr>
     <th> Test </th>
     <th> Control </th>
    </tr>
   </thead>
   <tbody>
    <tr class="normal">
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
    </tr>
    <tr class="nowrap">
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
    </tr>
    <tr class="pre">
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
     <td>
<div>XXX
   XXX
      XXX</div>
     </td>
    </tr>
   </tbody>
  </table>

 </body>
</html>