Add pixel handling in the bg-gradient editor test.