-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defer 'align' behavior to CSS via 'justify-items: legacy' #3428
Comments
From the blink-dev thread I got the impression that it was only implemented for Grid Layout, not as a generic, and therefore wouldn't end up working here. |
It's defined to work in block layout, so it should eventually work . If it's not the intention of HTML to use this feature, then it should be removed from CSS. Please let me know if this is the case. |
We'd use it if it gets implemented, tested, and browsers remove the bits they currently have in place. I'd rather not remove the current prose until that is all a bit clearer. |
https://html.spec.whatwg.org/multipage/rendering.html#the-css-user-agent-style-sheet-and-presentational-hints
The CSS Box Alignment spec added a
legacy
value tojustify-items
to handle the block-level behavior of the HTMLalign
attribute (when it is used for alignment rather than floating): https://drafts.csswg.org/css-align/#justify-items-property It seems its being implemented, so maybe HTML can update to use that instead of defining magic behavior. (You'd need to declare bothjustify-items
andtext-align
on the element triggering alignment; text-alignment and block-alignment are independent effects in CSS.)The text was updated successfully, but these errors were encountered: