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

Support calc expressions in more CSS properties. #980

Closed
1 task done
Jym77 opened this issue Nov 15, 2021 · 1 comment · Fixed by #1201
Closed
1 task done

Support calc expressions in more CSS properties. #980

Jym77 opened this issue Nov 15, 2021 · 1 comment · Fixed by #1201
Assignees
Labels
Language support Related to unsupported features in HTML/CSS/ARIA

Comments

@Jym77
Copy link
Contributor

Jym77 commented Nov 15, 2021

Back when calc support was introduced in #376 we only added support for in in font-size.
Other properties also need to accept calc values (anything accepting numbers should accept valid calc…) Doing it on a case-by-case basis (like for font-size) doesn't sound like a good idea (but can be a quick fix for some bugs).

We should investigate how to get a more generic method to parse and compute calc expression in properties that accept numbers.

@Jym77 Jym77 added the bug Report of unexpected or faulty behaviour in Alfa label Nov 15, 2021
@Jym77
Copy link
Contributor Author

Jym77 commented Feb 18, 2022

Take inspiration from how we handle var()expression.

@Jym77 Jym77 added Language support Related to unsupported features in HTML/CSS/ARIA and removed bug Report of unexpected or faulty behaviour in Alfa labels Jun 15, 2022
@Jym77 Jym77 self-assigned this Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language support Related to unsupported features in HTML/CSS/ARIA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant