mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
This commit is contained in:
parent
1a81b18b9f
commit
2c9faf5363
91915 changed files with 5979820 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSS Regions: resizing floated region with percentage size relative to the body</title>
|
||||
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan">
|
||||
<link href="http://www.w3.org/TR/css3-regions/#flow-into" 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 a region
|
||||
that has a percentage size relative to the body and is floated, correctly relayouts
|
||||
the region's contents." name="assert">
|
||||
<link href="reference/regions-resizing-005-ref.htm" 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">
|
||||
#region {
|
||||
float: right;
|
||||
width: 50%;
|
||||
}
|
||||
</script>
|
||||
<script src="support/util.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
window.addEventListener("load", function() {
|
||||
injectStylesInIFrame("#test-styles", "iframe");
|
||||
resizeViewportTo("iframe", 160, 100);
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if you see a green square below and no red.</p>
|
||||
<p>The test also fails if the there's a green block that is <strong>not</strong> a square (e.g. rectangle or polygon).</p>
|
||||
<iframe width="320" height="400" frameborder="0" src="support/region-in-body.html"></iframe>
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue