import{isStandardSyntaxProperty as e}from"../../utils/isStandardSyntaxProperty.mjs";import{isCustomProperty as t}from"../../utils/isCustomProperty.mjs";import{unprefixed as r}from"../../utils/vendor.mjs";import{checkAlphabeticalOrder as l}from"../../utils/checkAlphabeticalOrder.mjs";function n(n,i){if("decl"!==n.type)return null;let{prop:o}=n;if(!e(o))return null;if(t(o))return null;let m=r(o);m.startsWith("osx-")&&(m=m.slice(4));let s={name:o,unprefixedName:m,index:i.length,node:n},u=i.at(-1);return i.push(s),u?l(u,s)?null:{expectedFirst:s.name,expectedSecond:u.name}:null}export{n as checkChild};