Skip to content

Commit

Permalink
Fix rem conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvdo committed Aug 26, 2014
1 parent 7064cfa commit 3a26747
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Options () {
this.values = {
'autoprefixer': {},
'filters': {},
'rem': [],
'rem': ['16px'],

'import': {},
'minifier': {preserveHacks: true},
Expand Down
10 changes: 10 additions & 0 deletions test/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ describe('Features', function () {

});

describe('rem', function () {

it('should add fallback for rem unit', function () {

test('rem', opts);

});

});

describe('Pseudo-elements', function () {

it('should replace pseudo-elements syntax', function () {
Expand Down
3 changes: 3 additions & 0 deletions test/features/rem.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.rem {
font-size: 2rem;
}
4 changes: 4 additions & 0 deletions test/features/rem.out.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.rem {
font-size: 32px;
font-size: 2rem;
}

0 comments on commit 3a26747

Please sign in to comment.