Elektrine lite

← Feed

@kirb@hachyderm.io

Post #778844

2026-03-16 06:29 UTC

There was a brief era where we wrote background: -webkit-gradient(linear, left top, right top, from(#fff), color-stop(50%, #fff), to(#c6d3f7)); rather than background: linear-gradient(left, #fff, #fff 50%, #c6d3f7); and to this day I still want to know how WebKit landed on such verbose syntax. Was it to be easier to parse? Easier to teach? CSS is known for being a terse syntax, so the old syntax feels so out of place. #css #css3 #html5

Replies (1)

  • @teacherbuknoy@masto.ai 2026-03-16 07:18

    @kirb maybe they were exploring a would-have-been gradient() function that merges all the functionality of linear, radial, and conic gradients?

    Open ##1396591