bostboy — 2011-05-18T23:42:31-04:00 — #1
Does anyone know offhand whether there are browsers that support boxshadow without supporting rgba?
I want to use Modernizr and was wondering if I have to create separate styles for the boxshadow with and without rgba. Or does on assume that if they support boxshadows they also support rgba.
ralphm — 2011-05-19T00:14:41-04:00 — #2
I think you can assume that any browser supporting one will support the other. IE9 is the only IE version to support either, but the other modern browsers support both. How far back do you need to go?
bostboy — 2011-05-19T00:30:34-04:00 — #3
Thanks. I don't need to go back that far but I'm not sure that really matters in this case because with Modernizr, I will be creating styles on elements that use boxshadow (using rgba) and different ones for those not supporting boxshadow.
So if they don't support boxshadow, I won't use rgba in this case. There are separate checks for support of boxshadow and rgba. I think this probably leans more to the standalone use of rgba rather than using rgba in boxshadow. So I get the feeling it is probably pretty safe to assume that if they support boxshadow, they also support rgba.
ralphm — 2011-05-19T00:32:39-04:00 — #4
I don't want to pretend to be your ultimate authority on it, but that's what I would do.
bostboy — 2011-05-19T00:33:48-04:00 — #5
I would venture a guess that you are far more of an authority than I.
paulob — 2011-05-19T05:15:22-04:00 — #6
You can find support tables for box-shadow at the mozilla site.
Caniuse.com shows the support tables for [rgba and [URL="http://caniuse.com/#search=box-shadow"]box-shadow](http://caniuse.com/#search=rgba) so I think you can safely assume that those browsers will support the rgba in box shadow.
CSS3info has some good examples.
bostboy — 2011-05-19T10:35:03-04:00 — #7
Great thanks, so proof that all browsers that support box-shadow do also support rgba.