summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/inline-outline-repaint-2.html
blob: 2ec763bc682835abf35c229be2bb2e99ef5f5781 (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>
<style>
body {
  margin: 0;
  padding: 0;
}
#container {
  position: absolute;
  width: 255px;
  text-align: right;
  font: 10px Ahem;
}
#container > span {
  outline: 5px solid blue;
}
</style>
<div id=container>
  <span>Test</span>
</div>
<script>
function repaintTest() {
  document.getElementById('container').style.color = 'green';
}
onload = runRepaintTest;
</script>