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.layoutTestController)
21 layoutTestController.dumpAsText();
23 var box = document.getElementById('box');
25 var testValue = "90010000px";
26 box.style.left = testValue;
28 var leftValue = window.getComputedStyle(box, null).left;
30 box.style.left = "0px";
31 box.style.left = leftValue;
32 var newLeftValue = window.getComputedStyle(box, null).left;
34 var results = document.getElementById('results');
36 if (leftValue == newLeftValue)
37 result = "PASS: read " + testValue + " back as " + leftValue + ", read again as " + newLeftValue;
39 result = "FAIL: read " + testValue + " back as " + leftValue + ", read again as " + newLeftValue;
40 results.innerHTML = result;