summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/633344-1-ref.html
blob: 91960fc34a655841d8b3ca865eb51e3e4c0216a8 (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
<!DOCTYPE html>
<html>
<head>
<style>
.outer {
  background:yellow;
  position:absolute;
  left:100px;
  top:100px;
  width:420px;
  height:140px;
  line-height:28px;
}
.inner {
  float:left;
  width:140px;
  height:15.4px;
  background:black;
}
canvas {
  display:block;
  float:left;
}
</style>
</head>
<body>
<div class="outer"><div class="inner"></div><canvas id="c" width="10" height="10" style="width:14px; height:14px;"></canvas></div>
<script>
var ctx = document.getElementById("c").getContext("2d");
ctx.fillStyle = "black";
ctx.fillRect(0, 0, 10, 10);
</script>
</body>
</html>