Css – How to keep 1:1 aspect ratio for the child canvas element?
I have prepared a simple test web page at Github (using the main.css file) for my question: In a vertical flexbox layout I am trying to use ResizeObserver to watch a parent div element with flex-grow:1 and then keep the…