tor-browser

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

contain-html-t-o-002.html (972B)


      1 <!doctype html>
      2 <html lang=en>
      3  <meta charset=utf-8>
      4  <title>CSS-contain test: paint containment on html 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="paint containment on html 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 }
     27 html {
     28    contain: paint;
     29 }
     30 p {
     31    margin: auto;
     32    padding: 150px 0;
     33    writing-mode: horizontal-tb;
     34    direction: ltr;
     35 }
     36 </style>
     37 
     38 <p>Test passes if there is no red.