Skip to content

Commit

Permalink
fix(postcss-reduce-initial): update list of properties values
Browse files Browse the repository at this point in the history
Fix #1535
  • Loading branch information
ludofischer committed Feb 23, 2024
1 parent b584c2a commit 5ed2242
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/postcss-reduce-initial/src/data/fromInitial.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"-webkit-line-clamp": "none",
"accent-color": "auto",
"align-content": "normal",
"align-items": "normal",
Expand All @@ -26,7 +25,6 @@
"background-position-x": "0%",
"background-position-y": "0%",
"background-repeat": "repeat",
"block-overflow": "clip",
"block-size": "auto",
"border-block-style": "none",
"border-block-width": "medium",
Expand Down Expand Up @@ -182,7 +180,7 @@
"mask-border-width": "auto",
"mask-composite": "add",
"mask-image": "none",
"mask-position": "center",
"mask-position": "0% 0%",
"mask-repeat": "repeat",
"mask-size": "auto",
"masonry-auto-flow": "pack",
Expand All @@ -203,7 +201,7 @@
"offset-anchor": "auto",
"offset-distance": "0",
"offset-path": "none",
"offset-position": "auto",
"offset-position": "normal",
"offset-rotate": "auto",
"opacity": "1",
"order": "0",
Expand Down Expand Up @@ -313,7 +311,6 @@
"view-timeline-name": "none",
"view-transition-name": "none",
"white-space": "normal",
"white-space-trim": "none",
"widows": "2",
"width": "auto",
"will-change": "auto",
Expand Down
7 changes: 7 additions & 0 deletions packages/postcss-reduce-initial/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ test(
/* Skip transform-box for browser compatibility */
test('preserve transform-box', passthroughCSS('div{transform-box:view-box}'));

/* Most browsers do not support 'none' at present */
test(
'should preserve initial -webkit-line-clamp',
passthroughCSS('a{-webkit-line-clamp: initial;}')
);

test(
'should ignore the data present in the ignore options',
passthroughCSS('h1{min-height:initial}', { ignore: ['min-height'] })
Expand All @@ -141,4 +147,5 @@ test(
'should ignore the data present in the ignore options , toInitial #3',
passthroughCSS('WRITING-MODE:horizontal-tb', { ignore: ['writing-mode'] })
);

test.run();

0 comments on commit 5ed2242

Please sign in to comment.