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

Nested variables for "font-family" property will improperly lead to "unsupported computed value" #1696

Closed
Avlyssna opened this issue Jul 23, 2022 · 1 comment

Comments

@Avlyssna
Copy link

Avlyssna commented Jul 23, 2022

This issue originally was noticed when using mkdocs-material. Fonts were not showing within the PDF, although they would render fine in the browser. Upon closer inspection, it appears that nested variables will break the font name resolution:

WARNING: Unsupported computed value "var(--md-text-font,_),-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif" set in variable '--md-text-font-family' for property 'font-family'.

This can be reproduced with the following CSS:

body {
  --md-text-font: Roboto;
  --md-text-font-family: var(--md-text-font, _), -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-family: var(--md-text-font-family);
}

Ultimately, the font-family property validator does not have a case to handle when the list contains a FunctionBlock value.

@liZe
Copy link
Member

liZe commented Jul 23, 2022

Hi!

Thanks for the bug report.

The problem is not exactly caused by nested variables, it’s caused by variables in properties allowing multiple values. This bug is thus a duplicate of #1219.

@liZe liZe closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants