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

Use CSSnumericValue.parse() when parsing range start and end #180

Conversation

johannesodland
Copy link
Contributor

Depends on #176, #177 and #178.

This PR uses CSSNumericValue.parse() to parse string values for range start and range end.
This adds support for math functions such as calc(100% - 20px).

The PR includes
– Naive implementation of CSSNumericValue.parse() in proxy-cssom.js.

This PR does not include:
– Support for relative units such as *vh in the calculations. This must be added in a separate PR.

@johannesodland johannesodland force-pushed the parse-calc-in-range-attributes branch from e0f0826 to 4732d02 Compare November 25, 2023 12:01
@johannesodland johannesodland deleted the parse-calc-in-range-attributes branch December 28, 2023 09:08
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

Successfully merging this pull request may close these issues.

1 participant