-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
New page-margin boxes layout algorithm #58
Comments
@liZe Hi, I'd like to get started contributing to this project. I'm still familiarizing myself with the codebase, and am not 100% certain about which part of the code to modify to address this issue. I think I need to edit the |
Thank you! Don't hesitate to ask if you have any questions, I'll do my best to help you.
Yes, it is. In 2012, when @SimonSapin implemented the page-margins layout, the specification was this one: The algorithm was really hard to implement and didn't give good results. Simon decided to implement something else, and he proposed a replacement of the specification, based on what he implemented in WeasyPrint: This proposition was accepted, probably with some changes (I don't remember, maybe Simon does). So the first step is to find what's different between the current specification and the current implementation in You can spend some time reading Chapter 5.3 of the specification. It's totally normal to find it over-complicated at first 😄, but it gets easier with time. The algorithm is close to the current code, so it can be helpful to have both side by side to understand how it works. I'll be happy to help, so feel free to ask anything. |
@liZe Thank you for the context, and for the speedy reply! I'll start working through the specs and reach out if I have any questions. |
Closed by #1890. |
Catch up with spec changes: http://dev.w3.org/csswg/css3-page/#margin-dimension
The text was updated successfully, but these errors were encountered: