mirror of
https://github.com/servo/servo.git
synced 2025-07-10 00:43:39 +01:00
47 lines
No EOL
1.9 KiB
HTML
47 lines
No EOL
1.9 KiB
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 Regions: resizing percent sized region and auto-sized region</title>
|
|
<link href="mailto:mibalan@adobe.com" rel="author" 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" />
|
|
<link href="http://www.w3.org/TR/css3-regions/#regions-visual-formatting-details" rel="help" />
|
|
<meta content="dom ahem http" name="flags" />
|
|
<meta content="Test checks that resizing the viewport of a page containing two
|
|
regions and a single named flow where one region has percentage size and the other
|
|
is auto-sized correctly relayouts the region's contents." name="assert" />
|
|
<link href="reference/regions-resizing-011-ref.xht" rel="match" />
|
|
<!-- The <script type="text/css"> below is just a textual container for styles that will be
|
|
injected in the iframe at load time.-->
|
|
<script type="text/css" id="test-styles">
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
#region-parent {
|
|
height: 100%;
|
|
}
|
|
|
|
#region1 {
|
|
width: 80%;
|
|
height: 40%;
|
|
}
|
|
|
|
#region2 {
|
|
margin-top: 10px;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
</script>
|
|
<script src="support/util.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
window.addEventListener("load", function() {
|
|
injectStylesInIFrame("#test-styles", "iframe");
|
|
resizeViewportTo("iframe", 100, 200);
|
|
})
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if you see two green squares below and no red.</p>
|
|
<p>The test also fails if any of the green blocks is <strong>not</strong> a square (e.g. rectangle or polygon).</p>
|
|
<iframe width="437" height="143" frameborder="0" src="support/two-regions-in-container.html"></iframe>
|
|
|
|
</body></html> |