blob: 4135e998cb28cd42ec69f7092d5b8fb22a8351c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<html>
<head>
<style media="print">
div { position: absolute; }
span {display: none; }
</style>
</head>
<body>
<div>
<span style="float: right;">
0
</span>
</div>
<script>
document.body.offsetWidth;
if (window.testRunner)
testRunner.setPrinting();
document.body.offsetWidth;
</script>
</body>
</html>
|