Update shadow DOM and custom elements tests
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / shadow-dom / directionality-001.tentative.html
1 <!doctype html>
2 <title>Test: directionality propagation in Shadow DOM.</title>
3 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Ãlvarez">
4 <link rel="help" href="https://html.spec.whatwg.org/#the-dir-attribute">
5 <link rel="help" href="https://github.com/whatwg/html/issues/3699">
6 <link rel="match" href="directionality-001-ref.html">
7 <div id="host0" dir="rtl"><span> 789 101112 </span></div>
8 <div id="host1" dir="rtl"><span> 789 101112 </span></div>
9 <div id="host2" dir="rtl"><span> 789 101112 </span></div>
10 <script>
11   host0.attachShadow({mode: 'closed'}).innerHTML =
12     '<div> 123 456 <span><slot></slot></span></div>';
13
14   host1.attachShadow({mode: 'closed'}).innerHTML =
15     '<div> 123 456 <span dir="ltr"><slot></slot></span></div>';
16
17   host2.attachShadow({mode: 'closed'}).innerHTML =
18     '<div> 123 456 <span><slot dir="ltr"></slot></span></div>';
19 </script>