tor-browser

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

display-contents-slot-attach-whitespace.html (557B)


      1 <!doctype html>
      2 <title>Attaching shadow slot with assigned whitespace separated inline elements</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
      4 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-rules">
      5 <link rel="match" href="../reference/pass_if_two_words.html">
      6 <p>There should be a space between "two" and "words" below.</p>
      7 <div id="host"><span>two</span> <span>words</span></div>
      8 <script>
      9  host.offsetTop;
     10  host.attachShadow({mode:"open"}).innerHTML = "<slot></slot>";
     11 </script>