2 /* ---------------------------------------------------------------------
6 Some of these bug fixes may have adverse effects so they are
7 not included in the standard library. Add your own if you want.
9 --------------------------------------------------------------------- */
11 // @NOTE: ie7Layout.boxSizing is the same as the "Holly Hack"
13 if (IE7
.loaded
&& IE7
.appVersion
< 7) {
15 // "doubled margin" bug
16 // http://www.positioniseverything.net/explorer/doubled-margin.html
17 IE7
.CSS
.addFix(/(float\s*:\s*(left|right))/, "display:inline;$1");
20 // http://www.positioniseverything.net/explorer/peekaboo.html
21 if (IE7
.appVersion
>= 6) IE7
.CSS
.addRecalc("float", "(left|right)", function(element
) {
22 IE7
.Layout
.boxSizing(element
.parentElement
);
23 // "doubled margin" bug
24 element
.style
.display
= "inline";
27 // "unscrollable content" bug
28 // http://www.positioniseverything.net/explorer/unscrollable.html
29 IE7
.CSS
.addRecalc("position", "absolute|fixed", function(element
) {
30 if (element
.offsetParent
&& element
.offsetParent
.currentStyle
.position
=== "relative")
31 IE7
.Layout
.boxSizing(element
.offsetParent
);
35 //# // get rid of Microsoft's pesky image toolbar
36 //# document.write('<meta http-equiv="imagetoolbar" content="no">');