Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Last active January 2, 2016 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketaylr/8321236 to your computer and use it in GitHub Desktop.
Save miketaylr/8321236 to your computer and use it in GitHub Desktop.
Prefixed vs Non-Prefixed CSS property value pairs

What is the list of CSS properties that have variations between prefixed and non-prefixed values? That is, to get from the non-standard to the standard variant you can't just remove the -foo- prefix in prop: -foo-value.

Non-standard here can mean proprietary props that evolved into specced ones, or just early implementations of a spec.

Example,

Flexbox:

Nonstandard: display: box, or display: -webkit-box Standard: display: flex

What else is out there? Prefixed properties are also OK, if an example exists.

@0b10011
Copy link

0b10011 commented Jan 8, 2014

linear-gradient: 0deg changed where it started

@ebidel
Copy link

ebidel commented Jan 8, 2014

Intrinsic sizes: http://caniuse.com/intrinsic-width

width: -webkit-max-content;

Moz has different values for some of these.

@miketaylr
Copy link
Author

Ah nice ones. Thanks. @bfrohs and @ebidel.

@miketaylr
Copy link
Author

Another one:

-webkit-font-smoothing: antialiased vs -moz-osx-font-smoothing: grayscale

@pepelsbey
Copy link

Check autoprefixer sources. There's a big vendor prefixes/values matching work done, including Flexbox, gradients and many more. Am I right @ai?

@miketaylr
Copy link
Author

Awesome @pepelsbey, presumably here: https://github.com/ai/autoprefixer/tree/master/lib/hacks (brb learning coffeescript)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment