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] Auto margins aren't just treated as zero #11230

Open
Loirooriol opened this issue Nov 18, 2024 · 0 comments
Open

[css-align] Auto margins aren't just treated as zero #11230

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

Comments

@Loirooriol
Copy link
Contributor

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

Treating auto margins as zero is not the same as de-prioritizing them, as seen here:

<!DOCTYPE html>
<style>
.wrapper { position: relative; width: 50px; height: 50px; border: 3px solid; }
.abspos { position: absolute; inset: 0; place-self: normal; max-width: 25px; max-height: 25px; background: cyan }
</style>
<div class="wrapper"><div class="abspos" style="margin: auto"></div></div>
<div class="wrapper"><div class="abspos" style="margin: 0px"></div></div>
Spec Blink
Gecko
WebKit
Servo
@Loirooriol Loirooriol added the css-align-3 Current Work label 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
Projects
None yet
Development

No branches or pull requests

1 participant