tor-browser

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

dir-shadow-42-ref.html (1035B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>[dir] and shadow slots: dir=ltr on a div in the shadow tree, dir=rtl on the shadow host, no slotted text in the light or dark trees</title>
      6 <link rel="author" title="Eric Meyer" href="mailto:emeyer@igalia.com">
      7 <link rel="author" title="L. David Baron" href="mailto:dbaron@chromium.org">
      8 <link rel="help" href="https://html.spec.whatwg.org/multipage/C#the-dir-attribute">
      9 <link rel="help" href="https://github.com/whatwg/html/issues/3699">
     10 <link rel="help" href="https://github.com/whatwg/html/pull/9796">
     11 <style type="text/css">
     12 body {width: 600px;}
     13 #host {border: 1px solid gray; margin: 1em; padding: 0.25em;}
     14 span {border: 1px solid silver;}
     15 
     16 </style>
     17 </head>
     18 <body>
     19 
     20 <p>`dir=ltr` on a div in the shadow tree, `dir=rtl` on the shadow host, no slotted text in the light or dark trees</p>
     21 <div id="host" dir="rtl"><div dir="ltr"><span></span></div></div>
     22 <p id="result">The HTML direction / computed CSS `direction` value is: ltr / ltr (on the slot).</p>
     23 
     24 </body>
     25 </html>