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.
2.1m questions
2.1m answers
60 comments
57.0k users