Edit in GitHubLog an issue

calc

Since UXP v3.0

You can use calc to evaluate arbitrary expressions in the context of a CSS style rule.

See: https://developer.mozilla.org/en/docs/Web/CSS/calc

Example

Copied to your clipboard
1.someElement {
2 width: calc(100vh - 50px);
3}

Quirks and Exceptions

  • calc works for length values, not colors. However, you can use calc for the numeric portions of an rgb() color.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.