[csswg-drafts] [css-position] Confusing conditions in "§4.1. Automatic Sizes of Absolutely-Positioned Boxes" (#6580)

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

== [css-position] Confusing conditions in "§4.1. Automatic Sizes of Absolutely-Positioned Boxes" ==
https://drafts.csswg.org/css-position/#abspos-auto-size

```
↪ If its self-alignment property in the relevant axis is stretch
↪ If it is normal and the box is non-replaced and has no auto inset in the relevant axis
    Its automatic size is its stretch-fit size.

↪ If its self-alignment property in the relevant axis is not stretch
↪ If it is normal and the box is replaced
↪ If it is normal and has at least one auto inset in the relevant axis
    Its automatic size is its fit-content size.
```

The 3 last conditions are confusing, because:

 - "If its self-alignment property in the relevant axis is not stretch" overlaps with the previous "If it is normal and the box is non-replaced and has no auto inset in the relevant axis" which has a different definition.
 - "If it is normal and the box is replaced" and "If it is normal and has at least one auto inset in the relevant axis" are a subset of "If its self-alignment property in the relevant axis is not stretch" so they seem useless.

Seems it should just be

```
↪ If its self-alignment property in the relevant axis is stretch
↪ If it is normal and the box is non-replaced and has no auto inset in the relevant axis
    Its automatic size is its stretch-fit size.

↪ Otherwise
    Its automatic size is its fit-content size.
```

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


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

Received on Saturday, 4 September 2021 15:15:49 UTC