summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/block/block-size-integer-overflow.html
blob: 8e5b0a2d44cc79860f71eea2e784c0023dd01851 (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
31
32
33
34
35
36
37
<html>
<head>
<style>
.fail, .pass, #spacer {
  display: table-cell;
}

.pass {
  visibility: hidden;
}
</style>
<script>
window.onload = function() {
  if (window.testRunner)
    window.testRunner.dumpAsText();

  var spacer = document.getElementById("spacer");
  if (spacer.offsetWidth > 0) {
    var fail = document.getElementsByClassName("fail");
    fail[1].className = "pass";
    fail[0].className = "pass";
    spacer.innerText = "PASS";
  }
}
</script>
</head>
<body>
<div style="display: -webkit-box; -webkit-box-orient: horizontal">
  This test passes if there is a green box that stretches the width of the page.
  <div style="padding-left: 1px">
    <div class="fail">FA</div>
    <div id="spacer" style="color: green; width: 100%; background-color: green"></div>
    <div class="fail">IL</div>
  </div>
</div>
</body>
</html>