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