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 inline layout #31388
Support <div align="..."> and <center> in inline layout #31388
Conversation
As per HTML [1], <div align="..."> and <center> should behave as if they had the text-align property set to the corresponding value. Servo implements that as internal text-align values because there should the extra effect of aligning block descendants, but that part has not been implemented yet. This patch only adds support for inline layout. [1]: https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
🔨 Triggering try run (#7975847475) for Linux WPT |
Test results for linux-wpt-layout-2020 from try job (#7975847475): Flaky unexpected result (12)
Stable unexpected results that are known to be intermittent (14)
|
✨ Try run (#7975847475) succeeded. |
There is a test about this: However, it checks the full feature, not just the text alignment, so still failing. Should I add a more specific test? |
I think if tests start passing when the full feature is implemented, it's good enough. Thanks! |
As per HTML [1],
<div align="...">
and<center>
should behave as if they had the text-align property set to the corresponding value.Servo implements that as internal
text-align
values because there should the extra effect of aligning block descendants, but that part has not been implemented yet. This patch only adds support for inline layout.[1]: https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
./mach build -d
does not report any errors./mach test-tidy
does not report any errors