Edit in GitHubLog an issue


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


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

Quirks and Exceptions#

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