tor-browser

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

contain-body-t-o-001.html (966B)


      1 <!doctype html>
      2 <html lang=en>
      3  <meta charset=utf-8>
      4  <title>CSS-contain test: layout containment on body prevents text-orientation propagation</title>
      5  <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
      6  <meta name=flags content="">
      7  <meta name=assert content="layout containment on body prevents text-orientation propagation">
      8  <link rel="match" href="reference/contain-body-t-o-001-ref.html">
      9  <link rel=help href="https://drafts.csswg.org/css-contain-1/#contain-property">
     10 
     11 <style>
     12 html {
     13    writing-mode: vertical-lr;
     14    direction: rtl;
     15    width: 100vw;
     16    height: 100vh;
     17    overflow: hidden;
     18 }
     19 body {
     20    margin: 0;
     21    border-top: 100px solid red;
     22    border-bottom: 100px solid green;
     23    width: 100vw;
     24    height: 100vh;
     25    text-orientation: upright;
     26    contain: layout;
     27 }
     28 p {
     29    margin: auto;
     30    padding: 150px 0;
     31    writing-mode: horizontal-tb;
     32    direction: ltr;
     33 }
     34 </style>
     35 
     36 <p>Test passes if there is no red.