[csswg-drafts] [css-align] `normal` alignment doesn't really behave as `stretch` for abspos with auto insets (#11215)

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

== [css-align] `normal` alignment doesn't really behave as `stretch` for abspos with auto insets ==
https://drafts.csswg.org/css-align/#justify-abspos

> For replaced absolutely-positioned boxes, the [normal](https://drafts.csswg.org/css-align/#valdef-justify-self-normal) keyword behaves as [start](https://drafts.csswg.org/css-align/#valdef-self-position-start).
> 
> For all other absolutely-positioned boxes, **[normal](https://drafts.csswg.org/css-align/#valdef-justify-self-normal) behaves as stretch**.

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

> For replaced absolutely-positioned boxes, the [normal](https://drafts.csswg.org/css-align/#valdef-align-self-normal) keyword behaves as [start](https://drafts.csswg.org/css-align/#valdef-self-position-start).
> 
> For all other absolutely-positioned boxes, **[normal](https://drafts.csswg.org/css-align/#valdef-align-self-normal) behaves as stretch**.

However: https://drafts.csswg.org/css-position-3/#abspos-auto-size


> - If its [self-alignment property](https://drafts.csswg.org/css-align-3/#self-alignment-properties) in the relevant axis is [stretch](https://drafts.csswg.org/css-align-3/#valdef-align-self-stretch)
> - Or if it is [normal](https://drafts.csswg.org/css-align-3/#valdef-align-self-normal) and the box is [non-replaced](https://drafts.csswg.org/css-display-4/#non-replaced), not a [table wrapper box](https://drafts.csswg.org/css-tables-3/#table-wrapper-box), and has no [auto](https://drafts.csswg.org/css-position-3/#valdef-top-auto) [inset](https://drafts.csswg.org/css-position-3/#inset-properties) in the relevant axis
> 
>     Its [automatic size](https://drafts.csswg.org/css-sizing-3/#automatic-size) is its [stretch-fit size](https://drafts.csswg.org/css-sizing-3/#stretch-fit-size).
> - **Otherwise**
> 
>     **Its [automatic size](https://drafts.csswg.org/css-sizing-3/#automatic-size) is its [fit-content size](https://drafts.csswg.org/css-sizing-3/#fit-content-size).**

So `normal` can't be behaving as `stretch` if they affect sizing in different ways.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 14 November 2024 19:17:40 UTC