Closed GoogleCodeExporter closed 9 years ago
This problem also occurs with other CSS Frameworks (in my case Blueprint).
Removing
those lines fixes the problem.
Original comment by wouterbu...@gtempaccount.com
on 3 Jan 2009 at 11:51
The problem looks like it's in IE7.CSS.addRecalc. It uses
element.parentElement, without checking to see that
the element actually has a parent.
This modified version seems to work for me
// -----------------------------------------------------------------------
// propertyName: inherit;
// -----------------------------------------------------------------------
IE7.CSS.addRecalc("[\\w-]+", "inherit", function(element, cssText) {
var inherited = cssText.match(/[\w-]+\s*:\s*inherit/g);
for (var i = 0; i < inherited.length; i++) {
var propertyName = inherited[i].replace(/ie7\-|\s*:\s*inherit/g, "").replace(/\-([a-z])/g, function(match,
chr) {
return chr.toUpperCase()
});
// check if parent exists
if (element.parentElement) {
element.runtimeStyle[propertyName] = element.parentElement.currentStyle[propertyName];
}
}
});
Original comment by mjpizz
on 20 Jun 2009 at 5:41
I comment only the line "font-family: inherit;", then it works just fine.
Original comment by falecom...@gmail.com
on 6 Oct 2009 at 8:01
This is a duplicate of issue #104. It is fixed in the next release (2.1).
Original comment by dean.edw...@gmail.com
on 11 Feb 2010 at 1:07
Original issue reported on code.google.com by
mge...@gmail.com
on 12 Aug 2008 at 10:10