-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Handle var function in properties with multiple values #1219
Comments
The problem is that A workaround for now is to use As said in #1165, we have to fully rewrite the way values are calculated, and that’s a lot of work… |
Just a quick note, this also breaks |
Oh, thanks for this quick note. I was happy because we’re close to get So, let’s not forget "Good" news is that |
Hi, I discovered this issue yesterday. From then, I've been looking through the source to find potential fixes. If I'm understanding correctly, the issue is in the expander_ = EXPANDERS.get(name, validate_non_shorthand)
tokens = remove_whitespace(declaration.value)
try:
# Use list() to consume generators now and catch any error.
result = list(expander_(base_url, name, tokens)) # ERROR HERE
except InvalidValues as exc:
validation_error(
'warning',
exc.args[0] if exc.args and exc.args[0] else 'invalid value')
continue Would evaluating all function tokens (in the |
Hi, thanks for the comment! We’re currently working on this on the The current code (in (Now that the code is cleaner, we also secretly hope that it will give us the possibility to handle other functions such as |
The progress looks pretty good so far. I didn't realize that it was this far into being fixed.
(That sounds great. And no worries, I'll keep it a secret) Thanks for the informative reply, great work so far, and good luck. |
Anyone interested in this feature can test #2017. Feedback is welcome! |
I'm using weasyprint in one of my projects and I would like to use CSS variables but they don't work correctly.
I have these rules like these in my
style.css
:The rule
.table thead {...}
works normally and this rule.table tbody tr:last-child{...}
doesn't work and I get a message in the terminal:Any help, please?
Thank you in advance.
The text was updated successfully, but these errors were encountered: