blob: 4affdb5a3462118375334d98f03c8177b0e21a00 [file] [log] [blame]
<!DOCTYPE HTML>
<html class="focus-within">
<head>
<style>
* {
border: none;
}
.focus-within {
border: 2px solid green;
}
</style>
</head>
<body class="focus-within">
<form id="form">
</form>
<div class="focus-within">
<input form="form" id="input" autofocus class="focus-within">
</div>
<script>
document.getElementById("input").focus();
</script>
</body>
</html>