.test {
width: 20%;
background: red;
aspect-ratio: 1/1;
}
<div class="test"></div>
aspect-ratio: 1/1; It works fine in other browsers except safari. But this code doesn't work in Safari. I was using macOS 11.2. I have now updated to macOS 11.5.2. As far as I know it supports safari but I could not fully understand the problem. Thank you from now. If there is any missing information, I will add it if you let me know.