mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
71 lines
No EOL
3 KiB
HTML
71 lines
No EOL
3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<!--
|
|
Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
--><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Test: Static position of abspos children in a row flex container, with various "align-content" values with explicit fallback values</title>
|
|
<link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert" />
|
|
<link href="https://drafts.csswg.org/css-align-3/#align-abspos-static" rel="help" />
|
|
<link href="reference/flex-abspos-staticpos-fallback-align-content-001-ref.xht" rel="match" />
|
|
<meta charset="utf-8" />
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
padding: 1px 2px;
|
|
border: 1px solid black;
|
|
background: yellow;
|
|
margin-bottom: 5px;
|
|
margin-right: 5px;
|
|
float: left; /* For testing in "rows" of containers */
|
|
}
|
|
br { clear: both }
|
|
|
|
.big > .container {
|
|
height: 10px;
|
|
width: 16px;
|
|
}
|
|
.small > .container {
|
|
height: 2px;
|
|
width: 4px;
|
|
}
|
|
|
|
.container > * {
|
|
position: absolute;
|
|
background: teal;
|
|
height: 6px;
|
|
width: 8px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="big">
|
|
<!-- <content-distribution> with implied fallback -->
|
|
<div style="align-content: space-between" class="container"><div></div></div>
|
|
<div style="align-content: space-around" class="container"><div></div></div>
|
|
<div style="align-content: space-evenly" class="container"><div></div></div>
|
|
<div style="align-content: stretch" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-distribution> with explicit "flex-end" fallback -->
|
|
<div style="align-content: space-between flex-end" class="container"><div></div></div>
|
|
<div style="align-content: space-around flex-end" class="container"><div></div></div>
|
|
<div style="align-content: space-evenly flex-end" class="container"><div></div></div>
|
|
<div style="align-content: stretch flex-end" class="container"><div></div></div>
|
|
<br />
|
|
</div>
|
|
<div class="small">
|
|
<!-- <content-distribution> with implied fallback -->
|
|
<div style="align-content: space-between" class="container"><div></div></div>
|
|
<div style="align-content: space-around" class="container"><div></div></div>
|
|
<div style="align-content: space-evenly" class="container"><div></div></div>
|
|
<div style="align-content: stretch" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-distribution> with explicit "flex-end" fallback -->
|
|
<div style="align-content: space-between flex-end" class="container"><div></div></div>
|
|
<div style="align-content: space-around flex-end" class="container"><div></div></div>
|
|
<div style="align-content: space-evenly flex-end" class="container"><div></div></div>
|
|
<div style="align-content: stretch flex-end" class="container"><div></div></div>
|
|
</div>
|
|
|
|
|
|
</body></html> |