You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
389 B

2 years ago
const e=/^overflow/i;const o=o=>{const s=!("preserve"in Object(o))||Boolean(o.preserve);return{postcssPlugin:"postcss-overflow-shorthand",Declaration:(o,{list:r})=>{e.test(o)&&function(e,o,s){const[r,t,...n]=e.space(o.value);t&&!n.length&&(o.cloneBefore({prop:`${o.prop}-x`,value:r}),o.cloneBefore({prop:`${o.prop}-y`,value:t}),s||o.remove())}(r,o,s)}}};o.postcss=!0;export{o as default};