Edit in GitHubLog an issue

calc

Since: UXP 3, PS 22.0.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.
Copyright © 2021 Adobe. All rights reserved.