diff --git a/packages/preset-wind/src/rules/background.ts b/packages/preset-wind/src/rules/background.ts index 0375c4d558..284f58ecff 100644 --- a/packages/preset-wind/src/rules/background.ts +++ b/packages/preset-wind/src/rules/background.ts @@ -112,10 +112,10 @@ export const backgroundStyles: Rule[] = [ // repeats ['bg-repeat', { 'background-repeat': 'repeat' }], ['bg-no-repeat', { 'background-repeat': 'no-repeat' }], - ['bg-repeat-x', { 'background-position': 'repeat-x' }], - ['bg-repeat-y', { 'background-position': 'repeat-y' }], - ['bg-repeat-round', { 'background-position': 'round' }], - ['bg-repeat-space', { 'background-position': 'space' }], + ['bg-repeat-x', { 'background-repeat': 'repeat-x' }], + ['bg-repeat-y', { 'background-repeat': 'repeat-y' }], + ['bg-repeat-round', { 'background-repeat': 'round' }], + ['bg-repeat-space', { 'background-repeat': 'space' }], // origins ['bg-origin-border', { 'background-origin': 'border-box' }], diff --git a/test/__snapshots__/preset-wind.test.ts.snap b/test/__snapshots__/preset-wind.test.ts.snap index 2980d1c46c..173235e9c7 100644 --- a/test/__snapshots__/preset-wind.test.ts.snap +++ b/test/__snapshots__/preset-wind.test.ts.snap @@ -250,7 +250,7 @@ exports[`preset-wind > targets 1`] = ` .bg-bottom{background-position:bottom;} .bg-right-bottom{background-position:right bottom;} .bg-no-repeat{background-repeat:no-repeat;} -.bg-repeat-space{background-position:space;} +.bg-repeat-space{background-repeat:space;} .bg-origin-border{background-origin:border-box;} .svg\\\\:fill-red svg{--un-fill-opacity:1;fill:rgba(248,113,113,var(--un-fill-opacity));} .object-none{object-fit:none;}