finetune color as html api, also add border test cases