import{hasSupportsAtRuleAncestor as t}from"@csstools/utilities";const e=/^font-width$/i,o=/\bfont-width\b/i,s=/^font-stretch$/i,creator=s=>{const r=Object.assign({preserve:!1},s);return{postcssPlugin:"postcss-font-width-property",Declaration(s){e.test(s.prop)&&(hasFallback(s)||t(s,o)||(s.cloneBefore({prop:"font-stretch"}),r.preserve||s.remove()))}}};function hasFallback(t){const e=t.parent;if(!e)return!1;for(const o of e.nodes)if(o!==t&&"decl"===o.type&&s.test(o.prop))return!0;return!1}creator.postcss=!0;export{creator as default,creator as"module.exports"};
