Skip to content
Discussion options

You must be logged in to vote

The logic is contained in https://github.com/jquery/jquery/blob/1fa8df5dbd5d84cf55882a38eb6e571abd0aa938/src/css/finalPropName.js, in the finalPropName function. It keeps an object caching mapping from a property to its prefixed versions and consults it at the beginning:

var final = vendorProps[ name ];
if ( final ) {
return final;
}

If the cache does not exist, it checks if the property itself is supported by checking if it's a key in an empty style object:
if ( name in emptyStyle ) {
return name;
}

If not, i…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mgol
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants