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

First, any workaround for a change in current behavior is entirely relevant. You can use your admin privileges to mark my messages as off-topic, but that won’t deter me from responding.

Second, you left out this part of the spec:

> "Authors are strongly encouraged to view the [div](https://html.spec.whatwg.org/multipage/grouping-content.html#the-div-element) element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the [div](https://html.spec.whatwg.org/multipage/grouping-content.html#the-div-element) element leads to better accessibility for readers and easier maintainability for authors."
https://html.spec.whatwg.org/multipage/grouping-content.html#the-div-element

Third, my example uses `div` to explicitly apply styling to certain elements (inline with HTML spec). Your suggestion to wrap content in divs doesn’t introduce styling - it’s a hack to force `justify-self` behavior where it wasn’t previously necessary.

Lastly, for the record, there’s still no evidence that the spec change addresses any actual problem.

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


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

Received on Wednesday, 14 May 2025 23:00:13 UTC