
-pie-background doesn't work is parent has background
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS3PIE test with bg</title>
<style type="text/css">
div {
background: white;
}
p {
-pie-background: linear-gradient(270deg, green, lime);
behavior: url(PIE.htc);
}
</style>
</head>
<body>
<p>First test</p>
<div>
<p>Second test</p>
</div>
</body>
</html>
In my IE8 I get gradient for first <p> only. Any idea why? How to workaround this? I use "Version 1.0beta2".