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

Add support for named areas #1197

Open
rsplaul opened this issue Aug 20, 2020 · 5 comments
Open

Add support for named areas #1197

rsplaul opened this issue Aug 20, 2020 · 5 comments
Labels
feature New feature that should be supported

Comments

@rsplaul
Copy link

rsplaul commented Aug 20, 2020

The WHATWG Living Idea CSS Books specifies named areas for running elements in paged media, which extend the regular @top-left-corner/@top-left/@top-center/etc. CSS rules by extra @area rules that allow for arbitrarily positioned running content. I am well aware that this specification is far from being a W3C standard or even a draft. Nevertheless the document states that "most of this specification has been interoperably implemented and is in daily use by publishers", and in fact commercial PrintCSS software like AntennaHouse or Prince seem to support named areas.

I didn’t dive into the code of WeasyPrint, but from my perspective this seems like a relatively easy to implement feature. Are there any plans on supporting named areas?

@liZe liZe added the feature New feature that should be supported label Aug 20, 2020
@liZe
Copy link
Member

liZe commented Aug 21, 2020

Hello!

I am well aware that this specification is far from being a W3C standard or even a draft. Nevertheless the document states that "most of this specification has been interoperably implemented and is in daily use by publishers", and in fact commercial PrintCSS software like AntennaHouse or Prince seem to support named areas.

I don’t see it supported in Prince’s CSS reference or in the pretty old status page of CSS Books implementation. Are you sure that this feature is supported?

I didn’t dive into the code of WeasyPrint, but from my perspective this seems like a relatively easy to implement feature. Are there any plans on supporting named areas?

Unfortunately, there are lots of features that are often already well specified and that people would like to see implemented… As I’ve said in many comments, implementing specifications is long and hard enough, maybe there’s no need to implement features that are not specified yet 😉.

Even if it’s not obvious, implementing is the easy part. Maintaining is the real problem, even more when there’s no specification. The best way to see this feature implemented in WeasyPrint is to include it in a W3C specification draft.

@rsplaul
Copy link
Author

rsplaul commented Aug 22, 2020

Hi!

I don’t see it supported in Prince’s CSS reference or in the pretty old status page of CSS Books implementation. Are you sure that this feature is supported?

You are right. Double checking the available documentation, I must admit, that in fact neither AntennaHouse nor Prince mention named areas. Both do however seem to support (nearly) all other features of the WHATWG CSS Books specification, so support for named areas is probably just a matter of time.

A working implementation is available from typeset.sh. (See also their 'Invoice' demo for an example, why @area rules are a cool feature.)

Unfortunately, there are lots of features that are often already well specified and that people would like to see implemented… As I’ve said in many comments, implementing specifications is long and hard enough, maybe there’s no need to implement features that are not specified yet 😉.

Even if it’s not obvious, implementing is the easy part. Maintaining is the real problem, even more when there’s no specification. The best way to see this feature implemented in WeasyPrint is to include it in a W3C specification draft.

I do understand your concerns. On the other hand, named areas are specified, albeit not in a W3C publication. 😉

@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 named areas, 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