Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-align] Browser don't prioritize auto margins over stretch self-alignment for abspos #11229

Open
Loirooriol opened this issue Nov 18, 2024 · 0 comments
Labels
css-align-3 Current Work css-position-3 Current Work

Comments

@Loirooriol
Copy link
Contributor

https://drafts.csswg.org/css-align/#justify-abspos

No browser is doing this:

<!DOCTYPE html>
<style>
.wrapper { position: relative; width: 50px; height: 50px; border: 3px solid; }
.abspos { position: absolute; inset: 0; width: auto; height: auto; background: cyan; margin: auto }
.abspos::before { content: ""; display: block; width: 25px; height: 25px; }
</style>
<div class="wrapper"><div class="abspos" style="place-self: auto"></div></div>
<div class="wrapper"><div class="abspos" style="place-self: normal"></div></div>
<div class="wrapper"><div class="abspos" style="place-self: stretch"></div></div>
<div class="wrapper"><div class="abspos" style="place-self: start"></div></div>
<div class="wrapper"><div class="abspos" style="place-self: center"></div></div>
<div class="wrapper"><div class="abspos" style="place-self: end"></div></div>
Spec Blink Servo#34264 FF nightly WebKit
image image image

CC @dshin-moz

@Loirooriol Loirooriol added css-align-3 Current Work css-position-3 Current Work labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-align-3 Current Work css-position-3 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant