If I can have _just two_ additional calc() features, min() plus being allowed to divide one <length> by another (the result being a dimensionless number) would mean not needing JavaScript in a scenario I encountered yesterday: the script in the attached HTML file could be replaced with #outer { transform: scale(calc(min(640px/100vw, 480px/100vh))); }
This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:39 UTC