Support <div align="..."> and <center> in block layout (#31423)

As per HTML [1], <div align="..."> and <center> should align descendants
to the left/center/right. This is similar to having 'auto' margins [2],
but without changing their used values [3].

[1]: https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
[2]: https://html.spec.whatwg.org/multipage/rendering.html#align-descendants
[3]: https://github.com/whatwg/html/issues/10149
This commit is contained in:
Oriol Brufau 2024-02-26 19:00:01 +01:00 committed by GitHub
parent e5598590ba
commit a97a04d84c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 75 additions and 22 deletions

View file

@ -1,2 +0,0 @@
[div-align.html]
expected: FAIL