servo/tests/wpt/css-tests/css-regions-1_dev/html/regions-dialog-001.htm

48 lines
No EOL
1.3 KiB
HTML

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