blob: c6ca8f34928250e0ccc2f17ec5d3915036f1f236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<html class="reftest-wait">
<iframe id="iframe" src="about:blank"></iframe>
<script>
iframe.onload = function() {
let doc = iframe.contentDocument;
let canvas = doc.createElement('canvas');
doc.body.appendChild(canvas);
let ctx = canvas.getContext('2d');
document.body.offsetTop;
iframe.style.display = 'none';
try {
ctx.font = '10px serif';
} finally {
document.documentElement.className = "";
}
};
</script>
</html>
|