Why doesn’t min() (or max()) work with unitless 0?
You need to add a unit to 0 otherwise it’s confusing for the browser to handle the comparison between a uniteless value (a <number>) and a value with unit (a <length>) and the top property accept a <length> not a <number> top: max(0px, 120vh – 271px) To understand this, you need to follow the specification: … Read more