4 https://bugzilla.mozilla.org/show_bug.cgi?id=470769
7 <title>Test for Bug
470769</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=470769">Mozilla Bug
470769</a>
14 <div id=
"content" style=
"display: none">
18 <script type=
"application/javascript">
20 /** Test for Bug
470769 **/
22 var e = document.getElementById(
"display");
23 e.setAttribute(
"style",
"z-index: 2147483647"); // maximum signed
32-bit
24 is(e.style.zIndex,
"2147483647",
"element.style should roundtrip correctly");
25 is(window.getComputedStyle(e).zIndex,
"2147483647",
26 "getComputedStyle should roundtrip correctly");