-
Notifications
You must be signed in to change notification settings - Fork 756
Description
Recently, the CSSWG resolved to add min() and max() functions. These haven't been added to the draft yet, but WebKit is implementing them. The resolution included the ability to use min() and max() outside of calc(), wherecalc() can be present today.
Some use cases, such as left: min(60px, 5em); are handy, and don't need math; indeed, the presence of math in this example may be surprising to authors in this example. On the other hand, style of the form height: calc(max(50px, 100vh - 35px)); seems to be useful if the content requires 50px to lay out correctly. It's also valuable to have the syntax allowed by min() and max() be consistent, whether or not it's used as a bare function or inside calc().
Another possible solution is to disallow bare min() and max().