# \[BUG\] CSS min/max doesn't work (at least with custom props)

**URL:** <https://forums.creativeclouddeveloper.com/t/bug-css-min-max-doesnt-work-at-least-with-custom-props/4711>\
**Category:** Photoshop\
**Tags:** ui, bug, uxp, css\
**Created:** [May 24, 2022, 6:15am UTC](https://forums.creativeclouddeveloper.com/t/bug-css-min-max-doesnt-work-at-least-with-custom-props/4711 "2022-05-24T06:15:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [May 24, 2022, 6:15am UTC](https://forums.creativeclouddeveloper.com/t/bug-css-min-max-doesnt-work-at-least-with-custom-props/4711/1 "2022-05-24T06:15:19Z")

</div>

In my plugin I tried to use:

```auto
--height: 10em;
height: max(var(--height), 2em);

```

And it didn’t work - it doesn’t set height at all. Then I tried checking if `max()` works at all and it does:

```auto
height: max(10em, 2em);

```

Then I tried to reproduce this in UI Playground sample plugin and even the second case doesn’t work - height is not set at all
