Skip to content

Commit

Permalink
add test coverage for #1244
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Jan 9, 2024
1 parent 7ec72b7 commit 5576eb0
Show file tree
Hide file tree
Showing 29 changed files with 1,048 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin-packs/postcss-preset-env/test/_tape.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ postcssTape(plugin)({
autoprefixer: false,
},
},
'basic:autoprefixer:remove:false': {
message: 'supports { autoprefixer: { remove: false } } usage',
options: {
autoprefixer: {
remove: false,
},
},
},
'basic:preserve:true': {
message: 'supports { preserve: true, stage: 0, browsers: "> 0%" } usage',
options: {
Expand Down
12 changes: 12 additions & 0 deletions plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css
Original file line number Diff line number Diff line change
Expand Up @@ -648,3 +648,15 @@
.out-of-gamut {
--color: rgb(0, 249, 66);
}

.issue-1244--a {
background-image: -ms-linear-gradient(180deg, red 0%, blue 100%);
}

.issue-1244--b {
background-image: linear-gradient(180deg, red 0%, blue 100%);
}

.issue-1244--c {
background-image: linear-gradient(180deg, red 0%, blue 100%);
}
Original file line number Diff line number Diff line change
Expand Up @@ -648,3 +648,20 @@
.out-of-gamut {
--color: rgb(0, 249, 66);
}

.issue-1244--a {
background-image: -moz-linear-gradient(180deg, red 0%, blue 100%);
background-image: -webkit-linear-gradient(180deg, red 0%, blue 100%);
background-image: -ms-linear-gradient(180deg, red 0%, blue 100%);
}

.issue-1244--b {
background-image: linear-gradient(180deg, red 0%, blue 100%);
}

.issue-1244--c {
background-image: -moz-linear-gradient(180deg, red 0%, blue 100%);
background-image: -webkit-linear-gradient(180deg, red 0%, blue 100%);
background-image: -ms-linear-gradient(180deg, red 0%, blue 100%);
background-image: linear-gradient(180deg, red 0%, blue 100%);
}
Loading

0 comments on commit 5576eb0

Please sign in to comment.