You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... to set a negative horizontal margin when sufficient space is available in the container and viewport, while making sure it doesn't extrude more than 100px outwards (min of -100px) and does not get a positive margin inwards (max of 0px) from the dynamic calc.
LightningCSS (1.27) reduces that to:
margin: 100px min(0px, 50% - 50vw)
It gets correctly retained when the math is expressed by its equivalent instead:
margin: 100px max(-100px, min(0px, 50% - 50vw))
The text was updated successfully, but these errors were encountered:
alcore
changed the title
Incorrect reduction of clamp to min given a 0px and a negative bound
Incorrect reduction of clamp to min given a negative bound
Oct 16, 2024
Given the following...
... to set a negative horizontal margin when sufficient space is available in the container and viewport, while making sure it doesn't extrude more than 100px outwards (min of -100px) and does not get a positive margin inwards (max of 0px) from the dynamic calc.
LightningCSS (1.27) reduces that to:
It gets correctly retained when the math is expressed by its equivalent instead:
The text was updated successfully, but these errors were encountered: