Require compatible vendor prefixes
Pages 49
- Home
- About
- Avoid un anchored hovers
- Beware of box model size
- Build System
- Build System Integration
- Bulletproof font face
- Command line interface
- Contributing
- Developer Guide
- Disallow !important
- Disallow @import
- Disallow adjoining classes
- Disallow box sizing
- Disallow duplicate background images
- Disallow duplicate properties
- Disallow empty rules
- Disallow IDs in selectors
- Disallow negative text indent
- Disallow non alphabetical
- Disallow outline:none
- Disallow overqualified elements
- Disallow qualified headings
- Disallow selectors that look like regular expressions
- Disallow star hack
- Disallow too many floats
- Disallow underscore hack
- Disallow units for zero values
- Disallow universal selector
- Disallow unqualified attribute selectors
- Don't use too many font size declarations
- Don't use too many web fonts
- Headings should only be defined once
- IDE integration
- Ignoring parts of CSS during linting
- New Release
- Require all gradient definitions
- Require compatible vendor prefixes
- Require fallback colors
- Require properties appropriate for display
- Require shorthand properties
- Require standard property with vendor prefix
- Require use of known properties
- Rules
- Rules by ID
- Source Code
- Unit Tests
- Using in a Node.js Application
- Working with Rules
- Show 34 more pages…
Clone this wiki locally
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 Details
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;
}Automated linting of Cascading Stylesheets