servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1/reference/regions-modal-dialog-002-ref.xht

28 lines
No EOL
741 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Test: flowing modal dialog elements in region</title>
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
<style>
#content {
width: 30px;
height: 30px;
background-color: green;
}
</style>
</head>
<body>
<ol>
<li>Test passes if you see a green square.</li>
</ol>
<div id="region">
<dialog id="content"></dialog>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
var dialog = document.getElementsByTagName('dialog')[0];
dialog.showModal();
});
</script>
</body></html>