Skip to content
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

Support :first-line #1175

Open
dmoonfire opened this issue Jul 29, 2020 · 6 comments
Open

Support :first-line #1175

dmoonfire opened this issue Jul 29, 2020 · 6 comments
Labels
feature New feature that should be supported

Comments

@dmoonfire
Copy link

In the process of publishing a book, the current one uses :first-line (or ::first-line) for the leading paragraph of each chapter (effectively p:nth-child(1):first-line). However, it appears that neither :first-line or ::first-line doesn't work.

weasyprint first-line-formatting.html first-line-formatting.pdf

However, if you open it in Chrome or Firefox, you can see it formatting correctly.

I also tried this against the master branch and it still had a problem.

Thank you!

first-line-formatting.zip

@liZe
Copy link
Member

liZe commented Jul 29, 2020

Hello,

Thank you for this bug report! :first-line is actually one of the few CSS2 features that are not supported yet. I’ve tried many times to implement the feature, it seams pretty easy, but I couldn’t fine a clean way to do this.

If someone has an idea and want to propose a pull request, that would be wonderful.

@liZe liZe added the feature New feature that should be supported label Jul 29, 2020
@dmoonfire
Copy link
Author

I apologize for not seeing it in the list of features not supported, I must have missed it.

@liZe
Copy link
Member

liZe commented Jul 30, 2020

I apologize for not seeing it in the list of features not supported, I must have missed it.

No problem, that’s a good idea to have issues about missing features people are interested in.

@liZe liZe changed the title Can't use :first-line or ::first-line with paragraphs Support :first-line Jan 16, 2021
@grewn0uille
Copy link
Member

grewn0uille commented May 5, 2021

Hello!

(The survey is now closed. Thanks for all your answers! We’ll share the results soon 😉)

If you’re interested in :first-line, we created a short survey where you can give a boost to this feature and help us to improve WeasyPrint 😉

Vote for it!

@grewn0uille
Copy link
Member

grewn0uille commented Sep 12, 2022

Hello!

As it’s soon our 2-year anniversary as CourtBouillon, we opened a short survey to know more about your expectations.
Don’t hesitate to support this feature and give it a boost 🚀!

The survey will be opened until October 10th.

Update: the survey is now closed. You can find the results here.

@grewn0uille
Copy link
Member

Hello!

As you may know, two weeks ago was CourtBouillon 3-year anniversary 🎉.

For this occasion, we prepared a short survey to have your opinion on this year’s features and to know what you’d like to see in the future!
Don’t hesitate to give a boost to this feature ✨️

The survey is opened until November 19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that should be supported
Projects
None yet
Development

No branches or pull requests

3 participants