display-contents-td-001.html (772B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Display: Children of multiple td elements with display:contents wrapped in single anonymous table cell</title> 4 <link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents"> 6 <link rel="match" href="display-contents-pass-ref.html"> 7 <style> 8 /* Disable kerning because kerning may differ for different node tree. */ 9 html { font-kerning: none; font-feature-settings: "kern" off; } 10 td { 11 display: contents; 12 padding-right: 3em 13 } 14 </style> 15 <p>You should see the word PASS below.</p> 16 <table cellpadding="0" cellspacing="0"> 17 <tr> 18 <td>P</td><td>A</td><td>S</td><td>S</td> 19 </tr> 20 </table>