mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +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,86 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSS Regions: forced region breaks and clear on floats inside named flow contents</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-break/#parallel-flows" rel="help">
|
||||
<meta content="ahem" name="flags">
|
||||
<meta content="Test checks that no regions are left empty when setting
|
||||
a forced region break on a cleared float." name="assert">
|
||||
<link href="reference/floats-clear-breaks-002-ref.htm" rel="match">
|
||||
<style>
|
||||
article {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
.flow {
|
||||
flow-into: f;
|
||||
}
|
||||
|
||||
.float {
|
||||
float: left;
|
||||
color: blue;
|
||||
}
|
||||
.break {
|
||||
break-before: region;
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: left;
|
||||
color: green;
|
||||
}
|
||||
|
||||
.bordered {
|
||||
border: 10px solid black;
|
||||
}
|
||||
|
||||
.region {
|
||||
flow-from: f;
|
||||
max-width: 100px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.region > p {
|
||||
background: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Test passes if you see two squares separated by a small vertical space. The squares should
|
||||
have a black outline, the top square should be blue and the bottom one should be green.<br>
|
||||
You should see no red.
|
||||
</p>
|
||||
|
||||
<div class="bordered region">
|
||||
<p> </p>
|
||||
</div>
|
||||
<div class="bordered region">
|
||||
<p> </p>
|
||||
</div>
|
||||
<!-- In case the clear + forced break lead to an empty region, the content will flow in this
|
||||
third region ending up without a border. -->
|
||||
<div class="region">
|
||||
<p> </p>
|
||||
</div>
|
||||
|
||||
<article class="flow">
|
||||
<div class="float">
|
||||
xxxxx
|
||||
xxxxx
|
||||
xxxxx
|
||||
xxxxx
|
||||
xxxxx
|
||||
</div>
|
||||
<div class="break clear">
|
||||
xxxxx
|
||||
xxxxx
|
||||
xxxxx
|
||||
xxxxx
|
||||
xxxxx
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue