ojan at chromium.org
Sat Jul 9 13:33:41 PDT 2011
I share this concern, but I don't think there's anything special here with
often encouraged to use CSS property vendor prefixing.
I'm fairly ambivalent on this. It's not clear to me how much it buys us, but
I can think of examples where it has worked well (e.g. gradients) because we
were able to push the code out and get just enough usage to get useful
feedback, but the usage wasn't so widespread that our hands were tied for
the final API.
There's been an immense uproar about vendor-prefixing on a number of w3c and
whatwg mailing lists in the past year or two. Noone seems especially happy
with the current tradeoffs, but noone has made a better proposal yet either.
On Sat, Jul 9, 2011 at 12:56 PM, Adam Barth <abarth at webkit.org> wrote:
> that are vendor prefixed:
> Here's one of their code examples:
> // Future-proof: when feature is fully standardized
> if (window.requestAnimationFrame) window.requestAnimationFrame(draw);
> // IE implementation
> else if (window.msRequestAnimationFrame)
> // Firefox implementation
> else if (window.mozRequestAnimationFrame)
> // Chrome implementation
> else if (window.webkitRequestAnimationFrame)
> // Other browsers that do not yet support feature
> else setTimeout(draw, PERIOD);
> There are a couple things to notice:
> 1) The requestAnimationFrame API has a vendor prefix in all of these
> implementations, making this code ugly.
> 2) The vendor prefix isn't buying us anything because this code
> assumes that the final, non-prefixed version of the API will work the
> same way that the vendor prefixed version works!
> If web developers are going to assume that future, non-prefixed
> versions of the APIs work the same way as current prefixed versions of
> the APIs anyway, we shouldn't bother with prefixed versions because
> we're already locked in to the current behavior, even without the
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev