summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/display-table-caption-crash.html
blob: 45aa21192cf50be5a94f8bef13d6d65ce2175491 (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>
<style>
.caption:after {
  position:absolute;
  content: counter(c, lower-armenian) attr(id);
  counter-increment: c 895;
}
.caption { -webkit-transform:skew(20deg); }
.caption:last-of-type { display: table-caption; }
.option:nth-of-type(2n+1) { counter-increment: c 578; }
</style>

This test passes if it does not CRASH.
<option>

<script>
if (window.testRunner)
  testRunner.dumpAsText();

onload = function() {
  var el = document.createElement('li');
  el.setAttribute('class', 'caption');
  document.body.appendChild(el);

  document.body.offsetTop;

  var o = document.querySelector('option');
  o.setAttribute('class', 'option');
}
</script>