Space Start Attributes
Space Start Attributes targets attributes beginning with a certain value in a space separated list in CSS.
/* before */ /* after */
Note: The above example generates a W3C CSS level 4 :not()
selector. I recommend using Selector Not to transpile this to a more compatible CSS level 3 selector.
Usage
Add Space Start Attributes to your build tool:
npm install postcss-space-start-attrs --save-dev
Node
;
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load Space Start Attributes as a PostCSS plugin:
;
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Enable Space Start Attributes within your Gulpfile:
var postcss = ; gulp;
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Enable Space Start Attributes within your Gruntfile:
grunt; grunt;