summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/focus-continuations.html
blob: 95fe45bd4032ace85651f82bd48bb8618eb67727 (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
27
28
29
30
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
  document.querySelector('#outer').blur();
}
onload = function()
{
  document.querySelector('#outer').focus();
  runRepaintTest();
};
</script>
<style>
body { height: 200px; }
#container { position: absolute; }
p, #inner { height: 20px; }
</style>
<p>
  This test is verifying that when the focus is removed from an element we
  correctly invalidate continuations and remove the focus ring.
</p>
<p>
  If this test passes, you should see no focus ring.
</p>
<div id="container">
  <span id="outer" tabindex="1">
      <div id="inner">CONTENTS</div>
  </span>
</div>