Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>inert timing</title>
</head>
<body>
  <p>Hit Tab, input will get the focus.</p>
  <div id="myDiv" inert>
    <input placeholder="distributed input">
  </div>
  
  
  <script src="https://wicg.github.io/inert/inert.js"></script>
  
  <script>
    var host = document.querySelector('#myDiv');
    var shadowRoot = host.createShadowRoot();
    // This input will be tabbable.
    shadowRoot.appendChild(document.createElement('input'));
    shadowRoot.appendChild(document.createElement('content'));
  </script>
  
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
valdrinkoshipro
0viewers