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

The conditions at the moment are a little incomplete.

E.g. tables should shrink-fit, also the "semi-replaced" elements, e.g. `<button>`s.

```
<!DOCTYPE html>
<div style="width: 100px; height: 100px; border: solid; position: relative;">
  <div style="position: absolute; background: hotpink; inset: 0;">block</div>
</div>

<div style="width: 100px; height: 100px; border: solid; position: relative;">
  <div style="display: table; position: absolute; background: hotpink; inset: 0;">table</div>
</div>

<div style="width: 100px; height: 100px; border: solid; position: relative;">
  <button style="position: absolute; background: hotpink; inset: 0;">button</button>
</div>
```

(for the `<button>` I agree with WebKit's rendering here, we may have regressed this).

-- 
GitHub Notification of comment by bfgeek
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6580#issuecomment-915383286 using your GitHub account


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

Received on Wednesday, 8 September 2021 16:22:30 UTC