We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Our project uses fallback value of css variables. For example:
.my-button { color: var(--my-var, #FFFFFF) }
But the regular expression used by happy-dom only recognizes css variables with no fallback value. The Regular expression is:
const CSS_VARIABLE_REGEXP = /var\( *(--[^) ]+)\)/g;
Do we have plans to support fallback value of css variables?
The text was updated successfully, but these errors were encountered:
#1192@patch: Adds support for fallback values when declaring a CSS va…
59d01b6
…riable (e.g. "var(--my-var, #FFF)").
Merge pull request #1203 from capricorn86/task/1192-support-fallback-…
d4dd276
…value-of-css-variables #1192@patch: Adds support for fallback values when declaring a CSS va…
Thank you for reporting @TD-LiXiang! 🙂
This has been fixed now: https://github.com/capricorn86/happy-dom/releases/tag/v13.0.4
Sorry, something went wrong.
capricorn86
Successfully merging a pull request may close this issue.
Our project uses fallback value of css variables. For example:
But the regular expression used by happy-dom only recognizes css variables with no fallback value. The Regular expression is:
Do we have plans to support fallback value of css variables?
The text was updated successfully, but these errors were encountered: