Skip to content

Instantly share code, notes, and snippets.

@peta
Created September 25, 2010 16:01
Show Gist options
  • Save peta/596985 to your computer and use it in GitHub Desktop.
Save peta/596985 to your computer and use it in GitHub Desktop.
After you triggered the snippet, just type the desired property in its generic form and it will be mirrored into vendor prefixed properties for Mozilla Gecko, Webkit, Opera and Internet Explorer.
${1:}: ${2:};
-moz-${1/\s.*//}: $2;
-webkit-${1/\s.*//}: $2;
-o-${1/\s.*//}: $2;
-ms-${1/\s.*//}: $2;$3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>${1:}: ${2:};
-moz-${1/\s.*//}: $2;
-webkit-${1/\s.*//}: $2;
-o-${1/\s.*//}: $2;
-ms-${1/\s.*//}: $2;$3</string>
<key>name</key>
<string>Vendor prefixed property</string>
<key>tabTrigger</key>
<string>prefixed</string>
<key>uuid</key>
<string>D1F4FA26-D66E-4009-9742-F4D6F1BD5803</string>
</dict>
</plist>
@peta
Copy link
Author

peta commented Sep 25, 2010

After you triggered the snippet, just type the desired property in its generic form and it will be mirrored into vendor prefixed properties for Mozilla Gecko, Webkit, Opera and Internet Explorer.

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