Re: [csswg-drafts] [css-text] Specify HTML alignment as text-align: -webkit-{left,right,center} (#10388)

IMO this logic makes no sense in `text-align` because it's not about aligning text.

I think implementations should just implement `justify-items` and `justify-self` for blocks, and map:
 - `<center>` and `<div align="center">` into `justify-items: legacy center`
 - `<div align="left">` into `justify-items: legacy left`
 - `<div align="right">` into `justify-items: legacy right`

In fact, the entire point of `legacy` was supporting these things.

Then, if compat requires supporting `text-align: -webkit-{left,right,center}`, add that in the compat spec and say that they force `justify-items: legacy` to gain the corresponding keyword at computed-value time.

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


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

Received on Wednesday, 5 June 2024 10:17:43 UTC