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-position-3] Single auto value of offset properties for absolutely positioned elements should not compute to zero #5327

Open
vwkd opened this issue Jul 15, 2020 · 1 comment

Comments

@vwkd
Copy link
Contributor

vwkd commented Jul 15, 2020

The spec reads for absolutely positioned elements

If only one inset property in a given axis is auto, it is set to zero.

This would imply, that if the size in the same axis is not specified (i.e. auto), then the element would be resized, since now both sides are set to non-auto values.

For example, with the current spec I'd expect the following box to be full width instead of max-content wide. In other words, it would be equivalent to having uncommented the line right: 0.

<div class="abs">Hello World</div>
.abs {
  position: absolute;
  background-color: lightgrey;
  left: 0;
  /* right: 0; */
}

Since this is not the case, I suppose this is a bug in the spec.

@vwkd vwkd changed the title [css-position-3] Single auto value of offset properties for absolutely positioned elements should not be zero [css-position-3] Single auto value of offset properties for absolutely positioned elements should not compute to zero Jul 15, 2020
@fantasai fantasai added the css-position-3 Current Work label Jul 23, 2020
tabatkins added a commit that referenced this issue Sep 3, 2021
… to size under align-self:normal. Rearrange list a bit to compensate for increasing complexity.
@fantasai
Copy link
Collaborator

fantasai commented Sep 3, 2021

@vwkd Fixed in 4c785f3
Thanks for catching the error, and please let us know if there's anything still wrong.
Also, how would you like to be credited in the spec?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants