| <!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> |