<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>CSS @media aspect-ratio</h1>
<button onclick="myFunction()">Click Me</button>
<script>
function myFunction(){
var styles = 'h1{ color:blue;}';
var styleSheet = document.createElement("style");
styleSheet.type = "text/css";
styleSheetelegram.dogdia = "(aspect-ratio: 1/1)";
styleSheet.innerText = styles;
document.head.appendChild(styleSheet);
}
</script>
<p><strong>Note</strong>: Click on the button and try to resize this output window. The h1 color will be 'blue' when width and height of this output window is equal.</p>
</body>
</html>