Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-align/abspos/align-self-static-position-005.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Align-self applies to OOF elements of inline elements when statically positioned.</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="match" href="align-self-static-position-005-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.container {
position: relative;
border: 1px solid;
}
.abs {
position: absolute;
background: purple;
align-self: end;
opacity: 0.5;
}
</style>
<div class="container">
<span style="font: 20px/1 Ahem;">hello
<span class="abs">hello</span>
<span style="vertical-align: top; font-size: 50px;">world</span>
</span>
</div>