Hacker News new | ask | show | jobs
by Kilimanjaro 5071 days ago
My blood boils every time I see an odd change in a perfectly fine way of doing things.

Compare this:

    linear-gradient(top,#fff,#000)
to this

    linear-gradient(to bottom,#fff,#000)
Why?
1 comments

The CSS WG wanted that both the <angle> and the keywords to be consistent: both are indicating a direction now. The 'to' was added in order to let the old and new syntax coexist during the transition time.