-
Notifications
You must be signed in to change notification settings - Fork 479
Require compatible vendor prefixes
Experimental CSS properties are typically implemented using vendor prefixes until the final behavior has been established and agreed upon. Most CSS3 properties have vendor-prefixed equivalents for multiple vendors, including Firefox (-moz), Safari/Chrome (-webkit), Opera (-o), and Internet Explorer (-ms). It's easy to forget to include the vendor prefixed version of a property when there are so many to keep track of.
The following properties have multiple vendor-prefixed versions:
animationanimation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-stateanimation-timing-functionappearanceborder-endborder-end-colorborder-end-styleborder-end-widthborder-imageborder-radiusborder-startborder-start-colorborder-start-styleborder-start-widthbox-alignbox-directionbox-flexbox-linesbox-ordinal-groupbox-orientbox-packbox-sizingbox-shadowcolumn-countcolumn-gapcolumn-rulecolumn-rule-colorcolumn-rule-stylecolumn-rule-widthcolumn-widthhyphensline-breakmargin-endmargin-startmarquee-speedmarquee-stylepadding-endpadding-starttab-sizetext-size-adjusttransformtransform-origintransitiontransition-delaytransition-durationtransition-propertytransition-timing-functionuser-modifyuser-selectword-breakwriting-mode
If you want the same CSS effects across all browsers, then it's important to remember the vendor-prefixed properties for all supporting browsers.
Rule ID: compatible-vendor-prefixes
This rule is intended to warn when a vendor-prefixed property is missing. The supported properties are listed in the previous section.
The following patterns are considered warnings:
/* Missing -moz, -ms, and -o */
.mybox {
-webkit-transform: translate(50px, 100px);
}
/* Missing -webkit */
.mybox {
-moz-border-radius: 5px;
}