data-grad attribute refactoring using css attr()