stylelint-plugin-isolate-on-stack
Version:
A Stylelint plugin to detect redundant or invalid uses of 'isolation: isolate' in CSS.
25 lines • 603 B
JavaScript
/**
* CSS properties that create stacking contexts
* These properties are used to determine if an element creates a stacking context
*/
export const STACKING_CONTEXT_PROPERTIES = [
"position",
"opacity",
"transform",
"filter",
"isolation",
"mix-blend-mode",
"contain",
"will-change",
"perspective",
"clip-path",
"mask",
"mask-image",
"mask-border",
"z-index",
];
/**
* Set for O(1) lookups of stacking context properties
*/
export const STACKING_CONTEXT_PROPERTIES_SET = new Set(STACKING_CONTEXT_PROPERTIES);
//# sourceMappingURL=index.js.map