Skip to content

Commit

Permalink
Merge pull request #57 from saschagehlich/fix-pie-prefix
Browse files Browse the repository at this point in the history
Remove -pie prefix from background()
  • Loading branch information
Igosuki authored Apr 16, 2021
2 parents c68fadb + 909e740 commit 1598cd2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compass/css3/_images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@if $experimental-support-for-webkit and prefixed(-webkit, $backgrounds) { background: -webkit($backgrounds); }
@if $experimental-support-for-mozilla and prefixed(-moz, $backgrounds) { background: -moz($backgrounds); }
@if $experimental-support-for-opera and prefixed(-o, $backgrounds) { background: -o($backgrounds); }
@if $experimental-support-for-pie and $add-pie-bg { -pie-background: -pie($backgrounds); }
@if $experimental-support-for-pie and $add-pie-bg { -pie-background: $backgrounds ; }
background: $backgrounds ;
}

Expand Down
12 changes: 12 additions & 0 deletions test/css3/pieSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var render = require('../helper/render');
var ruleset = require('../helper/ruleset');

describe("Experimentel PIE support", function () {

it("should not prefix linear-gradient with -pie-", function (done) {
render(ruleset('@include background(linear-gradient(to right, white, black));'), function(output, err) {
expect(output).toBe(ruleset('background:-owg-linear-gradient(to right, white, black);background:-webkit-linear-gradient(to right, white, black);background:-moz-linear-gradient(to right, white, black);background:-o-linear-gradient(to right, white, black);-pie-background:linear-gradient(to right, white, black);background:linear-gradient(to right, white, black)'));
done();
}, ['compass/css3/pie', 'compass/css3/images']);
});
});

0 comments on commit 1598cd2

Please sign in to comment.