Element linearGradient and test cases in main.js added