DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (5f2e62175414)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!doctype html>
<title>Test: directionality propagation in Shadow DOM.</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="help" href="https://html.spec.whatwg.org/#the-dir-attribute">
<link rel="help" href="https://github.com/whatwg/html/issues/3699">
<link rel="match" href="directionality-001-ref.html">
<div id="host0" dir="rtl"><span> 789 101112 </span></div>
<div id="host1" dir="rtl"><span> 789 101112 </span></div>
<div id="host2" dir="rtl"><span> 789 101112 </span></div>
<script>
  host0.attachShadow({mode: 'closed'}).innerHTML =
    '<div> 123 456 <span><slot></slot></span></div>';

  host1.attachShadow({mode: 'closed'}).innerHTML =
    '<div> 123 456 <span dir="ltr"><slot></slot></span></div>';

  host2.attachShadow({mode: 'closed'}).innerHTML =
    '<div> 123 456 <span><slot dir="ltr"></slot></span></div>';
</script>