servo/tests/wpt/web-platform-tests/css/css-regions/stacking-context/regions-modal-dialog-002.html

37 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Regions Test: flowing modal dialog elements in region</title>
<link rel="author" title="Catalin Badea" href="mailto:badea@adobe.com">
<link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from">
<meta name="flags" content="dom">
<meta name="assert" content="Test checks that modal dialog elements are correctly flowed into a region.">
<link rel="match" href="reference/regions-modal-dialog-002-ref.html">
<style>
#content {
width: 30px;
height: 30px;
background-color: green;
flow-into: f;
}
#region {
flow-from: f;
}
</style>
</head>
<body>
<ol>
<li>Test passes if you see a green square.</li>
</ol>
<dialog id="content"></dialog>
<div id="region"></div>
</body>
<script>
document.addEventListener("DOMContentLoaded", function() {
var dialog = document.getElementsByTagName('dialog')[0];
dialog.showModal();
});
</script>
</html>