Skip to content

Commit 25b84b0

Browse files
authored
feat: support inset property (#645)
1 parent 7c05d88 commit 25b84b0

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

packages/atomizer/src/rules.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,25 @@ module.exports = [
23362336
},
23372337
/**
23382338
==================================================================
2339+
INSET
2340+
==================================================================
2341+
*/
2342+
{
2343+
type: 'pattern',
2344+
name: 'Inset',
2345+
matcher: 'In',
2346+
allowParamToValue: true,
2347+
styles: {
2348+
inset: '$0',
2349+
},
2350+
arguments: [
2351+
{
2352+
a: 'auto',
2353+
},
2354+
],
2355+
},
2356+
/**
2357+
==================================================================
23392358
ISOLATE
23402359
==================================================================
23412360
*/

packages/atomizer/tests/__snapshots__/rules.test.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6594,6 +6594,16 @@ exports[`Rules image-rendering 1`] = `
65946594
"
65956595
`;
65966596

6597+
exports[`Rules inset 1`] = `
6598+
".In\\(a\\) {
6599+
inset: auto;
6600+
}
6601+
.In\\(1px\\) {
6602+
inset: 1px;
6603+
}
6604+
"
6605+
`;
6606+
65976607
exports[`Rules isolation 1`] = `
65986608
".Iso\\(a\\) {
65996609
isolation: auto;

0 commit comments

Comments
 (0)