universal-ie6-css
universal-ie6-css copied to clipboard
IE6 freezes when evaluating width
Hello,
When evaluating the width in: width : expression(document.body.clientWidth < 640? "640px" : document.body.clientWidth > 120? "120em" : "auto");
IE6 freezes. The issue is documented and fixed by Cameron Moll on the page you give as a reference.
To avoid freezing you would have to write: width : expression(document.body.clientWidth < 642? "640px" : document.body.clientWidth > 122? "120em" : "auto");
Adding 2 is arbitrary, anything that makes sense would work as long as the condition is different than the value targetted.