- From: 一丝 via GitHub <noreply@w3.org>
- Date: Wed, 17 Dec 2025 03:29:15 +0000
- To: public-css-archive@w3.org
I've noticed that if the parent element doesn't have `position: relative` set, Blink behaves differently from other browsers. Is this expected?
<img width="1536" height="492" alt="Image" src="https://github.com/user-attachments/assets/5d98a371-4710-453b-9d18-c3b194dc19b3" />
```html
data:text/html;charset=UTF-8,<!DOCTYPE html>
<style>
.box {
font: 16px sans-serif;
border: 1px solid red;
margin: 100px;
width: 300px;
display: flex;
/*position: relative;*/
}
.test {
background-color: lightblue;
position: absolute;
height: 50px;
border: 1px solid;
white-space: nowrap;
width: 200px;
}
</style>
<div class="box">
<div class="test" style="align-self: safe center;">align-self: safe center</div>
</div>
<div class="box">
<div class="test" style="align-self: unsafe center;">align-self: unsafe center</div>
</div>
```
--
GitHub Notification of comment by yisibl
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11934#issuecomment-3663479268 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 17 December 2025 03:29:16 UTC