Browser implementations of linear-gradient()
have evolved to support both top
and to top
as anchor values. Are they the same direction or opposites?
Browser implementations of linear-gradient()
have evolved to support both top
and to top
as anchor values. Are they the same direction or opposites?
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.