Sha256: 0042dde95c50dfa824c76c2d0df6ca3e077b54a4f0d5511f230cd805e3d63b2d

Contents?: true

Size: 1.07 KB

Versions: 11

Compression:

Stored size: 1.07 KB

Contents

<!DOCTYPE html>
<%# Borrowed from Titus Fortner %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Shadow DOM</title>
  </head>
  <body>
    <div id="no_host"></div>
    <div id="shadow_host"></div>
    <a href="scroll.html">scroll.html</a>
    <script>
      let shadowRoot = document.getElementById('shadow_host').attachShadow({mode: 'open'});
      shadowRoot.innerHTML = `
              <span class="wrapper" id="shadow_content"><span class="info">some text</span></span>
              <div id="nested_shadow_host"></div>
              <a href="scroll.html">scroll.html</a>
	  		  <div id="controls_wrapper">
                <input type="text" />
                <input type="checkbox" id="shadow_checkbox" />
                <input type="file" />
	 		  </div>
            `;

      let nestedShadowRoot = shadowRoot.getElementById('nested_shadow_host').attachShadow({mode: 'open'});
      nestedShadowRoot.innerHTML = `
              <div id="nested_shadow_content"><div>nested text</div></div>
            `;
    </script>
  </body>
</html>

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/capybara-3.40.0/lib/capybara/spec/views/with_shadow.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/capybara-3.40.0/lib/capybara/spec/views/with_shadow.erb
capybara-3.40.0 lib/capybara/spec/views/with_shadow.erb
capybara-3.39.2 lib/capybara/spec/views/with_shadow.erb
capybara-3.39.1 lib/capybara/spec/views/with_shadow.erb
capybara-3.39.0 lib/capybara/spec/views/with_shadow.erb
capybara-3.38.0 lib/capybara/spec/views/with_shadow.erb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/spec/views/with_shadow.erb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/spec/views/with_shadow.erb
capybara-3.37.1 lib/capybara/spec/views/with_shadow.erb
capybara-3.37.0 lib/capybara/spec/views/with_shadow.erb