Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html lang=en>
<meta charset="utf-8">
<title>Selectors Level 4: focus-within Reference File</title>
<link rel="author" title="Keyong Li" href="mailto:kli79@bloomberg.net">
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<style>
div {
border: solid 15px green;
}
</style>
<p>Test passes if, when the element below is focused,
it is surrounded by a thick green border.
There must be no red or blue once it is focused.</p>
<div>Focus this element</div>
</html>