-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
Implement calc() and other math functions #357
Comments
For those interested, here's the nitty gritty: https://drafts.csswg.org/css-values-3/#calc-notation |
Please mention that |
Hi!
If you want to avoid "weeks of pain", you can read the logs: warnings are logged each time a property or a value is not supported.
You’re right, that would be very useful. Interested in opening a pull request? That would be a quite simple way to become a contributor! |
Hallo!
Turns out that not reading docs properly also causes this. Thanks for reminding me. Time to turn on logging.
Contrary to my comment above, I love reading docs! Though I am not confident that I will be able to write it. I mean I can, just not properly. I guess I'll try??? Anyways, I have just re-read my comment, and I think it might have sounded rude, and I feel bad for it now, sorryy... I tried to make it short 'cause every issue / comment I write sounds childish... |
No problem!
Adding a sentence here is sufficient: WeasyPrint/docs/api_reference.rst Line 647 in dc7c2cb You can copy another line where a property is not supported. And don’t worry, it doesn’t have to be perfect, we can always enhance it afterwards! |
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! The survey is opened until November 19. |
Hi! |
Hi!
Great timing! We’ve just talked about it in #1219. Current status: we’ve just cleaned the code that takes care of CSS values validation, in order to get a more solid support of |
if there any work-around for calc in width of table? |
I’m afraid there’s no easy workaround for your case. Setting negative left and right margins to -0.25mm may help. |
Hello, When will Thanks |
Hi!
We have no roadmap for this feature. That’s a complex feature that requires quite a lot of work.
As explained above, not really. Using a CSS preprocessor like Sass can help in some cases. |
Would an initial implementation be possible, that doesn't require context? So if we say, we don't css variables and also font size in the current scope are initially off the table, could |
Yes, now that we have #1219 fixed, the situation is much better than before, and we can imagine solving this kind of examples. Even the "context" shouldn’t be a problem (as we already need much more for (I was a bit afraid with your example, but I’m |
Function calc of css not working :(
/* property: calc(expression) */
width: calc(100% - 80px);
https://developer.mozilla.org/en/docs/Web/CSS/calc
The text was updated successfully, but these errors were encountered: