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
Support <div align="..."> and <center> in block layout #31423
Conversation
🔨 Triggering try run (#8025114376) for Linux WPT |
Test results for linux-wpt-layout-2020 from try job (#8025114376): Flaky unexpected result (13)
Stable unexpected results that are known to be intermittent (15)
Stable unexpected results (2)
|
|
f35dd52
to
2039603
Compare
🔨 Triggering try run (#8025724921) for Linux WPT |
Test results for linux-wpt-layout-2020 from try job (#8025724921): Flaky unexpected result (20)
Stable unexpected results that are known to be intermittent (17)
|
✨ Try run (#8025724921) succeeded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is really not a lot of code in the end. I'm a bit surprised that there are only two tests passing with support for <center>
added.
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]: whatwg/html#10149
2039603
to
c9496b6
Compare
Failure here is #31428. |
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]: whatwg/html#10149
./mach build -d
does not report any errors./mach test-tidy
does not report any errors