| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| "http://www.w3.org/TR/html4/loose.dtd"> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <title>Round-trip large values</title> |
| <style type="text/css" media="screen"> |
| <script type="text/javascript" charset="utf-8"> |
| var box = document.getElementById('box'); |
| var testValue = value + "px"; |
| box.style.left = testValue; |
| var leftValue = window.getComputedStyle(box, null).left; |
| box.style.left = leftValue; |
| var newLeftValue = window.getComputedStyle(box, null).left; |
| var results = document.getElementById('results'); |
| if (leftValue == newLeftValue) |
| output.push("PASS: read " + testValue + " back as " + leftValue + ", read again as " + newLeftValue); |
| output.push("FAIL: read " + testValue + " back as " + leftValue + ", read again as " + newLeftValue); |
| document.getElementById('results').innerHTML = output.join('<br>'); |