Skip to content

Not working with postcss-js? #48

@rtsao

Description

@rtsao

It seems rtlcss isn't working with postcss-js:

var postcss = require('postcss-js');
var rtlcss = require('rtlcss');
var autoprefixer = require('autoprefixer');

var process = postcss.sync([ rtlcss, autoprefixer ]);

var css = {'.foo': {
  borderColor: 'red green blue black',
  left: '5px',
  transition: 'width 5s'
}};

console.log(process(css));
/*
{'.foo': {
  borderColor: 'red green blue black',
  left: '5px',
  WebkitTransition: width 5s ease,
  transition: 'width 5s ease'
}}
*/

Example:
http://requirebin.com/?gist=df4a18c20ba922ad02c2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions