在非模态对话框上使用style='resize:both'没有效果。
下面是要测试的代码。这是一个错误的预期行为吗?
<!DOCTYPE html>
<html>
<head>
<title>resize test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<dialog id='alertDialog' style="resize:both">
<div id='out'>You should never see this</div>
<hr>
<button>Ok</button>
</dialog>
<script>
// document.getElementById('alertDialog').showModal(); // <= can resize
document.getElementById('alertDialog').show(); // <= can NOT resize
</script>
</body>
</html>