Browser implementations of linear-gradient() have evolved to support both top and to top as anchor values. Are they the same direction or opposites?
linear-gradient()
top
to top
They are opposites. to top uses the first color argument at the bottom of the element, while top uses the first color argument at the top.
Here's a fiddle. MDN has the full details and history.
1.4m articles
1.4m replys
5 comments
57.0k users