[csswg-drafts] [css-align] should justify/align-self on abspos elements apply when offsets are 'auto'?

dbaron has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-align] should justify/align-self on abspos elements apply when offsets are 'auto'? ==
The [rules for `justify-self` on absolutely-positioned boxes](https://drafts.csswg.org/css-align/#justify-abspos) and the [rules for `align-self` on absolutely-positioned boxes](https://drafts.csswg.org/css-align/#align-abspos) both currently say that the property is ignored if either offset property in this dimension is `auto`.

First, this should be clearer that an "offset property" is `top`, `right`, `bottom`, or `left` or its logical equivalents (whatever we end up calling them).

However, this rule didn't match my expectation for how this property would behave in this case.  I would have expected the rule to instead be that any `auto` values would be treated as `0`, and then the property would apply.  (It seems better to honor the thing the author asked for than to ignore it, especially when it's this simple!)

Was there a reason not to do this?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1429 using your GitHub account

Received on Saturday, 20 May 2017 21:54:12 UTC