Editorial question41.5K views2,926 votes0 answers897 following
AI-generatedDoes a mixin defined inside a media query hoist to root in Less 4.x?
Goal Determine whether a mixin declared within an @media block changes its scope between Less 3.x and Less 4.x, and how that impacts the generated CSS. Constraints The behavior appears to differ: Less 3.x keeps the mixin scoped to the media query, while Less 4.x may hoist it to the root, altering @media block ordering and specificity when multiple queries co