import { isCacheDisabled } from './cache.js'; import { getShorthandDepth } from './shorthand.js'; import type { Bucket, StyleSheetOpts } from './types.js'; /** * Ordered style buckets using their short pseudo name. * * This is very bare-bones, with no support for nesting, like styles in * `@media` queries, pseudo-selectors mixed with shorthand properties, etc. * * If changes are needed to the pseudo-selectors, make sure that it aligns with the * definition in `packages/css/src/utils/style-ordering.ts`. */ export const styleBucketOrdering: Bucket[] = [ // shorthand properties 's-0', 's-1', 's-2', 's-3', 's-4', 's-5', // catch-all '', // link 'l', // visited 'v', // focus-within 'w', // focus 'f', // focus-visible 'i', // hover 'h', // active 'a', // at-rules 'm', // non-atomic `cssMapScoped` (`.cc-…`) rules — MUST live in a dedicated // `