-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
Inline elements flowing into each other in flex layout #2359
Comments
Hi! Thanks for the report. I don’t get your rendering, but mine is broken too: That’s one of many open issues about flex layout, that we’ll work on really soon. There’s also a |
Part of the problem is the same as #1817: I can’t find anything in the Unicode specification or the CSS specification that explains why we can break lines between spaces and dots. Let’s focus on the other part of the problem. If we replace dots by letters, we get a very ugly result too. We’ll fix this part. |
Bug is closed in the flex branch, see #2362. |
I'm trying to make a leader for a table of contents, the below sample doesn't seem to render as codepen or Safari do.
Codepen and Safari overflow onto the next line (meaning I can hide the overflow with overflow-y/setting the height), but in weasyprint, the span seems to ignore its boundary and overflow into the next box instead of wrapping.
Expected output (codepen), each span staying/wrapping within its own container:
![Image](https://private-user-images.githubusercontent.com/148402896/405476212-6779612e-2b68-43cb-8cb9-f636c6ee1e23.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODM1NDIsIm5iZiI6MTczOTI4MzI0MiwicGF0aCI6Ii8xNDg0MDI4OTYvNDA1NDc2MjEyLTY3Nzk2MTJlLTJiNjgtNDNjYi04Y2I5LWY2MzZjNmVlMWUyMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxNDE0MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMzUzNDU3MWYyYmNhM2FjM2JmMTgwMzI3MWE4ZTdkYWJjZDQyYmE4NzZkMDhjMWYxYzJkOGEyYTg5MmI0NzhjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FHvmF5ZQSAxyCusMrlEkR6h7Rr4Bn_F9B9FDahkFAuE)
Actual output, spans acting if they were all just inline:
![Image](https://private-user-images.githubusercontent.com/148402896/405476561-ed8d45e5-8b72-4d7d-9330-3c4c636d9bbe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODM1NDIsIm5iZiI6MTczOTI4MzI0MiwicGF0aCI6Ii8xNDg0MDI4OTYvNDA1NDc2NTYxLWVkOGQ0NWU1LThiNzItNGQ3ZC05MzMwLTNjNGM2MzZkOWJiZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxNDE0MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YzkzYmRiYTVmZDlmMzIzM2E5NTMxMDM1MDFlZDc4YTUxZGYyMjVjOGQ0YTA0NjIyZGIyMmJjMDA1YWQ5ZDZiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.nVXMesgLfHxYG6EQLDkS-0diqCziRvzE9T8K8fOoXoI)
The text was updated successfully, but these errors were encountered: