1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
7 <title>Round-trip large values
</title>
8 <style type=
"text/css" media=
"screen">
19 <script type=
"text/javascript" charset=
"utf-8">
20 if (window.testRunner)
21 testRunner.dumpAsText();
27 var box = document.getElementById('box');
29 var testValue = value +
"px";
30 box.style.left = testValue;
32 var leftValue = window.getComputedStyle(box, null).left;
34 box.style.left =
"0px";
35 box.style.left = leftValue;
36 var newLeftValue = window.getComputedStyle(box, null).left;
38 var results = document.getElementById('results');
40 if (leftValue == newLeftValue)
41 output.push(
"PASS: read " + testValue +
" back as " + leftValue +
", read again as " + newLeftValue);
43 output.push(
"FAIL: read " + testValue +
" back as " + leftValue +
", read again as " + newLeftValue);
50 document.getElementById('results').innerHTML = output.join('
<br>');