Update transform.js, gradients.js

transform.js:
- Fix support3dTransform for opera (have to insert and remove test div)

gradient.js:
- Default directions for linear gradients are different than browser
extension directions