servo/tests/wpt/css-tests/css-regions-1_dev/html/reference/regions-dialog-002-ref.htm

37 lines
No EOL
777 B
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Reftest Reference</title>
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea">
<style>
#content {
position: static;
display: block;
width: 30px;
height: 30px;
margin: 0px;
background-color: green;
}
#region {
width: 100px;
height: 100px;
background-color: gray;
}
</style>
</head>
<body>
<ol>
<li>Test passes if you see a green square inside a gray square.</li>
<li>You shouldn't see any red.</li>
</ol>
<div id="region">
<dialog id="content"></dialog>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
var dialog = document.getElementsByTagName('dialog')[0];
dialog.show();
});
</script>
</body></html>