Sha256: 896bedd41e9173e2a968e1e155aa6390db7b8299d65dec27809d72e58b00e855

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

<!DOCTYPE html>
<html>
<meta charset='utf-8'>
<head>
<script src="../dialog-polyfill.js"></script>
<link rel="stylesheet" type="text/css" href="../dialog-polyfill.css">
<style>
dialog {
  height: 100px;
  width: 100px;
}

dialog + .backdrop {
  background-color: rgba(0,255,0,0.5);
}
</style>
</head>
<body>
<p>Test for backdrop. The test passes if you see a green background behind the
box.</p>
<div id="console"></div>
<dialog></dialog>
<button id="inert-button">Can't click me</button>
<script>
function writeToConsole(s) {
  var console = document.getElementById('console');
  var span = document.createElement('span');
  span.textContent = s;
  console.appendChild(span);
  console.appendChild(document.createElement('br'));
}

var dialog = document.querySelector('dialog');
dialogPolyfill.registerDialog(dialog);
dialog.showModal();
</script>
</body>
</html>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
cortex-0.1.3 spec/dummy/node_modules/dialog-polyfill/tests/backdrop.html
material-rails-0.1.0 node_modules/dialog-polyfill/tests/backdrop.html