Re: [csswg-drafts] [css-position] Behaviour of semi-replaced elements. (#6789)

@dholbert - I think your testcase can be slightly improved by adding:
```css
.abs { width: auto; height: auto; }
```

radio/checkboxes in Blink have some magic happening where they effectively set:
```css
width: 13px !important; height: 13px !important;
```
which is why that behaviour is observed.

With those explanations currently Blink stretches in the block-axis, and shrink-to-fit in the inline-axis everywhere - except for `<label>`, `<fieldset>` as discussed.

(5) - agree that can move to stretching in all axes for those three.

(4) - Is clouded by default UA styles I believe.

The results of above makes me think that'd it be safest to move to a shrink-to-fit behaviour in both axes (except for fieldset, label, output).
E.g. where Blink stretches in the block-axes there is at least one other engine which shrink-to-fit in the block-axis (with the exception of the regular button element).



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


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

Received on Wednesday, 10 November 2021 20:41:38 UTC