Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-writing-modes/table-cell-002.html
<!doctype html> <html lang="en"> <meta charset="utf-8"> <title>CSS Writing Mode test: orthogonal table cell</title> <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow"> <meta assert="The writing mode property applies to table cells: max-heights constrains on a vertical table cell (in a horizontal table) ought to have the same effect on the cell as max-width would on horizontal ones. Lines of longer than the max which have break opportunities are expected to wrap."> <meta flags="ahem"> <link rel="match" href="reference/table-cell-002-ref.html"> <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> table, td { padding: 0; border-spacing: 0; } td { max-height: 100px; font: 50px / 50px ahem; color: green; writing-mode: vertical-rl; background: red; } </style> <p>There should be a <strong>green square</strong> and <strong>no red</strong>. <table><tbody><tr><td>xx xx</td></tr></tbody></table> </body> </html>
/css/css-writing-modes/reference/table-cell-002-ref.html
<!doctype html> <html lang="en"> <meta charset="utf-8"> <title>CSS Writing Mode test reference</title> <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> <meta flags="ahem"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> div { font: 50px / 50px ahem; color: green; max-height: 100px; writing-mode: vertical-rl; /* Doing this with a horizontal div and max-width ought to result in the same 100x100 green square, but font rasterisation may (and in practice does) result in different aliasing artifacts. Therefore I am using the same writing mode as the test, to make sure we get identically sharp/fuzzy edges on the same sides. */ } </style> <p>There should be a <strong>green square</strong> and <strong>no red</strong>. <div>xx xx</div> </body> </html>