Slide 25
Slide 25 text
Gradients
Apple originally added support for gradients to WebKit using a
Core Graphics friendly syntax.
During standardization the syntax was changed leaving WebKit
incompatible with the standard. Some sites continue to use the
original Apple syntax.
Proprietary Apple Markup (still in WebKit):
-webkit-gradient(linear, left top, right bottom, colorstop(0,
#FFFFFF), color-stop(1, #00A3EF));
Webkit-prefixed W3C Standard Gradient in WebKit:
-webkit-linear-gradient(top left, #FFFFFF 0%, #00A3EF 100%);
Unprefixed W3C standard:
linear-gradient(to bottom right, FFFFFF 0%, #00A3EF 100%);
before after