tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

table-cell-valign-001.html (1444B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Writing Modes test: vertical-align in orthogonal table cell</title>
      4 
      5 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#line-mappings">
      6 <meta assert="For the vertical-align property, the 'top' of the line box is its over edge; the 'bottom' of the line box is its under edge.">
      7 <meta name="fuzzy" content="maxDifference=0-64; totalPixels=0-1" />
      8 <link rel="match" href="reference/table-cell-valign-001-ref.html">
      9 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
     10 
     11 <meta name="flags" content="ahem" />
     12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13 
     14 <style>
     15 table {
     16  font: 50px/1 Ahem;
     17 }
     18 
     19 .v {
     20  writing-mode: vertical-lr;
     21 }
     22 
     23 .h {
     24  writing-mode: horizontal-tb;
     25 }
     26 
     27 td {
     28  block-size: 2em;
     29  padding: 0;
     30  color: green;
     31 }
     32 
     33 /* If vertical-align works correctly on the cells, their green Ahem glyphs
     34   should cover the red part of each background. */
     35 td:nth-child(1) {
     36  vertical-align: top;
     37  background: linear-gradient(to bottom, red 50%, transparent 50%);
     38 }
     39 td:nth-child(2) {
     40  vertical-align: middle;
     41  background: linear-gradient(to bottom, transparent 25%, red 25%, red 75%, transparent 75%);
     42 }
     43 td:nth-child(3) {
     44  vertical-align: bottom;
     45  background: linear-gradient(to bottom, transparent 50%, red 50%);
     46 }
     47 </style>
     48 
     49 <table class=v border=1>
     50 <tr>
     51  <td class=h>XX</td>
     52  <td class=h>XX</td>
     53  <td class=h>XX</td>
     54 </tr>
     55 </table>