I don't know why this hasn't been addressed. I'm seeing the exact same problem. I've tried every permutation, but haven't been able to generate a gradient using any existing standard for webkit or otherwise (even though it's allegedly supported).
EDIT: I discovered that when the app is compiled, the gradients work fine. This one is driving my crazy, because I want to be able to test them. I get a mix of CSS support, depending on how the app is run.
- From Dreamweaver CS3 "Preview" - My CSS doesn't show gradients and shows embedded web fonts.
- From ADL - My CSS fails almost entirely, but some if it gets loaded.
- From the compiled AIR file: fortunately, everything seems to display correctly, but it's really a bad scenario for development / testing. Not sure what to do.
-webkit-linear-gradient is not working in AIR 3.0, but you may use -webkit-gradient to the same effect.
background: -webkit-gradient(linear,0 top,0 bottom,from(#A2C9F1),color-stop(0.5,#4C87D2),to(#80E1FF));
Does "Preview" in Dreamweaver CS3 (to run the Adobe Air app) launch a different version of webkit?
Preview uses the version of AIR (and WebKit) that is contained in the AIR SDK used by Dreamweaver. You can use NativeApplication.nativeApplication.runtimeVersion to see exactly which version is being used at run time.
Oh, thanks, that's helpful info. Any ideas how to upgrade the AIR SDK used by Dreamweaver? I'm using the latest version of the extension, but I don't have the latest version of Dreamweaver (I have CS3), which uses a different extension.
You ever find out how to upgrade the AIR SDK used by Dreamweaver in older versions of Dreamweaver? If so, please pass on the information.