Get max-content value without using JS

is there any way to get what value is in place where the max-content is being used and use it dynamically ?

i need to use the maxHeight's value here in the top's position
image.png
Was this page helpful?