We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Absolutely positioning an element inside a flex-element appears to be broken. The relative position appears to be ignored.
WeasyPrint version: 56
Minimum reproducible example:
<html> <head> <style> .item { position: relative; display: flex; justify-content: center; width: 100%; } .primary-language, .secondary-language { display: block; flex: 1; text-align: right; } .primary-language { padding-right: 12pt; } .primary-language::after { content: ''; border-width: 1pt; border-style: solid; border-color: var(--color-text); position: relative; top: 1pt; display: inline-block; width: 8pt; height: 8pt; position: absolute; left: 50%; transform: translateX(-5pt); } .secondary-language { text-align: left; padding-left: 12pt; color: var(--color-text-secondary); } </style> </head> <body> <div class="item"> <span class="primary-language">Coffee</span><span class="secondary-language">قهوة</span> </div> <div class="item"> <span class="primary-language">Tea</span><span class="secondary-language">شاي</span> </div> <div class="item"> <span class="primary-language">Hot milk</span><span class="secondary-language">حليب ساخن</span> </div> </body> </html>
If you were to wrap each <div class="item"></div> in a <div> with position: relative, WeasyPrint would produce the correct output.
<div class="item"></div>
<div>
The text was updated successfully, but these errors were encountered:
Hi!
Thanks for the bug report. I think that it’s a duplicate of #996, isn’t it?
Sorry, something went wrong.
Let’s continue the discussion in #996.
No branches or pull requests
Absolutely positioning an element inside a flex-element appears to be broken. The relative position appears to be ignored.
WeasyPrint version: 56
Minimum reproducible example:
If you were to wrap each
<div class="item"></div>
in a<div>
with position: relative, WeasyPrint would produce the correct output.The text was updated successfully, but these errors were encountered: