.class { border-image: linear-gradient(black, white) 20% fill stretch stretch; }