mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
37 lines
No EOL
1.1 KiB
HTML
37 lines
No EOL
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions Test: flowing modal dialog elements in region</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 modal dialog elements are correctly flowed into a region." name="assert">
|
|
<link href="reference/regions-modal-dialog-002-ref.htm" rel="match">
|
|
<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>
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
var dialog = document.getElementsByTagName('dialog')[0];
|
|
dialog.showModal();
|
|
});
|
|
</script>
|
|
|
|
</body></html> |