Skip to content

Commit

Permalink
fix: -webkit-appearance before
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Apr 8, 2023
1 parent 6405208 commit 8ae7b02
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/rules/behaviors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export const outline: Rule<Theme>[] = [

export const appearance: Rule[] = [
['appearance-none', {
'appearance': 'none',
'-webkit-appearance': 'none',
'appearance': 'none',
}],
]

Expand Down
8 changes: 4 additions & 4 deletions src/rules/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ export const resizes: Rule[] = [
]

export const userSelects: Rule[] = [
['select-auto', { 'user-select': 'auto' }],
['select-all', { 'user-select': 'all' }],
['select-text', { 'user-select': 'text' }],
['select-none', { 'user-select': 'none' }],
['select-auto', { '-webkit-user-select': 'auto', 'user-select': 'auto' }],
['select-all', { '-webkit-user-select': 'all', 'user-select': 'all' }],
['select-text', { '-webkit-user-select': 'text', 'user-select': 'text' }],
['select-none', { '-webkit-user-select': 'none', 'user-select': 'none' }],
...makeGlobalStaticRules('select', 'user-select'),
]

Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/preset-mini.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,8 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.vertical-baseline{vertical-align:baseline;}
.vertical-inherit{vertical-align:inherit;}
.vertical-super{vertical-align:super;}
.select-all{user-select:all;}
.select-none{user-select:none;}
.select-all{-webkit-user-select:all;user-select:all;}
.select-none{-webkit-user-select:none;user-select:none;}
.select-inherit{user-select:inherit;}
.whitespace-pre-wrap{white-space:pre-wrap;}
.whitespace-unset{white-space:unset;}
Expand Down Expand Up @@ -945,7 +945,7 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.outline-revert-layer{outline-style:revert-layer;}
.outline-unset{outline-style:unset;}
.outline-none{outline:2px solid transparent;outline-offset:2px;}
.appearance-none{appearance:none;-webkit-appearance:none;}
.appearance-none{-webkit-appearance:none;appearance:none;}
.order-\\\\$variable{order:var(--variable);}
.order-first{order:-9999;}
.order-none{order:0;}
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/preset-weapp-rules.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,8 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.vertical-baseline{vertical-align:baseline;}
.vertical-inherit{vertical-align:inherit;}
.vertical-super{vertical-align:super;}
.select-all{user-select:all;}
.select-none{user-select:none;}
.select-all{-webkit-user-select:all;user-select:all;}
.select-none{-webkit-user-select:none;user-select:none;}
.select-inherit{user-select:inherit;}
.whitespace-pre-wrap{white-space:pre-wrap;}
.whitespace-unset{white-space:unset;}
Expand Down Expand Up @@ -912,7 +912,7 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.outline-revert-layer{outline-style:revert-layer;}
.outline-unset{outline-style:unset;}
.outline-none{outline:2px solid transparent;outline-offset:2px;}
.appearance-none{appearance:none;-webkit-appearance:none;}
.appearance-none{-webkit-appearance:none;appearance:none;}
.order-_do11_variable{order:var(--variable);}
.order-first{order:-9999;}
.order-none{order:0;}
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/preset-weapp.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@ unocss .scope-_lfl_unocss_lfr__cl_block{display:block;}
.vertical-baseline{vertical-align:baseline;}
.vertical-inherit{vertical-align:inherit;}
.vertical-super{vertical-align:super;}
.select-all{user-select:all;}
.select-none{user-select:none;}
.select-all{-webkit-user-select:all;user-select:all;}
.select-none{-webkit-user-select:none;user-select:none;}
.select-inherit{user-select:inherit;}
.whitespace-pre-wrap{white-space:pre-wrap;}
.whitespace-unset{white-space:unset;}
Expand Down Expand Up @@ -914,7 +914,7 @@ unocss .scope-_lfl_unocss_lfr__cl_block{display:block;}
.outline-revert-layer{outline-style:revert-layer;}
.outline-unset{outline-style:unset;}
.outline-none{outline:2px solid transparent;outline-offset:2px;}
.appearance-none{appearance:none;-webkit-appearance:none;}
.appearance-none{-webkit-appearance:none;appearance:none;}
.order-_do_variable{order:var(--variable);}
.order-first{order:-9999;}
.order-none{order:0;}
Expand Down

0 comments on commit 8ae7b02

Please sign in to comment.