mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
100 lines
No EOL
4.2 KiB
HTML
100 lines
No EOL
4.2 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 column-reverse flex container, with various "justify-content" values</title>
|
|
<link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert" />
|
|
<link href="https://drafts.csswg.org/css-align-3/#justify-abspos-static" rel="help" />
|
|
<link href="reference/flex-abspos-staticpos-justify-content-007-ref.xht" rel="match" />
|
|
<meta charset="utf-8" />
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
flex-flow: column-reverse 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">
|
|
<!-- The various justify-content values, from
|
|
https://www.w3.org/TR/css-align-3/#propdef-align-content -->
|
|
<!-- normal -->
|
|
<div style="justify-content: normal" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <baseline-position> -->
|
|
<div style="justify-content: baseline" class="container"><div></div></div>
|
|
<div style="justify-content: last baseline" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-distribution> -->
|
|
<div style="justify-content: space-between" class="container"><div></div></div>
|
|
<div style="justify-content: space-around" class="container"><div></div></div>
|
|
<div style="justify-content: space-evenly" class="container"><div></div></div>
|
|
<div style="justify-content: stretch" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-position>, part 1 -->
|
|
<div style="justify-content: center" class="container"><div></div></div>
|
|
<div style="justify-content: start" class="container"><div></div></div>
|
|
<div style="justify-content: end" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-position>, part 2 -->
|
|
<div style="justify-content: flex-start" class="container"><div></div></div>
|
|
<div style="justify-content: flex-end" class="container"><div></div></div>
|
|
<div style="justify-content: left" class="container"><div></div></div>
|
|
<div style="justify-content: right" class="container"><div></div></div>
|
|
<br />
|
|
</div>
|
|
<div class="small">
|
|
<!-- The various justify-content values, from
|
|
https://www.w3.org/TR/css-align-3/#propdef-align-content -->
|
|
<!-- normal -->
|
|
<div style="justify-content: normal" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <baseline-position> -->
|
|
<div style="justify-content: baseline" class="container"><div></div></div>
|
|
<div style="justify-content: last baseline" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-distribution> -->
|
|
<div style="justify-content: space-between" class="container"><div></div></div>
|
|
<div style="justify-content: space-around" class="container"><div></div></div>
|
|
<div style="justify-content: space-evenly" class="container"><div></div></div>
|
|
<div style="justify-content: stretch" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-position>, part 1 -->
|
|
<div style="justify-content: center" class="container"><div></div></div>
|
|
<div style="justify-content: start" class="container"><div></div></div>
|
|
<div style="justify-content: end" class="container"><div></div></div>
|
|
<br />
|
|
<!-- <content-position>, part 2 -->
|
|
<div style="justify-content: flex-start" class="container"><div></div></div>
|
|
<div style="justify-content: flex-end" class="container"><div></div></div>
|
|
<div style="justify-content: left" class="container"><div></div></div>
|
|
<div style="justify-content: right" class="container"><div></div></div>
|
|
<br />
|
|
</div>
|
|
|
|
|
|
</body></html> |