Re: [csswg-drafts] [css-align] `justify-items` and anonymous block boxes (#11461)

Yes, that's the current situation, but it seems bad to me. Hence the 2 options I proposed in https://github.com/w3c/csswg-drafts/issues/11461#issuecomment-2582776378: either prevent `justify-items` from affecting anonymous block boxes, or always create anonymous block boxes when `justify-items` is not initial.

Note in the 2nd option `text-align` and `justify-items` would still do different things, e.g.

```html
<!DOCTYPE html>
<div style="justify-items: center; text-align: left; border: solid; width: 200px">
  lorem ipsum<br>sit amet
</div>
```

![](https://github.com/user-attachments/assets/91ab04c3-7cba-4776-b4a9-11c0cf43803f)

(avoiding the need to add an inner wrapper to get this effect)

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


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

Received on Tuesday, 29 April 2025 22:25:44 UTC