dir-shadow-25-ref.html (848B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"/> 5 <title>[dir] and shadow slots: dir=ltr on a paragraph in the shadow tree, text in the light tree</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 div {border: 1px solid gray; margin: 1em;} 13 div p {width: 50%; border: 1px dotted;} 14 </style> 15 </head> 16 <body> 17 18 <p>`dir=ltr` on a paragraph in the shadow tree, text in the light tree</p> 19 <div id="host"> 20 <p dir="ltr">paragraph.</p> 21 </div> 22 <p id="result">The HTML direction / computed CSS `direction` value for the paragraph is: ltr / ltr.</p> 23 24 </body> 25 </html>