You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this applies to other properties, but I ran into this today in the border shorthand property. The following:
border: 0.15rem solid var(--highlight, black);
throws the error "WARNING: Ignored border: 0.15rem solid var(--highlight, black) at 8:5, invalid value.". Breaking the var() out into its own border-color property fixes the issue.
The text was updated successfully, but these errors were encountered:
The bug described in my comment is unrelated to the OP.
@ham2anv@liZe the issue here is that a variable token is yet undetermined at weasyprint/css/validation/expanders.py:241 so it will raise InvalidValues. It is unknown what kind of declaration a variable is at this point.
Not sure if this applies to other properties, but I ran into this today in the border shorthand property. The following:
border: 0.15rem solid var(--highlight, black);
throws the error "WARNING: Ignored
border: 0.15rem solid var(--highlight, black)
at 8:5, invalid value.". Breaking the var() out into its own border-color property fixes the issue.The text was updated successfully, but these errors were encountered: