LeaVerou / css-almanac

Repo for planning & voting on which stats to study
https://projects.verou.me/mavoice/?repo=leaverou/css-almanac&labels=proposed%20stat
34 stars 3 forks source link

Vendor prefix stats #9

Open LeaVerou opened 4 years ago

LeaVerou commented 4 years ago

Popular vendor prefix numbers. Are the -webkit-, -moz-, -o- or -ms- numbers still relevant, considering the improved browser support for most of the CSS properties that once required vendor prefixes?

(by @catalinred)

Reply by @svgeesus:

Nice one, although -webkit now falls into two categories which should be distinguished;

  1. Things that are actually WebKit specific
  2. Things that the other browsers have (wth varying degrees of reluctance) had to implement, primarily so that iOS-specific mobile content also works on browsers other than Safari. The -webkit vendor prefix merely being historical legacy, at this point.

The second one is interesting to analyze because it constitutes a part of the Open Web Platform that was added without the usual design debate or standards process.

LeaVerou commented 4 years ago

I suppose one way to measure this would be to measure properties starting with -(webkit|moz|ms|apple|o)-, as well as its presence in values (with \B before and [a-z]+ after) and selectors (with : before and [a-z]+ after) and keep track of what we find (properties, values, selectors should be separate), then aggregating over the website corpus will be quite illuminating.

LeaVerou commented 4 years ago

Note that the JS pushed doesn't measure prefixed @-rules: The Rework parser doesn't seem to parse those correctly unless they are known (e.g. @-moz-document).