-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Handle absolute children of flex boxes #996
Comments
Reason for absolute box not being displayed is that the WeasyPrint/weasyprint/formatting_structure/build.py Lines 1149 to 1150 in 05a9513
In WeasyPrint/weasyprint/layout/flex.py Lines 121 to 123 in 05a9513
Of course: Absolute boxes aren't part of the flex layout, but instead of disappearing they should be handled as described in the spec. Until implemented (in version 52?) a "WARNING: ignored absolutely-positioned flex child. Will be implemented in the future" would be nice or at least a |
Thank you for the quick and through response! Just to summarize what seems to be the issue. The reason this doesn't work is because bootstrap v4 uses Using @Tontyna's explanation I used absolute positioning inherent in bootstrap by adding the class |
Exactly. |
Is there any possibility for me to enable "Position: Absolute"? because I have a project that I can't imagine another way to do without "Absolute". |
Thank you for the amazing project! Because of this project I only have the problem below
Are there any gotcha's with
position: absolute
? I have not been able to get it to work. I was able to get bootstrap.css working with the pdf, but elements with the style of positionabsolute
do not get rendered.This is the custom css file
..and the html
The payment_method id is not rendered if
position: absolute
is displayed once I remove it the element is displayed, but the element is inline.The text was updated successfully, but these errors were encountered: