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
Margin ignored on ul element #2756
Comments
Hm, so the margin has exactly the right value to make the lines aligned in dompdf. The cause of the change is 96a9345, which I thought would be a small, innocent improvement. I think it is best if we revert that for now. Vertical alignment really needs some proper treatment, the current implementation is pretty hackish. |
As mentioned in #2757, you can use |
Thanks for the suggested workaround, that's a good alternative indeed. I agree that changes shouldn't be optimized on workarounds to keep working, and as I wrote above, this was a workaround to begin with...
Looking forward to those changes from Brian - if they would result in the behavior being the same as Chrome, that'd be fantastic :) |
Should see some improvements with rendering under #2762. |
This example shows the top margin of an
<ul>
element being ignored:HTML:
In 1.0.2 it looked like this:
Neither situation seems to be rendered the same as Chrome renders the HTML, which simply moves down the entire line when the margin of that
<ul>
element is increased (rather than moving just the<ul>
element itself. So it seems like the top margin was patching a bug to begin with, but now that it's ignored it appears to be even worse than before because it can no longer be controlled via that margin.The text was updated successfully, but these errors were encountered: