dir-shadow-41-ref.html (958B)
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="help" href="https://html.spec.whatwg.org/multipage/C#the-dir-attribute"> 8 <link rel="help" href="https://github.com/whatwg/html/issues/3699"> 9 <link rel="help" href="https://github.com/whatwg/html/pull/9796"> 10 <style type="text/css"> 11 body {width: 600px;} 12 #host {border: 1px solid gray; margin: 1em; padding: 0.25em;} 13 span {border: 1px solid silver;} 14 15 </style> 16 </head> 17 <body> 18 19 <p>`dir=rtl` on a div in the shadow tree, `dir=ltr` on the shadow host, no slotted text in the light or dark trees</p> 20 <div id="host" dir="ltr"><div dir="rtl"><span></span></div></div> 21 <p id="result">The HTML direction / computed CSS `direction` value is: ltr / ltr (on the slot).</p> 22 23 </body> 24 </html>