Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PIE CSS: rgba backgrounds + box shadows

I noticed that with CSS like

body {
    background: #f00;
}
div {
    background: rgba(255,255,255,0.4);
    -pie-background: rgba(255,255,255,0.4);
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.4);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    padding: 50px;
    behavior: url(PIE.htc);
}

I will get the below in FireFox & IE/PIE

is it possible to fix that? the box shadow showing through the rgba background?

like image 742
JM at Work Avatar asked Mar 22 '11 09:03

JM at Work


1 Answers

Bad news for you: It doesn't look like it works.

According to the CSS3Pie website, it supports RGBA colours, but...

Currently all color stops are rendered fully opaque, even if specifying an rgba color value. This is due to a limitation in VML's linear gradient syntax which does not allow setting opacity for individual color stops.

(see http://css3pie.com/documentation/supported-css3-features/)

They also have a ticket logged for it: https://github.com/lojjic/PIE/issues#issue/7

like image 197
Spudley Avatar answered Sep 25 '22 02:09

Spudley