summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/focus-enable-continuations.html
blob: 8126fac27cc5988162a1a10e8311e661905771f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
  document.querySelector('#outer').focus();
}
onload = runRepaintTest;
</script>
<style>
body { height: 200px; }
#container { position: absolute; }
p, #inner { height: 20px; }
</style>
<p>
  This test is verifying that when the focus is added to an element we
  correctly invalidate continuations and display the focus ring.
</p>
<p>
  If this test passes, you should see a focus ring.
</p>
<div id="container">
  <span id="outer" tabindex="1">
      <div id="inner">CONTENTS</div>
  </span>
</div>