tor-browser

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

abs-pos-vlr-border-001.html (1747B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
      4 <link rel="author" href="https://mozilla.org" title="Mozilla">
      5 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow">
      6 <meta name="assert" content="This test checks that absolutely positioned elements are offset correctly in a containing block with an orthogonal writing mode and that has a border." />
      7 <link rel="match" href="abs-pos-vlr-border-001-ref.html">
      8 <style>
      9  body { margin: 0; }
     10  .vert-cb {
     11    position: relative;
     12    width: 150px;
     13    height: 60px;
     14    writing-mode: vertical-lr;
     15    direction: rtl;
     16    background: lightblue;
     17    border: solid gray;
     18    border-width: 1px 2px 3px 4px;
     19    margin-bottom: 2px;
     20  }
     21  .horiz-parent {
     22    width: 120px;
     23    height: 100%;
     24    box-sizing: border-box;
     25    border: solid orange;
     26    border-width: 4px 3px 2px 1px;
     27    writing-mode: horizontal-tb;
     28  }
     29  .abspos {
     30    position: absolute;
     31    /* Specify a height to work around https://bugzilla.mozilla.org/1769102 */
     32    height: 40px;
     33    background: pink;
     34    border: solid black;
     35    border-width: 2px 1px 4px 3px;
     36  }
     37 </style>
     38 <body>
     39  <div class="vert-cb">
     40    <div class="horiz-parent">
     41      <div class="abspos" style="width: max-content">Hello</div>
     42    </div>
     43  </div>
     44  <div class="vert-cb">
     45    <div class="horiz-parent">
     46      <div class="abspos" style="width: 100px">Hello</div>
     47    </div>
     48  </div>
     49  <div class="vert-cb">
     50    <div class="horiz-parent">
     51      <canvas class="abspos" height="40px" width="100px"></canvas>
     52    </div>
     53  </div>
     54  <div class="vert-cb">
     55    <div class="horiz-parent">
     56      <img src="broken" class="abspos" height="40px" width="100px">
     57    </div>
     58  </div>
     59 </body>