Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: preserve CSS variable and gradient references on paste (#5716)

Oleg Isonenf052200d074c
diff --git a/apps/builder/app/shared/html.test.tsx b/apps/builder/app/shared/html.test.tsx
index 7df8db619a..66ba2e4518 100644
--- a/apps/builder/app/shared/html.test.tsx
+++ b/apps/builder/app/shared/html.test.tsx
@@ -1,5 +1,6 @@
import { expect, test, describe } from "vitest";
import { $, css, renderTemplate, token, ws } from "@webstudio-is/template";
+import type { WebstudioFragment } from "@webstudio-is/sdk";
import { generateFragmentFromHtml as _generateFragmentFromHtml } from "./html";
// Wrapper that strips skippedSelectors for tests that only compare fragment shape
@@ -472,29 +473,42 @@ describe("style tag to tokens", () => {
});
test("combine inline style attribute with class token", () => {
- const cardToken = token(
- "card",
- css`
- display: flex;
- `
+ const fragment = generateFragmentFromHtml(`
+ <style>.card { display: flex; }</style>
+ <div class="card" style="color: red">Hello</div>
+ `);
+ const cardToken = fragment.styleSources.find(
+ (source) => source.type === "token" && source.name === "card"
);
- expect(
- generateFragmentFromHtml(`
- <style>.card { display: flex; }</style>
- <div class="card" style="color: red">Hello</div>
- `)
- ).toEqual(
- renderTemplate(
- <ws.element
- ws:tag="div"
- ws:style={css`
- color: red;
- `}
- ws:tokens={[cardToken]}
- >
- Hello
- </ws.element>
- )
+ expect(cardToken).toBeDefined();
+ expect(fragment.children).toEqual([{ type: "id", value: "0" }]);
+ expect(fragment.instances).toEqual([
+ {
+ type: "instance",
+ id: "0",
+ component: "ws:element",
+ tag: "div",
+ children: [{ type: "text", value: "Hello" }],
+ },
+ ]);
+ expect(fragment.styleSourceSelections).toEqual([
+ { instanceId: "0", values: [cardToken!.id, "0:ws:style"] },
+ ]);
+ expect(fragment.styles).toEqual(
+ expect.arrayContaining([
+ {
+ styleSourceId: cardToken!.id,
+ breakpointId: "base",
+ property: "display",
+ value: { type: "keyword", value: "flex" },
+ },
+ {
+ styleSourceId: "0:ws:style",
+ breakpointId: "base",
+ property: "color",
+ value: { type: "keyword", value: "red" },
+ },
+ ])
);
});
@@ -810,30 +824,51 @@ describe("style tag to tokens", () => {
});
test("element with both resolved and unresolved classes plus inline style", () => {
- const cardToken = token(
- "card",
- css`
- display: flex;
- `
+ const fragment = generateFragmentFromHtml(`
+ <style>.card { display: flex; }</style>
+ <div class="card external" style="color: red">Hello</div>
+ `);
+ const cardToken = fragment.styleSources.find(
+ (source) => source.type === "token" && source.name === "card"
);
- expect(
- generateFragmentFromHtml(`
- <style>.card { display: flex; }</style>
- <div class="card external" style="color: red">Hello</div>
- `)
- ).toEqual(
- renderTemplate(
- <ws.element
- ws:tag="div"
- class="external"
- ws:style={css`
- color: red;
- `}
- ws:tokens={[cardToken]}
- >
- Hello
- </ws.element>
- )
+ expect(cardToken).toBeDefined();
+ expect(fragment.children).toEqual([{ type: "id", value: "0" }]);
+ expect(fragment.instances).toEqual([
+ {
+ type: "instance",
+ id: "0",
+ component: "ws:element",
+ tag: "div",
+ children: [{ type: "text", value: "Hello" }],
+ },
+ ]);
+ expect(fragment.props).toEqual([
+ {
+ id: "0:class",
+ instanceId: "0",
+ name: "class",
+ type: "string",
+ value: "external",
+ },
+ ]);
+ expect(fragment.styleSourceSelections).toEqual([
+ { instanceId: "0", values: [cardToken!.id, "0:ws:style"] },
+ ]);
+ expect(fragment.styles).toEqual(
+ expect.arrayContaining([
+ {
+ styleSourceId: cardToken!.id,
+ breakpointId: "base",
+ property: "display",
+ value: { type: "keyword", value: "flex" },
+ },
+ {
+ styleSourceId: "0:ws:style",
+ breakpointId: "base",
+ property: "color",
+ value: { type: "keyword", value: "red" },
+ },
+ ])
);
});
@@ -2332,7 +2367,7 @@ describe("style tag to tokens", () => {
).toHaveLength(0);
});
- test(":root selector stays as html embed", () => {
+ test(":root selector is extracted as local styles on the root instance, not as html embed", () => {
const fragment = generateFragmentFromHtml(`
<style>
:root { --color: blue; }
@@ -2345,11 +2380,87 @@ describe("style tag to tokens", () => {
(s) => s.type === "token" && s.name === "card"
);
expect(tokenSource).toBeDefined();
- // :root should stay as html embed
- const htmlEmbed = fragment.instances.find(
- (i) => i.component === "HtmlEmbed"
+ // :root should NOT produce an html embed
+ expect(fragment.instances.some((i) => i.component === "HtmlEmbed")).toBe(
+ false
+ );
+ // :root styles should be on the root instance selection
+ const rootSelection = fragment.styleSourceSelections.find(
+ (sel) => sel.instanceId === ":root"
+ );
+ expect(rootSelection).toBeDefined();
+ const rootStyleSourceId = rootSelection!.values[0];
+ const rootStyle = fragment.styles.find(
+ (s) => s.styleSourceId === rootStyleSourceId && s.property === "--color"
+ );
+ expect(rootStyle).toBeDefined();
+ });
+
+ test(":root only styles are extracted as local styles on root instance", () => {
+ const fragment = generateFragmentFromHtml(`
+ <style>
+ :root {
+ color: red;
+ }
+ </style>
+ `);
+ // no html embed
+ expect(fragment.instances.some((i) => i.component === "HtmlEmbed")).toBe(
+ false
+ );
+ // style on :root instance
+ const rootSelection = fragment.styleSourceSelections.find(
+ (sel) => sel.instanceId === ":root"
+ );
+ expect(rootSelection).toBeDefined();
+ const rootStyleSourceId = rootSelection!.values[0];
+ const rootStyle = fragment.styles.find(
+ (s) => s.styleSourceId === rootStyleSourceId && s.property === "color"
+ );
+ expect(rootStyle).toBeDefined();
+ expect(rootStyle!.value).toMatchObject({ type: "keyword", value: "red" });
+ });
+
+ test("cross-selector gradient vars stay as var() references in pasted tokens", () => {
+ const fragment = generateFragmentFromHtml(`
+ <section class="scope">
+ <style>
+ .scope {
+ --tone-1: #ff0000;
+ --tone-2: #00ff00;
+ --tone-3: #0000ff;
+ }
+
+ .panel {
+ background: linear-gradient(38deg, var(--tone-1), var(--tone-2), var(--tone-3));
+ }
+ </style>
+
+ <div class="panel">test</div>
+ </section>
+ `);
+ const tokenSource = fragment.styleSources.find(
+ (source) => source.type === "token" && source.name === "panel"
+ );
+ expect(tokenSource).toBeDefined();
+ const backgroundImage = fragment.styles.find(
+ (style) =>
+ style.styleSourceId === tokenSource!.id &&
+ style.property === "backgroundImage"
+ );
+ expect(backgroundImage?.value).toMatchObject({
+ type: "layers",
+ value: [
+ {
+ type: "unparsed",
+ value:
+ "linear-gradient(38deg,var(--tone-1),var(--tone-2),var(--tone-3))",
+ },
+ ],
+ });
+ expect(fragment.instances.some((i) => i.component === "HtmlEmbed")).toBe(
+ false
);
- expect(htmlEmbed).toBeDefined();
});
test("universal selector * stays as html embed", () => {
@@ -2986,4 +3097,167 @@ describe("style tag to tokens", () => {
expect.objectContaining({ type: "var", value: "clr-red" })
);
});
+
+ describe("preserve border color var() references", () => {
+ const getTokenStyle = (
+ fragment: WebstudioFragment,
+ tokenName: string,
+ property: string
+ ) => {
+ const tokenSource = fragment.styleSources.find(
+ (source) => source.type === "token" && source.name === tokenName
+ );
+ expect(tokenSource).toBeDefined();
+ return fragment.styles.find(
+ (style) =>
+ style.styleSourceId === tokenSource!.id && style.property === property
+ );
+ };
+
+ const getSelection = (fragment: WebstudioFragment, instanceId: string) => {
+ return fragment.styleSourceSelections.find(
+ (selection) => selection.instanceId === instanceId
+ );
+ };
+
+ test("typed arbitrary color utility keeps var reference", () => {
+ const fragment = _generateFragmentFromHtml(`
+ <style>
+ .border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
+ .border-\\[color\\:var\\(--border-color\\)\\] { border-color: var(--border-color); }
+ </style>
+ <div class="p-8 border border-[color:var(--border-color)]"></div>
+ `);
+ const borderColorStyle = getTokenStyle(
+ fragment,
+ "border-[color:var(--border-color)]",
+ "borderTopColor"
+ );
+ expect(borderColorStyle?.value).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+ });
+
+ test("css variable shorthand utility keeps var reference", () => {
+ const fragment = _generateFragmentFromHtml(`
+ <style>
+ .border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
+ .border-\\(--border-color\\) { border-color: var(--border-color); }
+ </style>
+ <div class="p-8 border border-(--border-color)"></div>
+ `);
+ const borderColorStyle = getTokenStyle(
+ fragment,
+ "border-(--border-color)",
+ "borderTopColor"
+ );
+ expect(borderColorStyle?.value).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+ });
+
+ test("inline border-color style keeps var reference", () => {
+ const fragment = _generateFragmentFromHtml(`
+ <style>
+ .border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
+ </style>
+ <div class="p-8 border" style="border-color: var(--border-color)"></div>
+ `);
+ const divInstance = fragment.instances.find(
+ (instance) => instance.tag === "div"
+ );
+ expect(divInstance).toBeDefined();
+ expect(getSelection(fragment, divInstance!.id)?.values).toEqual([
+ expect.any(String),
+ `${divInstance!.id}:ws:style`,
+ ]);
+ const localStyle = fragment.styles.find(
+ (style) =>
+ style.styleSourceId === `${divInstance!.id}:ws:style` &&
+ style.property === "borderTopColor"
+ );
+ expect(localStyle?.value).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+ });
+
+ test("arbitrary property utility keeps var reference", () => {
+ const fragment = _generateFragmentFromHtml(`
+ <style>
+ .border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
+ .\\[border-color\\:var\\(--border-color\\)\\] { border-color: var(--border-color); }
+ </style>
+ <div class="p-8 border [border-color:var(--border-color)]"></div>
+ `);
+ const borderColorStyle = getTokenStyle(
+ fragment,
+ "[border-color:var(--border-color)]",
+ "borderTopColor"
+ );
+ expect(borderColorStyle?.value).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+ });
+
+ test("typed literal utility keeps literal color", () => {
+ const fragment = _generateFragmentFromHtml(`
+ <style>
+ .border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
+ .border-\\[color\\:\\#000\\] { border-color: #000; }
+ </style>
+ <div class="p-8 border border-[color:#000]"></div>
+ `);
+ const borderColorStyle = getTokenStyle(
+ fragment,
+ "border-[color:#000]",
+ "borderTopColor"
+ );
+ expect(borderColorStyle?.value).toEqual(
+ expect.objectContaining({ type: "color", colorSpace: "hex" })
+ );
+ });
+
+ test("border side utility with var color keeps var reference", () => {
+ const fragment = _generateFragmentFromHtml(`
+ <style>
+ .border-t { border-top-width: 1px; border-top-style: solid; border-color: #e5e7eb; }
+ .border-\\[color\\:var\\(--border-color\\)\\] { border-color: var(--border-color); }
+ </style>
+ <div class="p-8 border-t border-[color:var(--border-color)]"></div>
+ `);
+ const borderColorStyle = getTokenStyle(
+ fragment,
+ "border-[color:var(--border-color)]",
+ "borderTopColor"
+ );
+ expect(borderColorStyle?.value).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+ });
+
+ test("inline border shorthand keeps var color reference", () => {
+ const fragment = _generateFragmentFromHtml(`
+ <style>
+ .border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
+ </style>
+ <div class="p-8 border" style="border: 1px solid var(--border-color)"></div>
+ `);
+ const divInstance = fragment.instances.find(
+ (instance) => instance.tag === "div"
+ );
+ expect(divInstance).toBeDefined();
+ expect(getSelection(fragment, divInstance!.id)?.values).toEqual([
+ expect.any(String),
+ `${divInstance!.id}:ws:style`,
+ ]);
+ const localStyle = fragment.styles.find(
+ (style) =>
+ style.styleSourceId === `${divInstance!.id}:ws:style` &&
+ style.property === "borderTopColor"
+ );
+ expect(localStyle?.value).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+ });
+ });
});
diff --git a/apps/builder/app/shared/html.ts b/apps/builder/app/shared/html.ts
index d6361bbd81..56f179e7d1 100644
--- a/apps/builder/app/shared/html.ts
+++ b/apps/builder/app/shared/html.ts
@@ -27,6 +27,7 @@ import {
import { richTextContentTags } from "./content-model";
import { setIsSubsetOf } from "./shim";
import { isAttributeNameSafe } from "@webstudio-is/react-sdk";
+import { ROOT_INSTANCE_ID } from "@webstudio-is/sdk";
import * as csstree from "css-tree";
import { titleCase } from "title-case";
@@ -194,13 +195,19 @@ const classifyRules = (
): {
classRules: Map<string, ParsedStyleDecl[]>;
nestedClassRules: Map<string, NestedClassRule>;
+ rootRules: ParsedStyleDecl[];
hasNonClassRules: boolean;
} => {
const classRules = new Map<string, ParsedStyleDecl[]>();
const nestedClassRules = new Map<string, NestedClassRule>();
+ const rootRules: ParsedStyleDecl[] = [];
let hasNonClassRules = false;
for (const decl of decls) {
+ if (decl.selector === ":root") {
+ rootRules.push(decl);
+ continue;
+ }
const parsed = parseClassBasedSelector(decl.selector);
if (parsed !== undefined) {
const selectorState = parsed.states?.[0];
@@ -229,7 +236,7 @@ const classifyRules = (
hasNonClassRules = true;
}
}
- return { classRules, nestedClassRules, hasNonClassRules };
+ return { classRules, nestedClassRules, rootRules, hasNonClassRules };
};
/**
@@ -245,12 +252,20 @@ const buildLeftoverCss = (cssText: string): string => {
const parts: string[] = [];
/** Re-use parseClassBasedSelector as single source of truth */
- const isClassBasedSelector = (selector: csstree.CssNode): boolean =>
- selector.type === "Selector" &&
- parseClassBasedSelector(csstree.generate(selector)) !== undefined;
+ const isClassBasedSelector = (selector: csstree.CssNode): boolean => {
+ if (selector.type !== "Selector") {
+ return false;
+ }
+ const text = csstree.generate(selector);
+ // :root rules are extracted separately — treat as non-leftover
+ if (text === ":root") {
+ return true;
+ }
+ return parseClassBasedSelector(text) !== undefined;
+ };
/**
- * Process a Rule: if all selectors are class-based, skip entirely.
+ * Process a Rule: if all selectors are class-based or :root, skip entirely.
* If none are, keep entirely. If mixed, keep only non-class selectors.
*/
const getLeftoverRule = (node: csstree.Rule): string | undefined => {
@@ -537,7 +552,7 @@ export const generateFragmentFromHtml = (
// Parse all CSS and classify rules
const { styles: allDecls } = parseCss(allCssText, allCssVars);
- const { classRules, nestedClassRules } = classifyRules(allDecls);
+ const { classRules, nestedClassRules, rootRules } = classifyRules(allDecls);
// Track which class names are used by elements — IDs will be assigned later
const usedClassNames = new Set<string>();
@@ -561,19 +576,32 @@ export const generateFragmentFromHtml = (
const {
classRules: tagClassRules,
nestedClassRules: tagNestedRules,
+ rootRules: tagRootRules,
hasNonClassRules: tagHasNonClass,
} = classifyRules(parsedDecls);
if (
parsedDecls.length === 0 &&
tagClassRules.size === 0 &&
- tagNestedRules.size === 0
+ tagNestedRules.size === 0 &&
+ tagRootRules.length === 0
) {
// Unparseable CSS — keep original
styleTagActions.push({ type: "keep-original" });
- } else if (tagClassRules.size === 0 && tagNestedRules.size === 0) {
- // Only non-class rules — keep original
+ } else if (
+ tagClassRules.size === 0 &&
+ tagNestedRules.size === 0 &&
+ tagRootRules.length === 0
+ ) {
+ // Only non-class, non-root element rules — keep original HtmlEmbed
styleTagActions.push({ type: "keep-original" });
+ } else if (
+ tagClassRules.size === 0 &&
+ tagNestedRules.size === 0 &&
+ !tagHasNonClass
+ ) {
+ // Only :root rules — extracted to ROOT_INSTANCE_ID, skip HtmlEmbed
+ styleTagActions.push({ type: "skip" });
} else if (!tagHasNonClass) {
// Only class rules — also check for unsupported media like @media print
const leftover = buildLeftoverCss(text);
@@ -1030,6 +1058,25 @@ export const generateFragmentFromHtml = (
}
}
+ // Inject :root styles as a local style source on ROOT_INSTANCE_ID
+ if (rootRules.length > 0) {
+ const rootStyleSourceId = getNewId();
+ styleSources.push({ type: "local", id: rootStyleSourceId });
+ styleSourceSelections.push({
+ instanceId: ROOT_INSTANCE_ID,
+ values: [rootStyleSourceId],
+ });
+ for (const decl of rootRules) {
+ styles.push({
+ styleSourceId: rootStyleSourceId,
+ breakpointId: getBaseBreakpointId(),
+ property: camelCaseProperty(decl.property),
+ value: decl.value,
+ ...(decl.state ? { state: decl.state } : {}),
+ });
+ }
+ }
+
// Create style source selections for instances that use tokens
const selectionsByInstance = new Map(
styleSourceSelections.map((sel) => [sel.instanceId, sel])
@@ -1041,7 +1088,7 @@ export const generateFragmentFromHtml = (
if (tokenIds.length > 0) {
const existingSelection = selectionsByInstance.get(instanceId);
if (existingSelection) {
- existingSelection.values.push(...tokenIds);
+ existingSelection.values = [...tokenIds, ...existingSelection.values];
} else {
const newSelection: StyleSourceSelection = {
instanceId,
diff --git a/apps/builder/app/shared/tailwind/tailwind.test.tsx b/apps/builder/app/shared/tailwind/tailwind.test.tsx
index 4e5b6aea85..4bab3270a9 100644
--- a/apps/builder/app/shared/tailwind/tailwind.test.tsx
+++ b/apps/builder/app/shared/tailwind/tailwind.test.tsx
@@ -2,6 +2,45 @@ import { describe, expect, test } from "vitest";
import { css, renderTemplate, ws } from "@webstudio-is/template";
import { generateFragmentFromTailwind } from "./tailwind";
+const getBaseStyleValue = (
+ fragment: Awaited<ReturnType<typeof generateFragmentFromTailwind>>,
+ property: string
+) => {
+ return fragment.styles.find(
+ (style) => style.breakpointId === "base" && style.property === property
+ )?.value;
+};
+
+const hasStyleValue = (
+ fragment: Awaited<ReturnType<typeof generateFragmentFromTailwind>>,
+ property: string,
+ predicate: (value: unknown) => boolean,
+ options: { breakpointId?: string; state?: string } = {}
+) => {
+ const breakpointId = options.breakpointId ?? "base";
+ return fragment.styles.some(
+ (style) =>
+ style.breakpointId === breakpointId &&
+ style.property === property &&
+ style.state === options.state &&
+ predicate(style.value)
+ );
+};
+
+const getStyleValue = (
+ fragment: Awaited<ReturnType<typeof generateFragmentFromTailwind>>,
+ property: string,
+ options: { breakpointId?: string; state?: string } = {}
+) => {
+ const breakpointId = options.breakpointId ?? "base";
+ return fragment.styles.find(
+ (style) =>
+ style.breakpointId === breakpointId &&
+ style.property === property &&
+ style.state === options.state
+ )?.value;
+};
+
test("extract local styles from tailwind classes", async () => {
expect(
await generateFragmentFromTailwind(
@@ -32,23 +71,25 @@ test("extract local styles from tailwind classes", async () => {
});
test("ignore dark mode", async () => {
- expect(
- await generateFragmentFromTailwind(
- renderTemplate(
- <ws.element ws:tag="div" class="bg-white dark:bg-gray-800"></ws.element>
- )
- )
- ).toEqual(
+ const fragment = await generateFragmentFromTailwind(
renderTemplate(
- <ws.element
- ws:tag="div"
- ws:style={css`
- --tw-bg-opacity: 1;
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
- `}
- ></ws.element>
+ <ws.element ws:tag="div" class="bg-white dark:bg-gray-800"></ws.element>
)
);
+
+ expect(fragment.breakpoints).toEqual([{ id: "base", label: "" }]);
+ expect(getStyleValue(fragment, "backgroundColor")).toEqual(
+ expect.objectContaining({
+ type: "color",
+ colorSpace: "srgb",
+ components: [1, 1, 1],
+ })
+ );
+ expect(
+ hasStyleValue(fragment, "backgroundColor", (value) => value !== undefined, {
+ state: ":hover",
+ })
+ ).toBe(false);
});
test("ignore empty class", async () => {
@@ -99,55 +140,122 @@ test("generate border", async () => {
});
test("override border opacity", async () => {
- expect(
- await generateFragmentFromTailwind(
- renderTemplate(
- <ws.element
- ws:tag="div"
- class="border border-gray-200 border-opacity-60"
- ></ws.element>
- )
+ const fragment = await generateFragmentFromTailwind(
+ renderTemplate(
+ <ws.element
+ ws:tag="div"
+ class="border border-gray-200 border-opacity-60"
+ ></ws.element>
)
- ).toEqual(
+ );
+
+ expect(getBaseStyleValue(fragment, "borderTopStyle")).toEqual(
+ expect.objectContaining({ type: "keyword", value: "solid" })
+ );
+ expect(getBaseStyleValue(fragment, "borderTopWidth")).toEqual(
+ expect.objectContaining({ type: "unit", unit: "px", value: 1 })
+ );
+ expect(getBaseStyleValue(fragment, "borderTopColor")).toEqual(
+ expect.objectContaining({ type: "color", alpha: 0.6 })
+ );
+});
+
+test("keep css variable shorthand border color", async () => {
+ const fragment = await generateFragmentFromTailwind(
+ renderTemplate(
+ <ws.element
+ ws:tag="div"
+ class="p-8 border border-(--border-color)"
+ ></ws.element>
+ )
+ );
+
+ expect(fragment.props.some((prop) => prop.name === "class")).toBe(false);
+ expect(getBaseStyleValue(fragment, "borderTopStyle")).toEqual(
+ expect.objectContaining({ type: "keyword", value: "solid" })
+ );
+ expect(getBaseStyleValue(fragment, "borderTopWidth")).toEqual(
+ expect.objectContaining({ type: "unit", unit: "px", value: 1 })
+ );
+ expect(getBaseStyleValue(fragment, "borderTopColor")).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+});
+
+test("keep inline border-color var override", async () => {
+ const fragment = await generateFragmentFromTailwind(
renderTemplate(
<ws.element
ws:tag="div"
+ class="p-8 border"
ws:style={css`
- border-style: solid;
- border-color: rgb(229 231 235 / var(--tw-border-opacity));
- border-width: 1px;
- --tw-border-opacity: 0.6;
+ border-color: var(--border-color);
`}
></ws.element>
)
);
+
+ expect(getBaseStyleValue(fragment, "borderTopColor")).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
});
-test("generate shadow", async () => {
- expect(
- await generateFragmentFromTailwind(
- renderTemplate(<ws.element ws:tag="div" class="shadow"></ws.element>)
+test("keep typed literal border color utility", async () => {
+ const fragment = await generateFragmentFromTailwind(
+ renderTemplate(
+ <ws.element
+ ws:tag="div"
+ class="p-8 border border-[color:#000]"
+ ></ws.element>
)
- ).toEqual(
+ );
+
+ expect(getBaseStyleValue(fragment, "borderTopColor")).toEqual(
+ expect.objectContaining({ type: "color" })
+ );
+});
+
+test("keep inline border shorthand var color override", async () => {
+ const fragment = await generateFragmentFromTailwind(
renderTemplate(
<ws.element
ws:tag="div"
+ class="p-8 border"
ws:style={css`
- --tw-ring-offset-shadow: 0 0 rgb(0 0 0 / 0);
- --tw-ring-shadow: 0 0 rgb(0 0 0 / 0);
- --tw-shadow-inset: ;
- --tw-shadow:
- var(--tw-shadow-inset) 0 1px 3px 0
- var(--tw-shadow-color, rgb(0 0 0 / 0.1)),
- var(--tw-shadow-inset) 0 1px 2px -1px
- var(--tw-shadow-color, rgb(0 0 0 / 0.1));
- box-shadow:
- var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
- var(--tw-shadow);
+ border: 1px solid var(--border-color);
`}
></ws.element>
)
);
+
+ expect(getBaseStyleValue(fragment, "borderTopColor")).toEqual(
+ expect.objectContaining({ type: "var", value: "border-color" })
+ );
+});
+
+test("generate shadow", async () => {
+ const fragment = await generateFragmentFromTailwind(
+ renderTemplate(<ws.element ws:tag="div" class="shadow"></ws.element>)
+ );
+
+ expect(getStyleValue(fragment, "--tw-shadow")).toEqual(
+ expect.objectContaining({
+ type: "unparsed",
+ value: expect.stringContaining("0 1px 3px 0"),
+ })
+ );
+ expect(getStyleValue(fragment, "boxShadow")).toEqual(
+ expect.objectContaining({
+ type: "layers",
+ value: expect.arrayContaining([
+ expect.objectContaining({
+ type: "var",
+ value: "tw-ring-offset-shadow",
+ }),
+ expect.objectContaining({ type: "var", value: "tw-ring-shadow" }),
+ ]),
+ })
+ );
});
test("preserve or override existing local styles", async () => {
@@ -279,30 +387,24 @@ test("preflight does not overwrite h1 inline styles", async () => {
});
test("extract states from tailwind classes", async () => {
- expect(
- await generateFragmentFromTailwind(
- renderTemplate(
- <ws.element
- ws:tag="div"
- class="bg-indigo-600 hover:bg-indigo-500"
- ></ws.element>
- )
- )
- ).toEqual(
+ const fragment = await generateFragmentFromTailwind(
renderTemplate(
<ws.element
ws:tag="div"
- ws:style={css`
- --tw-bg-opacity: 1;
- background-color: rgb(79 70 229 / var(--tw-bg-opacity));
- &:hover {
- --tw-bg-opacity: 1;
- background-color: rgb(99 102 241 / var(--tw-bg-opacity));
- }
- `}
+ class="bg-indigo-600 hover:bg-indigo-500"
></ws.element>
)
);
+
+ expect(getStyleValue(fragment, "backgroundColor")).toEqual(
+ expect.objectContaining({ type: "color", colorSpace: "oklch" })
+ );
+ expect(
+ getStyleValue(fragment, "backgroundColor", { state: ":hover" })
+ ).toEqual(expect.objectContaining({ type: "color", colorSpace: "oklch" }));
+ expect(getStyleValue(fragment, "backgroundColor")).not.toEqual(
+ getStyleValue(fragment, "backgroundColor", { state: ":hover" })
+ );
});
describe("extract breakpoints", () => {
@@ -824,39 +926,62 @@ test("generate space without display property", async () => {
});
test("generate space with display property", async () => {
- expect(
- await generateFragmentFromTailwind(
- renderTemplate(
- <>
- <ws.element ws:tag="div" class="flex space-x-4"></ws.element>
- <ws.element
- ws:tag="div"
- class="hidden md:flex space-y-4"
- ></ws.element>
- </>
- )
- )
- ).toEqual(
+ const fragment = await generateFragmentFromTailwind(
renderTemplate(
<>
- <ws.element
- ws:tag="div"
- ws:style={css`
- display: flex;
- column-gap: 1rem;
- `}
- ></ws.element>
- <ws.element
- ws:tag="div"
- ws:style={css`
- @media (max-width: 767px) {
- display: none;
- }
- display: flex;
- row-gap: 1rem;
- `}
- ></ws.element>
+ <ws.element ws:tag="div" class="flex space-x-4"></ws.element>
+ <ws.element ws:tag="div" class="hidden md:flex space-y-4"></ws.element>
</>
)
);
+
+ const firstStyleSourceId = fragment.styleSourceSelections
+ .find((selection) => selection.instanceId === "0")
+ ?.values.at(-1);
+ const secondStyleSourceId = fragment.styleSourceSelections
+ .find((selection) => selection.instanceId === "1")
+ ?.values.at(-1);
+
+ expect(
+ fragment.styles.some(
+ (style) =>
+ style.styleSourceId === firstStyleSourceId &&
+ style.breakpointId === "base" &&
+ style.property === "display" &&
+ (style.value as { value?: string }).value === "flex"
+ )
+ ).toBe(true);
+ expect(
+ fragment.styles.some(
+ (style) =>
+ style.styleSourceId === firstStyleSourceId &&
+ style.breakpointId === "base" &&
+ style.property === "columnGap"
+ )
+ ).toBe(true);
+ expect(
+ fragment.styles.some(
+ (style) =>
+ style.styleSourceId === secondStyleSourceId &&
+ style.breakpointId === "base" &&
+ style.property === "display" &&
+ (style.value as { value?: string }).value === "flex"
+ )
+ ).toBe(true);
+ expect(
+ fragment.styles.some(
+ (style) =>
+ style.styleSourceId === secondStyleSourceId &&
+ style.property === "rowGap"
+ )
+ ).toBe(true);
+ expect(
+ fragment.styles.some(
+ (style) =>
+ style.styleSourceId === secondStyleSourceId &&
+ style.property === "display" &&
+ (style.value as { value?: string }).value === "none" &&
+ style.breakpointId !== "base"
+ )
+ ).toBe(true);
});
diff --git a/apps/builder/app/shared/tailwind/tailwind.ts b/apps/builder/app/shared/tailwind/tailwind.ts
index c5e3b7caf9..a6af940a37 100644
--- a/apps/builder/app/shared/tailwind/tailwind.ts
+++ b/apps/builder/app/shared/tailwind/tailwind.ts
@@ -1,6 +1,5 @@
import { createGenerator } from "@unocss/core";
-import { presetLegacyCompat } from "@unocss/preset-legacy-compat";
-import { presetWind3 } from "@unocss/preset-wind3";
+import { presetWind4 } from "@unocss/preset-wind4";
import {
camelCaseProperty,
extractCssCustomProperties,
@@ -195,18 +194,171 @@ const adaptBreakpoints = (
const createUnoGenerator = async () => {
return await createGenerator({
presets: [
- presetWind3({
+ presetWind4({
// css variables are defined on the same element as styleDecl
- preflight: "on-demand",
+ preflights: { theme: "on-demand", reset: false, property: false },
// dark mode will be ignored by parser
dark: "media",
}),
- // until we support oklch natively
- presetLegacyCompat({ legacyColorSpace: true }),
],
});
};
+const percentToNumber = (value: string) => {
+ const trimmed = value.trim();
+ if (trimmed.endsWith("%") === false) {
+ return trimmed;
+ }
+ const parsed = Number.parseFloat(trimmed.slice(0, -1));
+ if (Number.isNaN(parsed)) {
+ return trimmed;
+ }
+ return (parsed / 100).toString();
+};
+
+const appendAlphaToOklch = (oklch: string, alpha: string) => {
+ const match = oklch.match(/^oklch\((.*)\)$/i);
+ if (match === null) {
+ return oklch;
+ }
+ return `oklch(${match[1]} / ${alpha})`;
+};
+
+const hexToRgb = (hex: string) => {
+ const normalized =
+ hex.length === 4
+ ? `#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`
+ : hex;
+ const r = Number.parseInt(normalized.slice(1, 3), 16);
+ const g = Number.parseInt(normalized.slice(3, 5), 16);
+ const b = Number.parseInt(normalized.slice(5, 7), 16);
+ return `${r} ${g} ${b}`;
+};
+
+const normalizeWind4Css = (css: string, finalVars: Map<string, string>) => {
+ // Wind4 emits rem media queries (e.g. 40rem). Convert to px so existing
+ // breakpoint mapping code can keep working unchanged.
+ let normalized = css.replace(
+ /(min|max)-width:\s*(-?\d*\.?\d+)rem/g,
+ (_match, range, rem) => {
+ const px = Number.parseFloat(rem) * 16;
+ return `${range}-width: ${px}px`;
+ }
+ );
+
+ normalized = normalized.replace(
+ /(min|max)-width:\s*calc\((-?\d*\.?\d+)rem\s*-\s*0\.1px\)/g,
+ (_match, range, rem) => {
+ const px = Number.parseFloat(rem) * 16 - 0.1;
+ return `${range}-width: ${px}px`;
+ }
+ );
+
+ // Inline tracked theme variables so parseCss can resolve computed values
+ // like calc(var(--spacing) * 2) and var(--text-sm-fontSize).
+ for (const [name, value] of finalVars.entries()) {
+ normalized = normalized
+ .replaceAll(`var(${name})`, value)
+ .replaceAll(`var(${name},`, `var(${value},`);
+ }
+
+ // Wind4 uses a leading utility var fallback for typography.
+ normalized = normalized.replace(
+ /var\(--tw-leading,\s*([^\)]+)\)/g,
+ (_match, fallback) => fallback.trim()
+ );
+
+ // Resolve wind4's color-mix based opacity pipeline into concrete colors that
+ // parseCss can read as typed color values.
+ normalized = normalized.replace(
+ /color-mix\(in\s+(?:srgb|oklab),\s*var\((--colors-[\w-]+)\)\s+([^,]+),\s*transparent\)/g,
+ (_match, colorVar: string, opacityExpr: string) => {
+ const color = finalVars.get(colorVar);
+ if (color === undefined) {
+ return _match;
+ }
+
+ const trimmedOpacityExpr = opacityExpr.trim();
+ let alpha = trimmedOpacityExpr;
+ const varMatch = trimmedOpacityExpr.match(/^var\((--[\w-]+)\)$/);
+ if (varMatch) {
+ alpha = finalVars.get(varMatch[1]) ?? "1";
+ }
+ alpha = percentToNumber(alpha);
+
+ if (alpha === "1") {
+ return color;
+ }
+ if (color.startsWith("oklch(")) {
+ return appendAlphaToOklch(color, alpha);
+ }
+ if (color.startsWith("#")) {
+ return `rgb(from ${color} r g b / ${alpha})`;
+ }
+ return _match;
+ }
+ );
+
+ // After variable inlining, remaining color-mix declarations may already have
+ // concrete colors as the first argument (e.g. #fff or oklch(...)).
+ normalized = normalized.replace(
+ /color-mix\(in\s+(?:srgb|oklab),\s*(oklch\([^\)]+\)|#[0-9a-fA-F]{3,8})\s+([^,]+),\s*transparent\)/g,
+ (_match, color: string, opacityExpr: string) => {
+ const alpha = percentToNumber(opacityExpr.trim());
+ if (alpha === "1") {
+ return color;
+ }
+ if (color.startsWith("oklch(")) {
+ return appendAlphaToOklch(color, alpha);
+ }
+ if (color.startsWith("#")) {
+ return `rgb(from ${color} r g b / ${alpha})`;
+ }
+ return _match;
+ }
+ );
+
+ normalized = normalized.replace(
+ /rgb\(from\s+(#[0-9a-fA-F]{3,8})\s+r\s+g\s+b\s*\/\s*([^\)]+)\)/g,
+ (_match, hex: string, alpha: string) => {
+ const rgb = hexToRgb(hex);
+ return `rgb(${rgb} / ${alpha.trim()})`;
+ }
+ );
+
+ return normalized;
+};
+
+const isTailwindDefaultBorderColorStyle = (styleDecl: StyleDecl): boolean => {
+ if (
+ styleDecl.property.startsWith("border-") === false ||
+ styleDecl.property.endsWith("-color") === false
+ ) {
+ return false;
+ }
+
+ const value = styleDecl.value as {
+ type?: string;
+ alpha?: number;
+ components?: number[];
+ };
+ if (
+ value?.type !== "color" ||
+ value.alpha !== 1 ||
+ Array.isArray(value.components) === false ||
+ value.components.length < 3
+ ) {
+ return false;
+ }
+
+ const [r, g, b] = value.components;
+ return (
+ Math.abs(r - 229 / 255) < 0.001 &&
+ Math.abs(g - 231 / 255) < 0.001 &&
+ Math.abs(b - 235 / 255) < 0.001
+ );
+};
+
const parseTailwindClasses = async (
classes: string,
userBreakpoints: Breakpoint[],
@@ -222,6 +374,13 @@ const parseTailwindClasses = async (
classes = classes
.split(" ")
.map((item) => {
+ // Tailwind v4 css variable shorthand: border-(--x)
+ // UnoCSS doesn't parse this alias directly, so normalize it to
+ // an explicit arbitrary property utility it understands.
+ if (/^border-\(--[\w-]+\)$/.test(item)) {
+ const varName = item.slice("border-(".length, -1);
+ return `[border-color:var(${varName})]`;
+ }
// styles data cannot express space-x and space-y selectors
// with lobotomized owl so replace with gaps
if (item.includes("space-x-")) {
@@ -246,9 +405,9 @@ const parseTailwindClasses = async (
// two-pass pre-collection to see the correct final value regardless of which
// rule a shorthand (e.g. border-color) lives in.
const finalVars = extractCssCustomProperties(css);
- let normalizedCss = css;
+ let normalizedCss = normalizeWind4Css(css, finalVars);
if (finalVars.size > 0) {
- normalizedCss = css.replace(/--[\w-]+\s*:[^;{}\n]*/g, (match) => {
+ normalizedCss = normalizedCss.replace(/--[\w-]+\s*:[^;{}\n]*/g, (match) => {
const colonIdx = match.indexOf(":");
const propName = match.slice(0, colonIdx).trim();
const finalValue = finalVars.get(propName);
@@ -268,9 +427,79 @@ const parseTailwindClasses = async (
parsedStyles.push(...parseCss(reset, new Map()).styles);
}
parsedStyles.push(...parseCss(normalizedCss, finalVars).styles);
+ parsedStyles = parsedStyles.map((styleDecl) => {
+ const value = styleDecl.value as {
+ type?: string;
+ unit?: string;
+ value?: number | string;
+ fallback?: { type?: string; value?: string };
+ };
+
+ const isOpacityProperty =
+ styleDecl.property === "opacity" ||
+ styleDecl.property.endsWith("opacity");
+ if (
+ isOpacityProperty &&
+ value.type === "unit" &&
+ value.unit === "%" &&
+ typeof value.value === "number"
+ ) {
+ return {
+ ...styleDecl,
+ value: {
+ type: "unit" as const,
+ unit: "number" as const,
+ value: value.value / 100,
+ },
+ };
+ }
+
+ if (value.type === "unparsed" && typeof value.value === "string") {
+ const calcMatch = value.value.match(
+ /^calc\((-?\d*\.?\d+)rem\*(-?\d*\.?\d+)\)$/
+ );
+ if (calcMatch) {
+ return {
+ ...styleDecl,
+ value: {
+ type: "unit",
+ unit: "rem",
+ value:
+ Number.parseFloat(calcMatch[1]) * Number.parseFloat(calcMatch[2]),
+ },
+ };
+ }
+ }
+
+ if (
+ value.type === "var" &&
+ value.value === "tw-leading" &&
+ value.fallback?.type === "unparsed" &&
+ typeof value.fallback.value === "string"
+ ) {
+ const fallbackMatch = value.fallback.value.match(/^(-?\d*\.?\d+)rem$/);
+ if (fallbackMatch) {
+ return {
+ ...styleDecl,
+ value: {
+ type: "unit",
+ unit: "rem",
+ value: Number.parseFloat(fallbackMatch[1]),
+ },
+ };
+ }
+ }
+
+ return styleDecl;
+ });
// skip preflights with ::before, ::after and ::backdrop
parsedStyles = parsedStyles.filter(
- (styleDecl) => !styleDecl.state?.startsWith("::")
+ (styleDecl) =>
+ !styleDecl.state?.startsWith("::") &&
+ // Wind4 emits design-token variables in the theme layer. We inline them
+ // into declarations above, so they don't need to be persisted as styles.
+ (styleDecl.property.startsWith("--") === false ||
+ styleDecl.property.startsWith("--tw-"))
);
// setup base breakpoint for container class to avoid hole in ranges
if (hasContainer) {
@@ -454,7 +683,32 @@ export const generateFragmentFromTailwind = async (
fragment.breakpoints
);
if (parsedStyles.length > 0) {
- createOrMergeLocalStyles(prop.instanceId, parsedStyles);
+ const localStyleSource = getLocalStyleSource(prop.instanceId);
+ const filteredStyles = parsedStyles.filter((parsedStyleDecl) => {
+ if (
+ localStyleSource === undefined ||
+ isTailwindDefaultBorderColorStyle(parsedStyleDecl) === false
+ ) {
+ return true;
+ }
+
+ const breakpointId = getBreakpointId(parsedStyleDecl.breakpoint);
+ if (breakpointId === undefined) {
+ return true;
+ }
+
+ const existingStyleKey = getStyleDeclKey({
+ breakpointId,
+ styleSourceId: localStyleSource.id,
+ state: parsedStyleDecl.state,
+ property: camelCaseProperty(parsedStyleDecl.property),
+ });
+
+ // Keep authored inline border colors if present.
+ return styles.has(existingStyleKey) === false;
+ });
+
+ createOrMergeLocalStyles(prop.instanceId, filteredStyles);
if (newClasses.length > 0) {
props.push({ ...prop, value: newClasses });
}
diff --git a/apps/builder/package.json b/apps/builder/package.json
index 8ecd9b352c..7f4ea59c1c 100644
--- a/apps/builder/package.json
+++ b/apps/builder/package.json
@@ -55,9 +55,7 @@
"@trpc/client": "^10.45.2",
"@trpc/server": "^10.45.2",
"@tsndr/cloudflare-worker-jwt": "^2.5.3",
- "@unocss/core": "66.1.2",
- "@unocss/preset-legacy-compat": "66.1.2",
- "@unocss/preset-wind3": "66.1.2",
+ "@unocss/core": "66.6.8",
"@vercel/remix": "2.15.3",
"@webstudio-is/asset-uploader": "workspace:*",
"@webstudio-is/authorization-token": "workspace:*",
@@ -72,6 +70,7 @@
"@webstudio-is/http-client": "workspace:*",
"@webstudio-is/icons": "workspace:*",
"@webstudio-is/image": "workspace:*",
+ "@webstudio-is/plans": "workspace:*",
"@webstudio-is/postgrest": "workspace:*",
"@webstudio-is/project": "workspace:*",
"@webstudio-is/project-build": "workspace:*",
@@ -82,7 +81,6 @@
"@webstudio-is/sdk-components-react-radix": "workspace:*",
"@webstudio-is/template": "workspace:*",
"@webstudio-is/trpc-interface": "workspace:*",
- "@webstudio-is/plans": "workspace:*",
"args-tokenizer": "^0.3.0",
"bcp-47": "^2.1.0",
"change-case": "^5.4.4",
@@ -134,12 +132,13 @@
"@types/papaparse": "^5.5.2",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
+ "@unocss/preset-wind4": "^66.6.8",
"@vitest/coverage-v8": "3.1.2",
"@webstudio-is/tsconfig": "workspace:*",
- "msw": "^2.13.2",
"css.escape": "^1.5.1",
"fast-glob": "^3.3.2",
"html-tags": "^4.0.0",
+ "msw": "^2.13.2",
"react-router-dom": "^6.30.0",
"react-test-renderer": "18.3.0-canary-14898b6a9-20240318",
"type-fest": "^4.37.0",
diff --git a/packages/css-data/bin/mdn-data.ts b/packages/css-data/bin/mdn-data.ts
index e35a005a72..460238c861 100755
--- a/packages/css-data/bin/mdn-data.ts
+++ b/packages/css-data/bin/mdn-data.ts
@@ -18,6 +18,7 @@ import type {
} from "@webstudio-is/css-engine";
import * as customData from "../src/custom-data";
import { camelCaseProperty } from "../src/parse-css";
+import { supportedExperimentalPropertySet } from "./property-filter";
const units: Record<string, Array<string>> = {
number: [],
@@ -234,11 +235,15 @@ const writeToFile = (fileName: string, constant: string, data: unknown) => {
writeFileSync(join(targetDir, fileName), content, "utf8");
};
-const supportedExperimentalProperties = [
- "field-sizing",
- "text-size-adjust",
- "-webkit-tap-highlight-color",
- "-webkit-overflow-scrolling",
+// Most shorthands are identifiable in MDN data because their `initial` value
+// is an array of subproperties. These additional shorthands still expand into
+// multiple longhands, but MDN models them with a scalar initial value like
+// `normal`, so we need to include them explicitly.
+const additionalShorthandProperties = [
+ "font-synthesis",
+ "font-variant",
+ "text-wrap",
+ "white-space",
];
// Properties we don't support in this form.
@@ -249,11 +254,7 @@ const unsupportedProperties = [
"-webkit-text-stroke-width",
// shorthand properties
"all",
- "font-synthesis",
- "font-variant",
"overflow",
- "white-space",
- "text-wrap",
"background-position",
"border-block-style",
"border-block-width",
@@ -283,7 +284,7 @@ const filterData = () => {
config.status === "standard" && "mdn_url" in config;
const isSupportedExperimentalProperty =
- supportedExperimentalProperties.includes(property);
+ supportedExperimentalPropertySet.has(property);
if (
isStandardProperty === false &&
@@ -297,7 +298,9 @@ const filterData = () => {
config.animationType !== "discrete" &&
config.animationType !== "notAnimatable";
- const isShorthandProperty = Array.isArray(config.initial);
+ const isShorthandProperty =
+ Array.isArray(config.initial) ||
+ additionalShorthandProperties.includes(property);
if (isShorthandProperty) {
allShorthands[property] = config;
diff --git a/packages/css-data/bin/property-filter.ts b/packages/css-data/bin/property-filter.ts
new file mode 100644
index 0000000000..f1fec0c57e
--- /dev/null
+++ b/packages/css-data/bin/property-filter.ts
@@ -0,0 +1,13 @@
+// Only a small subset of non-standard MDN properties are intentionally
+// included in generated CSS data. Keeping this explicit avoids silently
+// widening support whenever MDN adds or reshapes experimental entries.
+export const supportedExperimentalProperties = [
+ "field-sizing",
+ "text-size-adjust",
+ "-webkit-tap-highlight-color",
+ "-webkit-overflow-scrolling",
+] as const;
+
+export const supportedExperimentalPropertySet = new Set<string>(
+ supportedExperimentalProperties
+);
diff --git a/packages/css-data/bin/property-var-test-fixtures.ts b/packages/css-data/bin/property-var-test-fixtures.ts
new file mode 100644
index 0000000000..c44e62814b
--- /dev/null
+++ b/packages/css-data/bin/property-var-test-fixtures.ts
@@ -0,0 +1,808 @@
+/**
+ * Generates src/__generated__/property-var-test-fixtures.ts
+ *
+ * The fixture is sourced directly from MDN property grammar so both longhands
+ * and shorthands share one generated matrix. For each property we synthesize
+ * canonical value patterns, replace every known slot position with `var()`,
+ * and also emit an all-slots case where every slot becomes its own variable.
+ *
+ * Run with: pnpm build:property-var-fixtures
+ */
+
+import { mkdirSync, writeFileSync } from "node:fs";
+import { dirname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+import properties from "mdn-data/css/properties.json";
+import syntaxes from "mdn-data/css/syntaxes.json";
+import { definitionSyntax, generate, parse } from "css-tree";
+import { supportedExperimentalPropertySet } from "./property-filter";
+
+type DSNode =
+ | { type: "Keyword"; name: string }
+ | { type: "String" }
+ | { type: "AtKeyword"; name: string }
+ | { type: "Token"; value: string }
+ | { type: "Comma" }
+ | { type: "Function"; name: string }
+ | { type: "Type"; name: string }
+ | { type: "Property"; name: string }
+ | {
+ type: "Multiplier";
+ term: DSNode;
+ max: number;
+ min: number;
+ comma: boolean;
+ }
+ | { type: "Group"; combinator: string; terms: DSNode[] };
+
+const __dir = dirname(fileURLToPath(import.meta.url));
+const targetDir = join(__dir, "../src/__generated__");
+
+const autogeneratedHint =
+ "// This file was generated by pnpm build:property-var-fixtures\n";
+
+const unsupportedProperties = ["--*", "all"];
+
+const typeSamples: Record<string, string> = {
+ angle: "1deg",
+ attachment: "scroll",
+ "basic-shape": "circle()",
+ color: "red",
+ "color-stop-list": "red, blue",
+ "custom-ident": "custom-ident",
+ "dashed-ident": "--custom-ident",
+ "declaration-value": "1px",
+ decibel: "1db",
+ "family-name": "serif",
+ flex: "1fr",
+ frequency: "1hz",
+ "generic-family": "serif",
+ gradient: "linear-gradient(red, blue)",
+ ident: "custom-ident",
+ image: "url(hero.png)",
+ integer: "1",
+ length: "1px",
+ "length-percentage": "1px",
+ "line-style": "solid",
+ "line-width": "1px",
+ number: "1",
+ percentage: "10%",
+ position: "center",
+ "ratio-token": "1/1",
+ "repeat-style": "no-repeat",
+ resolution: "1dpi",
+ semitones: "1st",
+ shadow: "0 0 1px red",
+ string: '"x"',
+ time: "1s",
+ transform: "translateX(1px)",
+ "transform-function": "translateX(1px)",
+ "transform-list": "translateX(1px)",
+ url: "url(hero.png)",
+ x: "1",
+ y: "1",
+};
+
+const propertyOverrides: Record<string, string[]> = {};
+
+const propertyPatternOverrides: Record<string, GrammarPattern[]> = {
+ font: [
+ {
+ complexity: 1,
+ parts: [
+ { kind: "slot", label: "font-style", text: "italic" },
+ { kind: "text", text: " " },
+ { kind: "slot", label: "font-weight", text: "700" },
+ { kind: "text", text: " " },
+ { kind: "slot", label: "font-size", text: "16px" },
+ { kind: "text", text: "/" },
+ { kind: "slot", label: "line-height", text: "1.5" },
+ { kind: "text", text: " " },
+ { kind: "slot", label: "font-family", text: "serif" },
+ ],
+ },
+ ],
+ "grid-template": [
+ {
+ complexity: 1,
+ parts: [
+ { kind: "slot", label: "grid-template-rows", text: "1px" },
+ { kind: "text", text: " / " },
+ { kind: "slot", label: "grid-template-columns", text: "1fr" },
+ ],
+ },
+ {
+ complexity: 2,
+ parts: [
+ { kind: "slot", label: "grid-template-areas", text: '"a"' },
+ { kind: "text", text: " " },
+ { kind: "slot", label: "grid-template-row-size", text: "1px" },
+ { kind: "text", text: " / " },
+ { kind: "slot", label: "grid-template-explicit-columns", text: "1fr" },
+ ],
+ },
+ ],
+ "list-style": [
+ {
+ complexity: 1,
+ parts: [
+ { kind: "slot", label: "list-style-type", text: "disc" },
+ { kind: "text", text: " " },
+ { kind: "slot", label: "list-style-position", text: "inside" },
+ { kind: "text", text: " " },
+ { kind: "slot", label: "list-style-image", text: "url(hero.png)" },
+ ],
+ },
+ ],
+};
+
+interface PropertyConfig {
+ inherited: boolean;
+ initial: string | string[];
+ mdn_url?: string;
+ status?: string;
+ syntax: string;
+}
+
+interface SyntaxConfig {
+ syntax: string;
+}
+
+interface GrammarPart {
+ kind: "slot" | "text";
+ label?: string;
+ text: string;
+}
+
+interface GrammarPattern {
+ complexity: number;
+ parts: GrammarPart[];
+}
+
+interface PropertyVarCase {
+ id: string;
+ positions: string[];
+ value: string;
+ variables: Record<string, string>;
+}
+
+interface PropertyVarFixture {
+ cases: PropertyVarCase[];
+ kind: "longhand" | "shorthand";
+ property: string;
+ syntax: string;
+ unsupportedReason?: string;
+}
+
+const propertyData = properties as Record<string, PropertyConfig>;
+const syntaxData = syntaxes as Record<string, SyntaxConfig>;
+
+const getFilteredProperties = () => {
+ const filtered: Array<{
+ kind: "longhand" | "shorthand";
+ property: string;
+ syntax: string;
+ }> = [];
+
+ for (const [property, config] of Object.entries(propertyData)) {
+ if (unsupportedProperties.includes(property)) {
+ continue;
+ }
+
+ const isStandardProperty =
+ config.status === "standard" && "mdn_url" in config;
+ const isSupportedExperimentalProperty =
+ supportedExperimentalPropertySet.has(property);
+
+ if (
+ isStandardProperty === false &&
+ isSupportedExperimentalProperty === false
+ ) {
+ continue;
+ }
+
+ filtered.push({
+ kind: Array.isArray(config.initial) ? "shorthand" : "longhand",
+ property,
+ syntax: config.syntax,
+ });
+ }
+
+ return filtered.sort((left, right) =>
+ left.property.localeCompare(right.property)
+ );
+};
+
+const normalizeCssValue = (value: string) => {
+ try {
+ return generate(parse(value, { context: "value" }));
+ } catch {
+ return;
+ }
+};
+
+const mergeTextParts = (parts: GrammarPart[]) => {
+ const merged: GrammarPart[] = [];
+
+ for (const part of parts) {
+ const previous = merged.at(-1);
+ if (part.kind === "text" && previous?.kind === "text") {
+ previous.text += part.text;
+ continue;
+ }
+ merged.push({ ...part });
+ }
+
+ return merged;
+};
+
+const serializeParts = (parts: GrammarPart[]) => {
+ return parts.map((part) => part.text).join("");
+};
+
+const trimPattern = (pattern: GrammarPattern): GrammarPattern => {
+ const parts = mergeTextParts(pattern.parts);
+ const first = parts[0];
+ const last = parts.at(-1);
+
+ if (first?.kind === "text") {
+ first.text = first.text.trimStart();
+ }
+ if (last?.kind === "text") {
+ last.text = last.text.trimEnd();
+ }
+
+ return {
+ complexity: pattern.complexity,
+ parts,
+ };
+};
+
+const leadingText = (pattern: GrammarPattern) => {
+ return pattern.parts[0]?.text ?? "";
+};
+
+const trailingText = (pattern: GrammarPattern) => {
+ return pattern.parts.at(-1)?.text ?? "";
+};
+
+const shouldInsertSpace = ({
+ left,
+ right,
+}: {
+ left: GrammarPattern;
+ right: GrammarPattern;
+}) => {
+ if (left.parts.length === 0 || right.parts.length === 0) {
+ return false;
+ }
+
+ const leftText = trailingText(left);
+ const rightText = leadingText(right);
+
+ if (leftText.endsWith("(") || leftText.endsWith("/")) {
+ return false;
+ }
+ if (rightText.startsWith(")") || rightText.startsWith(",")) {
+ return false;
+ }
+ if (rightText.startsWith("/")) {
+ return true;
+ }
+
+ return true;
+};
+
+const combinePatterns = ({
+ left,
+ right,
+}: {
+ left: GrammarPattern;
+ right: GrammarPattern;
+}): GrammarPattern => {
+ const parts = [...left.parts];
+
+ if (shouldInsertSpace({ left, right })) {
+ parts.push({ kind: "text", text: " " });
+ }
+
+ parts.push(...right.parts);
+
+ return trimPattern({
+ complexity: left.complexity + right.complexity + 1,
+ parts,
+ });
+};
+
+const takeBestPatterns = ({
+ limit,
+ patterns,
+}: {
+ limit: number;
+ patterns: GrammarPattern[];
+}) => {
+ const deduped = new Map<string, GrammarPattern>();
+
+ for (const pattern of patterns) {
+ const normalized = normalizeCssValue(serializeParts(pattern.parts));
+ if (normalized === undefined) {
+ continue;
+ }
+
+ const existing = deduped.get(normalized);
+ if (existing !== undefined && existing.complexity <= pattern.complexity) {
+ continue;
+ }
+
+ deduped.set(normalized, trimPattern(pattern));
+ }
+
+ return [...deduped.values()]
+ .sort((left, right) => left.complexity - right.complexity)
+ .slice(0, limit);
+};
+
+const literalPattern = ({
+ label,
+ text,
+}: {
+ label?: string;
+ text: string;
+}): GrammarPattern => {
+ return {
+ complexity: 1,
+ parts: [
+ label === undefined
+ ? { kind: "text", text }
+ : { kind: "slot", label, text },
+ ],
+ };
+};
+
+const repeatCount = ({ max, min }: { max: number; min: number }) => {
+ if (max === 0) {
+ if (min > 1) {
+ return min;
+ }
+ return 2;
+ }
+ if (min === max) {
+ return max;
+ }
+ return Math.max(min, max);
+};
+
+const sampleForType = (name: string) => {
+ const direct = typeSamples[name];
+ if (direct !== undefined) {
+ return direct;
+ }
+
+ if (name.endsWith("()")) {
+ const functionName = name.slice(0, -2);
+ const functionSamples: Record<string, string> = {
+ "anchor-size": "anchor-size(width, 1px)",
+ circle: "circle()",
+ "cross-fade": "cross-fade(url(hero.png), url(hero.png))",
+ element: "element(#hero)",
+ image: "image(url(hero.png))",
+ "image-set": "image-set(url(hero.png) 1x)",
+ "linear-gradient": "linear-gradient(red, blue)",
+ matrix: "matrix(1, 0, 0, 1, 0, 0)",
+ matrix3d: "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)",
+ paint: "paint(worklet)",
+ path: 'path("M0 0")',
+ perspective: "perspective(1px)",
+ rotate: "rotate(1deg)",
+ rotate3d: "rotate3d(1, 0, 0, 1deg)",
+ rotateX: "rotateX(1deg)",
+ rotateY: "rotateY(1deg)",
+ rotateZ: "rotateZ(1deg)",
+ scale: "scale(1)",
+ scale3d: "scale3d(1, 1, 1)",
+ scaleX: "scaleX(1)",
+ scaleY: "scaleY(1)",
+ scaleZ: "scaleZ(1)",
+ skew: "skew(1deg)",
+ skewX: "skewX(1deg)",
+ skewY: "skewY(1deg)",
+ translate: "translate(1px)",
+ translate3d: "translate3d(1px, 1px, 1px)",
+ translateX: "translateX(1px)",
+ translateY: "translateY(1px)",
+ translateZ: "translateZ(1px)",
+ url: "url(hero.png)",
+ };
+
+ const sample = functionSamples[functionName];
+ if (sample !== undefined) {
+ return sample;
+ }
+ }
+
+ if (name.includes("color")) {
+ return "red";
+ }
+ if (name.includes("length")) {
+ return "1px";
+ }
+ if (name.includes("percentage")) {
+ return "10%";
+ }
+ if (name.includes("time")) {
+ return "1s";
+ }
+ if (name.includes("angle")) {
+ return "1deg";
+ }
+ if (name.includes("number") || name.includes("integer")) {
+ return "1";
+ }
+ if (name.includes("family")) {
+ return "serif";
+ }
+ if (name.includes("position")) {
+ return "center";
+ }
+ if (name.includes("image") || name.includes("url")) {
+ return "url(hero.png)";
+ }
+ if (name.includes("style")) {
+ return "solid";
+ }
+ if (name.includes("width")) {
+ return "1px";
+ }
+ if (name.includes("ident")) {
+ return "custom-ident";
+ }
+
+ return;
+};
+
+const buildPatterns = ({
+ depth,
+ key,
+ node,
+ seen,
+}: {
+ depth: number;
+ key: string;
+ node: DSNode;
+ seen: Set<string>;
+}): GrammarPattern[] => {
+ if (node.type === "Keyword") {
+ return [
+ literalPattern({ label: `${key}:keyword:${node.name}`, text: node.name }),
+ ];
+ }
+
+ if (node.type === "String") {
+ return [literalPattern({ label: `${key}:string`, text: '"x"' })];
+ }
+
+ if (node.type === "AtKeyword") {
+ return [
+ literalPattern({ label: `${key}:at-keyword`, text: `@${node.name}` }),
+ ];
+ }
+
+ if (node.type === "Token") {
+ return [literalPattern({ text: node.value })];
+ }
+
+ if (node.type === "Comma") {
+ return [literalPattern({ text: "," })];
+ }
+
+ if (node.type === "Function") {
+ return [literalPattern({ text: `${node.name}(` })];
+ }
+
+ if (node.type === "Type") {
+ const typeKey = `type:${node.name}`;
+ if (seen.has(typeKey)) {
+ const sample = sampleForType(node.name);
+ if (sample === undefined) {
+ return [];
+ }
+ return [
+ literalPattern({ label: `${key}:type:${node.name}`, text: sample }),
+ ];
+ }
+
+ const nestedSyntax = syntaxData[node.name]?.syntax;
+ if (nestedSyntax !== undefined) {
+ const nextSeen = new Set(seen);
+ nextSeen.add(typeKey);
+ return buildPatterns({
+ depth: depth + 1,
+ key: `${key}:type:${node.name}`,
+ node: definitionSyntax.parse(nestedSyntax) as DSNode,
+ seen: nextSeen,
+ });
+ }
+
+ const sample = sampleForType(node.name);
+ if (sample === undefined) {
+ return [];
+ }
+ return [
+ literalPattern({ label: `${key}:type:${node.name}`, text: sample }),
+ ];
+ }
+
+ if (node.type === "Property") {
+ const propertySyntax = propertyData[node.name]?.syntax;
+ if (propertySyntax === undefined) {
+ return [];
+ }
+
+ const propertyKey = `property:${node.name}`;
+ if (seen.has(propertyKey)) {
+ const override = propertyOverrides[node.name]?.[0];
+ if (override === undefined) {
+ return [];
+ }
+ return [
+ literalPattern({
+ label: `${key}:property:${node.name}`,
+ text: override,
+ }),
+ ];
+ }
+
+ const nextSeen = new Set(seen);
+ nextSeen.add(propertyKey);
+ return buildPatterns({
+ depth: depth + 1,
+ key: `${key}:property:${node.name}`,
+ node: definitionSyntax.parse(propertySyntax) as DSNode,
+ seen: nextSeen,
+ });
+ }
+
+ if (node.type === "Multiplier") {
+ const basePatterns = buildPatterns({
+ depth: depth + 1,
+ key: `${key}:repeat`,
+ node: node.term,
+ seen,
+ });
+ if (basePatterns.length === 0) {
+ return [];
+ }
+
+ const patterns: GrammarPattern[] = [];
+ const count = repeatCount({ max: node.max, min: node.min });
+
+ for (const pattern of basePatterns) {
+ let combined = pattern;
+ for (let index = 1; index < count; index += 1) {
+ const separator = node.comma
+ ? literalPattern({ text: "," })
+ : literalPattern({ text: "" });
+ combined = combinePatterns({ left: combined, right: separator });
+ combined = combinePatterns({ left: combined, right: pattern });
+ }
+ patterns.push(combined);
+ }
+
+ return takeBestPatterns({ limit: 4, patterns });
+ }
+
+ if (node.type !== "Group") {
+ return [];
+ }
+
+ if (node.combinator === "|") {
+ const branchPatterns = node.terms.flatMap((term: DSNode, index: number) => {
+ return buildPatterns({
+ depth: depth + 1,
+ key: `${key}:branch:${index}`,
+ node: term,
+ seen,
+ });
+ });
+ return takeBestPatterns({
+ limit: depth < 2 ? 4 : 1,
+ patterns: branchPatterns,
+ });
+ }
+
+ let current: GrammarPattern[] = [{ complexity: 0, parts: [] }];
+
+ for (const [index, term] of node.terms.entries()) {
+ const termPatterns = buildPatterns({
+ depth: depth + 1,
+ key: `${key}:term:${index}`,
+ node: term,
+ seen,
+ });
+ if (termPatterns.length === 0) {
+ return [];
+ }
+
+ const combined: GrammarPattern[] = [];
+ for (const left of current) {
+ for (const right of termPatterns) {
+ if (left.parts.length === 0) {
+ combined.push(trimPattern(right));
+ continue;
+ }
+ combined.push(combinePatterns({ left, right }));
+ }
+ }
+ current = takeBestPatterns({ limit: 6, patterns: combined });
+ }
+
+ return current;
+};
+
+const buildCases = ({
+ patterns,
+ property,
+}: {
+ patterns: GrammarPattern[];
+ property: string;
+}) => {
+ const cases = new Map<string, PropertyVarCase>();
+
+ for (const [patternIndex, pattern] of patterns.entries()) {
+ const slots = pattern.parts
+ .map((part, index) => ({ index, part }))
+ .filter(({ part }) => part.kind === "slot");
+
+ if (slots.length === 0) {
+ continue;
+ }
+
+ for (const [slotOrder, slot] of slots.entries()) {
+ const variableName = `--slot-${slotOrder + 1}`;
+ const parts = pattern.parts.map((part, index) => {
+ if (index !== slot.index || part.kind !== "slot") {
+ return part;
+ }
+ return {
+ kind: "text" as const,
+ text: `var(${variableName})`,
+ };
+ });
+ const value = normalizeCssValue(serializeParts(parts));
+ if (value === undefined) {
+ continue;
+ }
+ cases.set(`${property}:${value}`, {
+ id: `pattern-${patternIndex + 1}-slot-${slotOrder + 1}`,
+ positions: [slot.part.label ?? `slot-${slotOrder + 1}`],
+ value,
+ variables: { [variableName]: slot.part.text },
+ });
+ }
+
+ if (slots.length === 1) {
+ continue;
+ }
+
+ const variables: Record<string, string> = {};
+ const parts = pattern.parts.map((part, index) => {
+ const slotOrder = slots.findIndex((slot) => slot.index === index);
+ if (slotOrder === -1 || part.kind !== "slot") {
+ return part;
+ }
+ const variableName = `--slot-${slotOrder + 1}`;
+ variables[variableName] = part.text;
+ return {
+ kind: "text" as const,
+ text: `var(${variableName})`,
+ };
+ });
+ const value = normalizeCssValue(serializeParts(parts));
+ if (value === undefined) {
+ continue;
+ }
+ cases.set(`${property}:${value}`, {
+ id: `pattern-${patternIndex + 1}-all-slots`,
+ positions: slots.map(
+ ({ part }, index) => part.label ?? `slot-${index + 1}`
+ ),
+ value,
+ variables,
+ });
+ }
+
+ return [...cases.values()].sort((left, right) =>
+ left.id.localeCompare(right.id)
+ );
+};
+
+const buildFixtures = () => {
+ return getFilteredProperties().map(({ kind, property, syntax }) => {
+ const overridePatterns = propertyOverrides[property]?.flatMap(
+ (value, index) => {
+ const normalized = normalizeCssValue(value);
+ if (normalized === undefined) {
+ return [];
+ }
+ return [
+ {
+ complexity: index + 1,
+ parts: [{ kind: "text", text: normalized }],
+ } satisfies GrammarPattern,
+ ];
+ }
+ );
+
+ const patterns =
+ propertyPatternOverrides[property] ??
+ (overridePatterns !== undefined && overridePatterns.length > 0
+ ? overridePatterns
+ : buildPatterns({
+ depth: 0,
+ key: property,
+ node: definitionSyntax.parse(syntax) as DSNode,
+ seen: new Set([`property:${property}`]),
+ }));
+
+ const cases = buildCases({ patterns, property });
+ if (cases.length > 0) {
+ return {
+ cases,
+ kind,
+ property,
+ syntax,
+ } satisfies PropertyVarFixture;
+ }
+
+ return {
+ cases: [],
+ kind,
+ property,
+ syntax,
+ unsupportedReason:
+ "No valid grammar-driven var() positions could be synthesized",
+ } satisfies PropertyVarFixture;
+ });
+};
+
+const fixtures = buildFixtures();
+
+const content =
+ autogeneratedHint +
+ `
+export interface PropertyVarCase {
+ id: string;
+ positions: string[];
+ value: string;
+ variables: Record<string, string>;
+}
+
+export interface PropertyVarFixture {
+ cases: PropertyVarCase[];
+ kind: "longhand" | "shorthand";
+ property: string;
+ syntax: string;
+ unsupportedReason?: string;
+}
+
+export const propertyVarTestFixtures: PropertyVarFixture[] = ${JSON.stringify(fixtures, null, 2)} as const;
+`;
+
+mkdirSync(targetDir, { recursive: true });
+writeFileSync(
+ join(targetDir, "property-var-test-fixtures.ts"),
+ content,
+ "utf8"
+);
+
+const caseCount = fixtures.reduce(
+ (total, fixture) => total + fixture.cases.length,
+ 0
+);
+const unsupportedCount = fixtures.filter(
+ (fixture) => fixture.cases.length === 0
+).length;
+
+console.info(
+ `Written ${fixtures.length} fixtures with ${caseCount} cases to property-var-test-fixtures.ts (${unsupportedCount} unsupported)`
+);
diff --git a/packages/css-data/bin/shorthand-test-fixtures.ts b/packages/css-data/bin/shorthand-test-fixtures.ts
deleted file mode 100644
index b0895a6b72..0000000000
--- a/packages/css-data/bin/shorthand-test-fixtures.ts
+++ /dev/null
@@ -1,252 +0,0 @@
-/**
- * Generates src/__generated__/shorthand-test-fixtures.ts
- *
- * For every shorthand in shorthandProperties we produce two test cases:
- *
- * • singleToken – a CSS value string that, when used as the shorthand's value,
- * expands so that exactly one (or more, if identical) longhand receives it.
- * This tests the "cross-rule single-token var() preservation" path.
- *
- * • multiToken – a CSS value string that spans *all* longhands of the shorthand
- * with different values per longhand, so no single longhand string equals the
- * full value. This tests the "multi-token var() preservation" path.
- *
- * Values are derived from properties.ts initial values so the fixture stays in
- * sync with the CSS spec data automatically.
- *
- * Run with: pnpm build:shorthand-fixtures
- */
-
-import { writeFileSync, mkdirSync } from "node:fs";
-import { join, dirname } from "node:path";
-import { fileURLToPath } from "node:url";
-import { generate, parse } from "css-tree";
-import { toValue } from "@webstudio-is/css-engine";
-import { shorthandProperties } from "../src/__generated__/shorthand-properties";
-import { properties } from "../src/__generated__/properties";
-import { expandShorthands } from "../src/shorthands";
-import type { CssProperty } from "@webstudio-is/css-engine";
-
-const __dir = dirname(fileURLToPath(import.meta.url));
-const targetDir = join(__dir, "../src/__generated__");
-
-const autogeneratedHint =
- "// This file was generated by pnpm build:shorthand-fixtures\n";
-
-const longhandProbeOverrides: Record<string, string[]> = {
- "-webkit-text-stroke": ["1px red", "red", "1px"],
- container: ["main / inline-size", "none", "normal"],
- "grid-area": ["1 / 2", "auto"],
- "grid-column": ["1 / 3", "auto"],
- "grid-row": ["1 / 3", "auto"],
- "grid-template": ["none / none", "none", "auto / 1fr"],
- font: ["16px serif", "bold 18px/1.5 sans-serif", "menu"],
-};
-
-const fixtureOverrides: Record<
- string,
- { singleToken: string; multiToken: string }
-> = {
- "-webkit-text-stroke": { singleToken: "red", multiToken: "1px red" },
- container: { singleToken: "none", multiToken: "main / inline-size" },
- font: {
- singleToken: "16px serif",
- multiToken: "bold 18px/1.5 sans-serif",
- },
- "grid-area": { singleToken: "auto", multiToken: "1 / 2 / 3 / 4" },
- "grid-column": { singleToken: "auto", multiToken: "1 / 3" },
- "grid-row": { singleToken: "auto", multiToken: "1 / 3" },
- "grid-template": { singleToken: "none", multiToken: "none / 1fr" },
-};
-
-// ---------------------------------------------------------------------------
-// Helpers
-// ---------------------------------------------------------------------------
-
-/** Normalise a CSS value string through css-tree so whitespace/format matches
- * what expandShorthands produces internally. */
-const normalizeCss = (value: string): string => {
- try {
- return generate(parse(value, { context: "value" }));
- } catch {
- return value;
- }
-};
-
-/** Return the initial CSS string for a longhand that exists in properties.ts,
- * or undefined if unknown. */
-const initialFor = (longhand: string): string | undefined => {
- const p = properties[longhand as keyof typeof properties];
- if (!p) {
- return undefined;
- }
- return toValue(p.initial);
-};
-
-/** Given a shorthand name, drive expandShorthands with a placeholder value to
- * get the canonical set of longhands it produces. Returns null when the
- * shorthand passes straight through (i.e. expandShorthands doesn't know it). */
-const getLonghands = (shorthand: string): string[] | null => {
- // Probe with a value that is accepted by virtually every shorthand.
- // We go through a few candidates until we get genuine expansion.
- const probes = [
- ...(longhandProbeOverrides[shorthand] ?? []),
- "none",
- "initial",
- "0",
- "auto",
- "normal",
- ];
- for (const probe of probes) {
- const expanded = [...expandShorthands([[shorthand as CssProperty, probe]])];
- // A passthrough means expandShorthands didn't handle it.
- if (expanded.length === 1 && expanded[0][0] === shorthand) {
- continue;
- }
- if (expanded.length > 0) {
- return expanded.map(([k]) => k);
- }
- }
- return null;
-};
-
-// ---------------------------------------------------------------------------
-// Build fixture entries
-// ---------------------------------------------------------------------------
-
-export type ShorthandFixture = {
- /** The shorthand property name, e.g. "margin". */
- property: string;
- /**
- * A CSS value string that maps to exactly one specific longhand initial value.
- * When used as `margin: var(--v)` with `--v: <singleToken>`, the cross-rule
- * path must:
- * • preserve var() on whichever longhands match the single value
- * • assign concrete initial resets to all other longhands
- *
- * If ALL longhands share the same initial value, singleToken equals that
- * shared value and ALL longhands get var().
- */
- singleToken: string;
- /**
- * A CSS value string that spans multiple longhands differently.
- * When used as `margin: var(--v)` with `--v: <multiToken>`, the cross-rule
- * path must assign var() to ALL longhands (because no individual longhand
- * string equals the multi-token string).
- */
- multiToken: string;
- /** All longhand properties this shorthand expands to. */
- longhands: string[];
-};
-
-const fixtures: ShorthandFixture[] = [];
-
-for (const shorthand of shorthandProperties) {
- const longhands = getLonghands(shorthand);
- if (!longhands || longhands.length === 0) {
- // expandShorthands doesn't handle this shorthand; skip so the test can
- // explicitly mark it as "passthrough" rather than silently missing it.
- fixtures.push({
- property: shorthand,
- singleToken: "",
- multiToken: "",
- longhands: [],
- });
- continue;
- }
-
- const override = fixtureOverrides[shorthand];
- if (override) {
- fixtures.push({
- property: shorthand,
- singleToken: override.singleToken,
- multiToken: override.multiToken,
- longhands,
- });
- continue;
- }
-
- // Collect normalised initial value strings for every known longhand.
- const initStrings = longhands.map((l) => {
- const raw = initialFor(l);
- return raw !== undefined ? normalizeCss(raw) : null;
- });
-
- // --- singleToken: use the initial value of the first longhand that has one.
- const singleToken =
- initStrings.find((s): s is string => s !== null) ??
- // absolute fallback – should not be reached for any supported shorthand
- "none";
-
- // --- multiToken: we need a value that, when used as the shorthand,
- // produces different strings per longhand (so no individual longhand
- // string equals the full shorthand string).
- //
- // Strategy: expand with a concrete value through expandShorthands and
- // re-join the distinct longhand values. If we can reconstruct a valid
- // shorthand value from the longhand initials via a known concrete
- // shorthand value, we use it. Otherwise we pick a value where the
- // longest longhand value is different from the shortest, making the
- // "full string ≠ any single expanded string" invariant hold.
- //
- // For properties where every longhand has the same initial (margin,
- // padding, …) we make multiToken a two-value variant so they differ.
- const allSame =
- initStrings.every((s) => s !== null) &&
- new Set(initStrings as string[]).size === 1;
-
- let multiToken: string;
- if (allSame && initStrings[0] !== null) {
- // Build a two-value form, e.g. "0px 8px" for margin.
- // The two values must be genuinely different.
- const base = initStrings[0] as string;
- // Pick an alternative that is obviously different.
- const alt =
- base === "0px"
- ? "8px"
- : base === "none"
- ? "url(#x)"
- : base === "auto"
- ? "0px"
- : "16px";
- multiToken = `${base} ${alt}`;
- } else {
- // Join all distinct non-null initial values. Even though this may not be
- // valid CSS for the shorthand, it will:
- // a) not parse as a valid shorthand via expandShorthands, OR
- // b) parse and give genuinely different per-longhand values.
- // Either way the multi-token cross-rule path kicks in correctly.
- const distinct = [
- ...new Set(initStrings.filter((s): s is string => s !== null)),
- ];
- multiToken =
- distinct.length >= 2
- ? distinct.join(" ")
- : `${distinct[0] ?? "none"} extra`;
- }
-
- fixtures.push({ property: shorthand, singleToken, multiToken, longhands });
-}
-
-// ---------------------------------------------------------------------------
-// Write output
-// ---------------------------------------------------------------------------
-
-const content =
- autogeneratedHint +
- `
-export type ShorthandFixture = {
- property: string;
- singleToken: string;
- multiToken: string;
- longhands: string[];
-};
-
-export const shorthandTestFixtures: ShorthandFixture[] = ${JSON.stringify(fixtures, null, 2)} as const;
-`;
-
-mkdirSync(targetDir, { recursive: true });
-writeFileSync(join(targetDir, "shorthand-test-fixtures.ts"), content, "utf8");
-console.info(
- `Written ${fixtures.length} fixtures to shorthand-test-fixtures.ts`
-);
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index 09909241e3..0796bb76f6 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -10,8 +10,8 @@
"build:html.css": "tsx ./bin/html.css.ts && prettier --write ./src/__generated__/html.ts",
"build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__ && prettier --write \"./src/__generated__/\" \"../css-engine/src/__generated__/\"",
"build:descriptions": "tsx ./bin/property-value-descriptions.ts && prettier --write ./src/__generated__/property-value-descriptions.ts",
- "build:shorthand-fixtures": "tsx ./bin/shorthand-test-fixtures.ts && prettier --write ./src/__generated__/shorthand-test-fixtures.ts",
- "build:all": "pnpm build:html.css && pnpm build:mdn-data && pnpm build:descriptions && pnpm build:shorthand-fixtures",
+ "build:property-var-fixtures": "tsx ./bin/property-var-test-fixtures.ts && prettier --write ./src/__generated__/property-var-test-fixtures.ts",
+ "build:all": "pnpm build:html.css && pnpm build:mdn-data && pnpm build:descriptions && pnpm build:property-var-fixtures",
"test": "vitest run"
},
"bin": {
diff --git a/packages/css-data/src/__generated__/property-var-test-fixtures.ts b/packages/css-data/src/__generated__/property-var-test-fixtures.ts
new file mode 100644
index 0000000000..8ba4c43680
--- /dev/null
+++ b/packages/css-data/src/__generated__/property-var-test-fixtures.ts
@@ -0,0 +1,19025 @@
+// This file was generated by pnpm build:property-var-fixtures
+
+export interface PropertyVarCase {
+ id: string;
+ positions: string[];
+ value: string;
+ variables: Record<string, string>;
+}
+
+export interface PropertyVarFixture {
+ cases: PropertyVarCase[];
+ kind: "longhand" | "shorthand";
+ property: string;
+ syntax: string;
+ unsupportedReason?: string;
+}
+
+export const propertyVarTestFixtures: PropertyVarFixture[] = [
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "-webkit-line-clamp:branch:1:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "-webkit-line-clamp",
+ syntax: "none | <integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["-webkit-overflow-scrolling:branch:1:keyword:touch"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "touch",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "-webkit-overflow-scrolling",
+ syntax: "auto | touch",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "-webkit-tap-highlight-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "-webkit-tap-highlight-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "-webkit-text-fill-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "-webkit-text-fill-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "-webkit-text-stroke:term:0:type:length",
+ "-webkit-text-stroke:term:1:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["-webkit-text-stroke:term:0:type:length"],
+ value: "var(--slot-1) red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "-webkit-text-stroke:term:1:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "-webkit-text-stroke",
+ syntax: "<length> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "-webkit-text-stroke-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "-webkit-text-stroke-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["-webkit-text-stroke-width:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "-webkit-text-stroke-width",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "accent-color:branch:1:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "accent-color",
+ syntax: "auto | <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "align-content:branch:2:type:content-distribution:branch:0:keyword:space-between",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "space-between",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "align-content:branch:1:type:baseline-position:term:0:repeat:branch:0:keyword:first",
+ ],
+ value: "var(--slot-1) baseline",
+ variables: {
+ "--slot-1": "first",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "align-content:branch:1:type:baseline-position:term:1:keyword:baseline",
+ ],
+ value: "first var(--slot-2)",
+ variables: {
+ "--slot-2": "baseline",
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "align-content:branch:3:term:0:repeat:type:overflow-position:branch:0:keyword:unsafe",
+ "align-content:branch:3:term:1:type:content-position:branch:0:keyword:center",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "unsafe",
+ "--slot-2": "center",
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: [
+ "align-content:branch:3:term:0:repeat:type:overflow-position:branch:0:keyword:unsafe",
+ ],
+ value: "var(--slot-1) center",
+ variables: {
+ "--slot-1": "unsafe",
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: [
+ "align-content:branch:3:term:1:type:content-position:branch:0:keyword:center",
+ ],
+ value: "unsafe var(--slot-2)",
+ variables: {
+ "--slot-2": "center",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "align-content",
+ syntax:
+ "normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["align-items:branch:4:keyword:anchor-center"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "anchor-center",
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "align-items:branch:2:type:baseline-position:term:0:repeat:branch:0:keyword:first",
+ "align-items:branch:2:type:baseline-position:term:1:keyword:baseline",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "first",
+ "--slot-2": "baseline",
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: [
+ "align-items:branch:2:type:baseline-position:term:0:repeat:branch:0:keyword:first",
+ ],
+ value: "var(--slot-1) baseline",
+ variables: {
+ "--slot-1": "first",
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: [
+ "align-items:branch:2:type:baseline-position:term:1:keyword:baseline",
+ ],
+ value: "first var(--slot-2)",
+ variables: {
+ "--slot-2": "baseline",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "align-items",
+ syntax:
+ "normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ] | anchor-center",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["align-self:branch:5:keyword:anchor-center"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "anchor-center",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "align-self",
+ syntax:
+ "auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position> | anchor-center",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["alignment-baseline:branch:3:keyword:middle"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "middle",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "alignment-baseline",
+ syntax:
+ "baseline | alphabetic | ideographic | middle | central | mathematical | text-before-edge | text-after-edge",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ "animation:term:0:repeat:type:single-animation:term:1:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ "animation:term:0:repeat:type:single-animation:term:3:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ "animation:term:0:repeat:type:single-animation:term:4:type:single-animation-direction:branch:0:keyword:normal",
+ "animation:term:0:repeat:type:single-animation:term:5:type:single-animation-fill-mode:branch:0:keyword:none",
+ "animation:term:0:repeat:type:single-animation:term:6:type:single-animation-play-state:branch:0:keyword:running",
+ "animation:term:0:repeat:type:single-animation:term:7:branch:0:keyword:none",
+ "animation:term:0:repeat:type:single-animation:term:8:type:single-animation-timeline:branch:0:keyword:auto",
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ "animation:term:0:repeat:type:single-animation:term:1:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ "animation:term:0:repeat:type:single-animation:term:3:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ "animation:term:0:repeat:type:single-animation:term:4:type:single-animation-direction:branch:0:keyword:normal",
+ "animation:term:0:repeat:type:single-animation:term:5:type:single-animation-fill-mode:branch:0:keyword:none",
+ "animation:term:0:repeat:type:single-animation:term:6:type:single-animation-play-state:branch:0:keyword:running",
+ "animation:term:0:repeat:type:single-animation:term:7:branch:0:keyword:none",
+ "animation:term:0:repeat:type:single-animation:term:8:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value:
+ "var(--slot-1),var(--slot-2) var(--slot-3) var(--slot-4),var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10) var(--slot-11),var(--slot-12),var(--slot-13) var(--slot-14) var(--slot-15),var(--slot-16) var(--slot-17) var(--slot-18) var(--slot-19) var(--slot-20) var(--slot-21) var(--slot-22)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ "--slot-3": "linear",
+ "--slot-4": "1s",
+ "--slot-5": "1s",
+ "--slot-6": "infinite",
+ "--slot-7": "normal",
+ "--slot-8": "none",
+ "--slot-9": "running",
+ "--slot-10": "none",
+ "--slot-11": "auto",
+ "--slot-12": "auto",
+ "--slot-13": "auto",
+ "--slot-14": "linear",
+ "--slot-15": "1s",
+ "--slot-16": "1s",
+ "--slot-17": "infinite",
+ "--slot-18": "normal",
+ "--slot-19": "none",
+ "--slot-20": "running",
+ "--slot-21": "none",
+ "--slot-22": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ "var(--slot-1),auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-10",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:7:branch:0:keyword:none",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running var(--slot-10) auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-10": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-11",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:8:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none var(--slot-11),auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-11": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-12",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,var(--slot-12),auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-12": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-13",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,var(--slot-13) linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-13": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-14",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:1:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto var(--slot-14) 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-14": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-15",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear var(--slot-15),1s infinite normal none running none auto",
+ variables: {
+ "--slot-15": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-16",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,var(--slot-16) infinite normal none running none auto",
+ variables: {
+ "--slot-16": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-17",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:3:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s var(--slot-17) normal none running none auto",
+ variables: {
+ "--slot-17": "infinite",
+ },
+ },
+ {
+ id: "pattern-1-slot-18",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:4:type:single-animation-direction:branch:0:keyword:normal",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite var(--slot-18) none running none auto",
+ variables: {
+ "--slot-18": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-19",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:5:type:single-animation-fill-mode:branch:0:keyword:none",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal var(--slot-19) running none auto",
+ variables: {
+ "--slot-19": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:0:property:animation-duration:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ "auto,var(--slot-2) linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-20",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:6:type:single-animation-play-state:branch:0:keyword:running",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none var(--slot-20) none auto",
+ variables: {
+ "--slot-20": "running",
+ },
+ },
+ {
+ id: "pattern-1-slot-21",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:7:branch:0:keyword:none",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none running var(--slot-21) auto",
+ variables: {
+ "--slot-21": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-22",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:8:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none running none var(--slot-22)",
+ variables: {
+ "--slot-22": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:1:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value:
+ "auto,auto var(--slot-3) 1s,1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-3": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ ],
+ value:
+ "auto,auto linear var(--slot-4),1s infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-4": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:2:property:animation-delay:term:0:repeat:type:time",
+ ],
+ value:
+ "auto,auto linear 1s,var(--slot-5) infinite normal none running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-5": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:3:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ ],
+ value:
+ "auto,auto linear 1s,1s var(--slot-6) normal none running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-6": "infinite",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:4:type:single-animation-direction:branch:0:keyword:normal",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite var(--slot-7) none running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-7": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:5:type:single-animation-fill-mode:branch:0:keyword:none",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal var(--slot-8) running none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-8": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-9",
+ positions: [
+ "animation:term:0:repeat:type:single-animation:term:6:type:single-animation-play-state:branch:0:keyword:running",
+ ],
+ value:
+ "auto,auto linear 1s,1s infinite normal none var(--slot-9) none auto,auto,auto linear 1s,1s infinite normal none running none auto",
+ variables: {
+ "--slot-9": "running",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "animation",
+ syntax: "<single-animation>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-composition:term:0:repeat:type:single-animation-composition:branch:0:keyword:replace",
+ "animation-composition:term:0:repeat:type:single-animation-composition:branch:0:keyword:replace",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "replace",
+ "--slot-2": "replace",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "animation-composition:term:0:repeat:type:single-animation-composition:branch:0:keyword:replace",
+ ],
+ value: "var(--slot-1),replace",
+ variables: {
+ "--slot-1": "replace",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "animation-composition:term:0:repeat:type:single-animation-composition:branch:0:keyword:replace",
+ ],
+ value: "replace,var(--slot-2)",
+ variables: {
+ "--slot-2": "replace",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-composition",
+ syntax: "<single-animation-composition>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-delay:term:0:repeat:type:time",
+ "animation-delay:term:0:repeat:type:time",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "1s",
+ "--slot-2": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["animation-delay:term:0:repeat:type:time"],
+ value: "var(--slot-1),1s",
+ variables: {
+ "--slot-1": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["animation-delay:term:0:repeat:type:time"],
+ value: "1s,var(--slot-2)",
+ variables: {
+ "--slot-2": "1s",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-delay",
+ syntax: "<time>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-direction:term:0:repeat:type:single-animation-direction:branch:0:keyword:normal",
+ "animation-direction:term:0:repeat:type:single-animation-direction:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "animation-direction:term:0:repeat:type:single-animation-direction:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "animation-direction:term:0:repeat:type:single-animation-direction:branch:0:keyword:normal",
+ ],
+ value: "normal,var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-direction",
+ syntax: "<single-animation-direction>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-duration:term:0:repeat:branch:0:keyword:auto",
+ "animation-duration:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["animation-duration:term:0:repeat:branch:0:keyword:auto"],
+ value: "var(--slot-1),auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["animation-duration:term:0:repeat:branch:0:keyword:auto"],
+ value: "auto,var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-duration",
+ syntax: "[ auto | <time [0s,∞]> ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-fill-mode:term:0:repeat:type:single-animation-fill-mode:branch:0:keyword:none",
+ "animation-fill-mode:term:0:repeat:type:single-animation-fill-mode:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "animation-fill-mode:term:0:repeat:type:single-animation-fill-mode:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1),none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "animation-fill-mode:term:0:repeat:type:single-animation-fill-mode:branch:0:keyword:none",
+ ],
+ value: "none,var(--slot-2)",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-fill-mode",
+ syntax: "<single-animation-fill-mode>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-iteration-count:term:0:repeat:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ "animation-iteration-count:term:0:repeat:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "infinite",
+ "--slot-2": "infinite",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "animation-iteration-count:term:0:repeat:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ ],
+ value: "var(--slot-1),infinite",
+ variables: {
+ "--slot-1": "infinite",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "animation-iteration-count:term:0:repeat:type:single-animation-iteration-count:branch:0:keyword:infinite",
+ ],
+ value: "infinite,var(--slot-2)",
+ variables: {
+ "--slot-2": "infinite",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-iteration-count",
+ syntax: "<single-animation-iteration-count>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-name:term:0:repeat:branch:0:keyword:none",
+ "animation-name:term:0:repeat:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["animation-name:term:0:repeat:branch:0:keyword:none"],
+ value: "var(--slot-1),none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["animation-name:term:0:repeat:branch:0:keyword:none"],
+ value: "none,var(--slot-2)",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-name",
+ syntax: "[ none | <keyframes-name> ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-play-state:term:0:repeat:type:single-animation-play-state:branch:0:keyword:running",
+ "animation-play-state:term:0:repeat:type:single-animation-play-state:branch:0:keyword:running",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "running",
+ "--slot-2": "running",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "animation-play-state:term:0:repeat:type:single-animation-play-state:branch:0:keyword:running",
+ ],
+ value: "var(--slot-1),running",
+ variables: {
+ "--slot-1": "running",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "animation-play-state:term:0:repeat:type:single-animation-play-state:branch:0:keyword:running",
+ ],
+ value: "running,var(--slot-2)",
+ variables: {
+ "--slot-2": "running",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-play-state",
+ syntax: "<single-animation-play-state>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ "animation-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "linear",
+ "--slot-2": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "animation-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "var(--slot-1),linear",
+ variables: {
+ "--slot-1": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "animation-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "linear,var(--slot-2)",
+ variables: {
+ "--slot-2": "linear",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-timing-function",
+ syntax: "<easing-function>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "animation-trigger:term:0:repeat:branch:0:keyword:none",
+ "animation-trigger:term:0:repeat:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["animation-trigger:term:0:repeat:branch:0:keyword:none"],
+ value: "var(--slot-1),none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["animation-trigger:term:0:repeat:branch:0:keyword:none"],
+ value: "none,var(--slot-2)",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "animation-trigger",
+ syntax: "[ none | [ <dashed-ident> <animation-action>+ ]+ ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: [
+ "appearance:branch:3:type:compat-special:branch:0:keyword:textfield",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "textfield",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "appearance",
+ syntax: "none | auto | <compat-auto> | <compat-special>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "aspect-ratio:term:0:keyword:auto",
+ "aspect-ratio:term:1:type:ratio:term:0:type:number",
+ "aspect-ratio:term:1:type:ratio:term:1:repeat:term:1:type:number",
+ ],
+ value: "var(--slot-1) var(--slot-2)/var(--slot-3)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "1",
+ "--slot-3": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["aspect-ratio:term:0:keyword:auto"],
+ value: "var(--slot-1)1/1",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["aspect-ratio:term:1:type:ratio:term:0:type:number"],
+ value: "auto var(--slot-2)/1",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "aspect-ratio:term:1:type:ratio:term:1:repeat:term:1:type:number",
+ ],
+ value: "auto 1/var(--slot-3)",
+ variables: {
+ "--slot-3": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "aspect-ratio",
+ syntax: "auto || <ratio>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["backdrop-filter:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "backdrop-filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ "backdrop-filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ "--slot-2": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "backdrop-filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ ],
+ value: "var(--slot-1)url(hero.png)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "backdrop-filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ ],
+ value: "url(hero.png)var(--slot-2)",
+ variables: {
+ "--slot-2": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "backdrop-filter",
+ syntax: "none | <filter-value-list>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["backface-visibility:branch:1:keyword:hidden"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "hidden",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "backface-visibility",
+ syntax: "visible | hidden",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:0:type:bg-image:branch:0:type:image:branch:0:type:url",
+ "background:term:0:repeat:type:bg-layer:term:1:term:0:type:bg-position:branch:0:branch:0:keyword:left",
+ "background:term:0:repeat:type:bg-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ "background:term:0:repeat:type:bg-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ "background:term:0:repeat:type:bg-layer:term:3:type:attachment:branch:0:keyword:scroll",
+ "background:term:0:repeat:type:bg-layer:term:4:type:visual-box:branch:0:keyword:content-box",
+ "background:term:0:repeat:type:bg-layer:term:5:type:visual-box:branch:0:keyword:content-box",
+ "background:term:0:repeat:type:bg-layer:term:0:type:bg-image:branch:0:type:image:branch:0:type:url",
+ "background:term:0:repeat:type:bg-layer:term:1:term:0:type:bg-position:branch:0:branch:0:keyword:left",
+ "background:term:0:repeat:type:bg-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ "background:term:0:repeat:type:bg-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ "background:term:0:repeat:type:bg-layer:term:3:type:attachment:branch:0:keyword:scroll",
+ "background:term:0:repeat:type:bg-layer:term:4:type:visual-box:branch:0:keyword:content-box",
+ "background:term:0:repeat:type:bg-layer:term:5:type:visual-box:branch:0:keyword:content-box",
+ "background:term:2:type:final-bg-layer:term:0:type:bg-image:branch:0:type:image:branch:0:type:url",
+ "background:term:2:type:final-bg-layer:term:1:term:0:type:bg-position:branch:0:branch:0:keyword:left",
+ "background:term:2:type:final-bg-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ "background:term:2:type:final-bg-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ "background:term:2:type:final-bg-layer:term:3:type:attachment:branch:0:keyword:scroll",
+ "background:term:2:type:final-bg-layer:term:4:type:visual-box:branch:0:keyword:content-box",
+ "background:term:2:type:final-bg-layer:term:5:type:visual-box:branch:0:keyword:content-box",
+ "background:term:2:type:final-bg-layer:term:6:property:background-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2)/var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7),var(--slot-8) var(--slot-9)/var(--slot-10) var(--slot-11) var(--slot-12) var(--slot-13) var(--slot-14),var(--slot-15) var(--slot-16)/var(--slot-17) var(--slot-18) var(--slot-19) var(--slot-20) var(--slot-21) var(--slot-22)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ "--slot-2": "left",
+ "--slot-3": "cover",
+ "--slot-4": "repeat-x",
+ "--slot-5": "scroll",
+ "--slot-6": "content-box",
+ "--slot-7": "content-box",
+ "--slot-8": "url(hero.png)",
+ "--slot-9": "left",
+ "--slot-10": "cover",
+ "--slot-11": "repeat-x",
+ "--slot-12": "scroll",
+ "--slot-13": "content-box",
+ "--slot-14": "content-box",
+ "--slot-15": "url(hero.png)",
+ "--slot-16": "left",
+ "--slot-17": "cover",
+ "--slot-18": "repeat-x",
+ "--slot-19": "scroll",
+ "--slot-20": "content-box",
+ "--slot-21": "content-box",
+ "--slot-22": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:0:type:bg-image:branch:0:type:image:branch:0:type:url",
+ ],
+ value:
+ "var(--slot-1) left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-10",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/var(--slot-10) repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-10": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-11",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover var(--slot-11) scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-11": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-12",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:3:type:attachment:branch:0:keyword:scroll",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x var(--slot-12) content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-12": "scroll",
+ },
+ },
+ {
+ id: "pattern-1-slot-13",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:4:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll var(--slot-13) content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-13": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-14",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:5:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box var(--slot-14),url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-14": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-15",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:0:type:bg-image:branch:0:type:image:branch:0:type:url",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,var(--slot-15) left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-15": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-16",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:1:term:0:type:bg-position:branch:0:branch:0:keyword:left",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)var(--slot-16)/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-16": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-17",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/var(--slot-17) repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-17": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-18",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover var(--slot-18) scroll content-box content-box red",
+ variables: {
+ "--slot-18": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-19",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:3:type:attachment:branch:0:keyword:scroll",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x var(--slot-19) content-box content-box red",
+ variables: {
+ "--slot-19": "scroll",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:1:term:0:type:bg-position:branch:0:branch:0:keyword:left",
+ ],
+ value:
+ "url(hero.png)var(--slot-2)/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-2": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-20",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:4:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll var(--slot-20) content-box red",
+ variables: {
+ "--slot-20": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-21",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:5:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box var(--slot-21) red",
+ variables: {
+ "--slot-21": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-22",
+ positions: [
+ "background:term:2:type:final-bg-layer:term:6:property:background-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box var(--slot-22)",
+ variables: {
+ "--slot-22": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ ],
+ value:
+ "url(hero.png)left/var(--slot-3) repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-3": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value:
+ "url(hero.png)left/cover var(--slot-4) scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-4": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:3:type:attachment:branch:0:keyword:scroll",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x var(--slot-5) content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-5": "scroll",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:4:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll var(--slot-6) content-box,url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-6": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:5:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box var(--slot-7),url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-7": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:0:type:bg-image:branch:0:type:image:branch:0:type:url",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,var(--slot-8) left/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-8": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-9",
+ positions: [
+ "background:term:0:repeat:type:bg-layer:term:1:term:0:type:bg-position:branch:0:branch:0:keyword:left",
+ ],
+ value:
+ "url(hero.png)left/cover repeat-x scroll content-box content-box,url(hero.png)var(--slot-9)/cover repeat-x scroll content-box content-box,url(hero.png)left/cover repeat-x scroll content-box content-box red",
+ variables: {
+ "--slot-9": "left",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "background",
+ syntax: "<bg-layer>#? , <final-bg-layer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-attachment:term:0:repeat:type:attachment:branch:0:keyword:scroll",
+ "background-attachment:term:0:repeat:type:attachment:branch:0:keyword:scroll",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "scroll",
+ "--slot-2": "scroll",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-attachment:term:0:repeat:type:attachment:branch:0:keyword:scroll",
+ ],
+ value: "var(--slot-1),scroll",
+ variables: {
+ "--slot-1": "scroll",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-attachment:term:0:repeat:type:attachment:branch:0:keyword:scroll",
+ ],
+ value: "scroll,var(--slot-2)",
+ variables: {
+ "--slot-2": "scroll",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-attachment",
+ syntax: "<attachment>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-blend-mode:term:0:repeat:type:blend-mode:branch:0:keyword:normal",
+ "background-blend-mode:term:0:repeat:type:blend-mode:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-blend-mode:term:0:repeat:type:blend-mode:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-blend-mode:term:0:repeat:type:blend-mode:branch:0:keyword:normal",
+ ],
+ value: "normal,var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-blend-mode",
+ syntax: "<blend-mode>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-clip:term:0:repeat:type:bg-clip:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "background-clip:term:0:repeat:type:bg-clip:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "content-box",
+ "--slot-2": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-clip:term:0:repeat:type:bg-clip:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),content-box",
+ variables: {
+ "--slot-1": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-clip:term:0:repeat:type:bg-clip:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "content-box,var(--slot-2)",
+ variables: {
+ "--slot-2": "content-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-clip",
+ syntax: "<bg-clip>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-image:term:0:repeat:type:bg-image:branch:0:type:image:branch:0:type:url",
+ "background-image:term:0:repeat:type:bg-image:branch:0:type:image:branch:0:type:url",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ "--slot-2": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-image:term:0:repeat:type:bg-image:branch:0:type:image:branch:0:type:url",
+ ],
+ value: "var(--slot-1),url(hero.png)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-image:term:0:repeat:type:bg-image:branch:0:type:image:branch:0:type:url",
+ ],
+ value: "url(hero.png),var(--slot-2)",
+ variables: {
+ "--slot-2": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-image",
+ syntax: "<bg-image>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-origin:term:0:repeat:type:visual-box:branch:0:keyword:content-box",
+ "background-origin:term:0:repeat:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "content-box",
+ "--slot-2": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-origin:term:0:repeat:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),content-box",
+ variables: {
+ "--slot-1": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-origin:term:0:repeat:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "content-box,var(--slot-2)",
+ variables: {
+ "--slot-2": "content-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-origin",
+ syntax: "<visual-box>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-position:term:0:repeat:type:bg-position:branch:0:branch:0:keyword:left",
+ "background-position:term:0:repeat:type:bg-position:branch:0:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "left",
+ "--slot-2": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-position:term:0:repeat:type:bg-position:branch:0:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1),left",
+ variables: {
+ "--slot-1": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-position:term:0:repeat:type:bg-position:branch:0:branch:0:keyword:left",
+ ],
+ value: "left,var(--slot-2)",
+ variables: {
+ "--slot-2": "left",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-position",
+ syntax: "<bg-position>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-position-x:term:0:repeat:branch:0:keyword:center",
+ "background-position-x:term:0:repeat:branch:0:keyword:center",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "center",
+ "--slot-2": "center",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-position-x:term:0:repeat:branch:0:keyword:center",
+ ],
+ value: "var(--slot-1),center",
+ variables: {
+ "--slot-1": "center",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-position-x:term:0:repeat:branch:0:keyword:center",
+ ],
+ value: "center,var(--slot-2)",
+ variables: {
+ "--slot-2": "center",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-position-x",
+ syntax:
+ "[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-position-y:term:0:repeat:branch:0:keyword:center",
+ "background-position-y:term:0:repeat:branch:0:keyword:center",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "center",
+ "--slot-2": "center",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-position-y:term:0:repeat:branch:0:keyword:center",
+ ],
+ value: "var(--slot-1),center",
+ variables: {
+ "--slot-1": "center",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-position-y:term:0:repeat:branch:0:keyword:center",
+ ],
+ value: "center,var(--slot-2)",
+ variables: {
+ "--slot-2": "center",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-position-y",
+ syntax:
+ "[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ "background-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "repeat-x",
+ "--slot-2": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value: "var(--slot-1),repeat-x",
+ variables: {
+ "--slot-1": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value: "repeat-x,var(--slot-2)",
+ variables: {
+ "--slot-2": "repeat-x",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-repeat",
+ syntax: "<repeat-style>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "background-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ "background-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "cover",
+ "--slot-2": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "background-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ ],
+ value: "var(--slot-1),cover",
+ variables: {
+ "--slot-1": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "background-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ ],
+ value: "cover,var(--slot-2)",
+ variables: {
+ "--slot-2": "cover",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "background-size",
+ syntax: "<bg-size>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["baseline-source:branch:2:keyword:last"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "last",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "baseline-source",
+ syntax: "auto | first | last",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["block-size:term:0:property:width:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "block-size",
+ syntax: "<'width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border:term:0:type:line-width:branch:0:type:length",
+ "border:term:1:type:line-style:branch:0:keyword:none",
+ "border:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["border:term:0:type:line-width:branch:0:type:length"],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["border:term:1:type:line-style:branch:0:keyword:none"],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border",
+ syntax: "<line-width> || <line-style> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-block:term:0:property:border-block-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-block:term:0:property:border-block-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-block:term:0:property:border-block-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block:term:0:property:border-block-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-block:term:0:property:border-block-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-block:term:0:property:border-block-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-block",
+ syntax: "<'border-block-start'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-block-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "border-block-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "red",
+ "--slot-2": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) red",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-block-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "red var(--slot-2)",
+ variables: {
+ "--slot-2": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-color",
+ syntax: "<'border-top-color'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-block-end:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-block-end:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-block-end:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-end:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-block-end:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-block-end:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-block-end",
+ syntax: "<'border-top-width'> || <'border-top-style'> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-end-color:term:0:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-end-color",
+ syntax: "<'border-top-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-end-style:term:0:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-end-style",
+ syntax: "<'border-top-style'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-end-width:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-end-width",
+ syntax: "<'border-top-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-block-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-block-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-block-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-block-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-block-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-block-start",
+ syntax: "<'border-top-width'> || <'border-top-style'> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-start-color:term:0:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-start-color",
+ syntax: "<'border-top-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-start-style:term:0:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-start-style",
+ syntax: "<'border-top-style'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-start-width:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-start-width",
+ syntax: "<'border-top-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-block-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-block-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-block-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none var(--slot-2)",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-style",
+ syntax: "<'border-top-style'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-block-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-block-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-block-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-block-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-block-width",
+ syntax: "<'border-top-width'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-bottom:term:0:type:line-width:branch:0:type:length",
+ "border-bottom:term:1:type:line-style:branch:0:keyword:none",
+ "border-bottom:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-bottom:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-bottom:term:1:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-bottom:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-bottom",
+ syntax: "<line-width> || <line-style> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-bottom-color:term:0:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-bottom-color",
+ syntax: "<'border-top-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-bottom-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-bottom-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-bottom-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-bottom-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-bottom-left-radius",
+ syntax: "<length-percentage [0,∞]>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-bottom-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-bottom-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-bottom-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-bottom-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-bottom-right-radius",
+ syntax: "<length-percentage [0,∞]>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-bottom-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-bottom-style",
+ syntax: "<line-style>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-bottom-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-bottom-width",
+ syntax: "<line-width>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["border-collapse:branch:1:keyword:collapse"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "collapse",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-collapse",
+ syntax: "separate | collapse",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "red",
+ "--slot-2": "red",
+ "--slot-3": "red",
+ "--slot-4": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) red red red",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "red var(--slot-2) red red",
+ variables: {
+ "--slot-2": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "red red var(--slot-3) red",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "border-color:term:0:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "red red red var(--slot-4)",
+ variables: {
+ "--slot-4": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-color",
+ syntax: "<color>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-end-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-end-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-end-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-end-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-end-end-radius",
+ syntax: "<'border-top-left-radius'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-end-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-end-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-end-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-end-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-end-start-radius",
+ syntax: "<'border-top-left-radius'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-image:term:0:property:border-image-source:branch:0:keyword:none",
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image:term:1:term:0:property:border-image-slice:term:1:repeat:keyword:fill",
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "border-image:term:2:property:border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ "border-image:term:2:property:border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6)/var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10) var(--slot-11) var(--slot-12)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "1",
+ "--slot-3": "1",
+ "--slot-4": "1",
+ "--slot-5": "1",
+ "--slot-6": "fill",
+ "--slot-7": "1px",
+ "--slot-8": "1px",
+ "--slot-9": "1px",
+ "--slot-10": "1px",
+ "--slot-11": "stretch",
+ "--slot-12": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-image:term:0:property:border-image-source:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)1 1 1 1 fill/1px 1px 1px 1px stretch stretch",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-10",
+ positions: [
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "none 1 1 1 1 fill/1px 1px 1px var(--slot-10) stretch stretch",
+ variables: {
+ "--slot-10": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-11",
+ positions: [
+ "border-image:term:2:property:border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "none 1 1 1 1 fill/1px 1px 1px 1px var(--slot-11) stretch",
+ variables: {
+ "--slot-11": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-12",
+ positions: [
+ "border-image:term:2:property:border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "none 1 1 1 1 fill/1px 1px 1px 1px stretch var(--slot-12)",
+ variables: {
+ "--slot-12": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ ],
+ value: "none var(--slot-2)1 1 1 fill/1px 1px 1px 1px stretch stretch",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ ],
+ value: "none 1 var(--slot-3)1 1 fill/1px 1px 1px 1px stretch stretch",
+ variables: {
+ "--slot-3": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ ],
+ value: "none 1 1 var(--slot-4)1 fill/1px 1px 1px 1px stretch stretch",
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "border-image:term:1:term:0:property:border-image-slice:term:0:repeat:branch:0:type:number",
+ ],
+ value: "none 1 1 1 var(--slot-5) fill/1px 1px 1px 1px stretch stretch",
+ variables: {
+ "--slot-5": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "border-image:term:1:term:0:property:border-image-slice:term:1:repeat:keyword:fill",
+ ],
+ value: "none 1 1 1 1 var(--slot-6)/1px 1px 1px 1px stretch stretch",
+ variables: {
+ "--slot-6": "fill",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "none 1 1 1 1 fill/var(--slot-7) 1px 1px 1px stretch stretch",
+ variables: {
+ "--slot-7": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "none 1 1 1 1 fill/1px var(--slot-8) 1px 1px stretch stretch",
+ variables: {
+ "--slot-8": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-9",
+ positions: [
+ "border-image:term:1:term:1:repeat:branch:0:term:1:property:border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "none 1 1 1 1 fill/1px 1px var(--slot-9) 1px stretch stretch",
+ variables: {
+ "--slot-9": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-image",
+ syntax:
+ "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-image-outset:term:0:repeat:branch:0:type:length",
+ "border-image-outset:term:0:repeat:branch:0:type:length",
+ "border-image-outset:term:0:repeat:branch:0:type:length",
+ "border-image-outset:term:0:repeat:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["border-image-outset:term:0:repeat:branch:0:type:length"],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["border-image-outset:term:0:repeat:branch:0:type:length"],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["border-image-outset:term:0:repeat:branch:0:type:length"],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["border-image-outset:term:0:repeat:branch:0:type:length"],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-image-outset",
+ syntax: "[ <length [0,∞]> | <number [0,∞]> ]{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ "border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "stretch",
+ "--slot-2": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "var(--slot-1) stretch",
+ variables: {
+ "--slot-1": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-image-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "stretch var(--slot-2)",
+ variables: {
+ "--slot-2": "stretch",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-image-repeat",
+ syntax: "[ stretch | repeat | round | space ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image-slice:term:0:repeat:branch:0:type:number",
+ "border-image-slice:term:1:repeat:keyword:fill",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5)",
+ variables: {
+ "--slot-1": "1",
+ "--slot-2": "1",
+ "--slot-3": "1",
+ "--slot-4": "1",
+ "--slot-5": "fill",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["border-image-slice:term:0:repeat:branch:0:type:number"],
+ value: "var(--slot-1)1 1 1 fill",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["border-image-slice:term:0:repeat:branch:0:type:number"],
+ value: "1 var(--slot-2)1 1 fill",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["border-image-slice:term:0:repeat:branch:0:type:number"],
+ value: "1 1 var(--slot-3)1 fill",
+ variables: {
+ "--slot-3": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["border-image-slice:term:0:repeat:branch:0:type:number"],
+ value: "1 1 1 var(--slot-4) fill",
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: ["border-image-slice:term:1:repeat:keyword:fill"],
+ value: "1 1 1 1 var(--slot-5)",
+ variables: {
+ "--slot-5": "fill",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-image-slice",
+ syntax: "[ <number [0,∞]> | <percentage [0,∞]> ]{1,4} && fill?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "border-image-source:branch:1:type:image:branch:0:type:url",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-image-source",
+ syntax: "none | <image>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "border-image-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-image-width",
+ syntax: "[ <length-percentage [0,∞]> | <number [0,∞]> | auto ]{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-inline:term:0:property:border-block-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-inline:term:0:property:border-block-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-inline:term:0:property:border-block-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline:term:0:property:border-block-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-inline:term:0:property:border-block-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-inline:term:0:property:border-block-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-inline",
+ syntax: "<'border-block-start'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-inline-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "border-inline-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "red",
+ "--slot-2": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) red",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-inline-color:term:0:repeat:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "red var(--slot-2)",
+ variables: {
+ "--slot-2": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-color",
+ syntax: "<'border-top-color'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-inline-end:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-inline-end:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-inline-end:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-end:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-inline-end:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-inline-end:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-inline-end",
+ syntax: "<'border-top-width'> || <'border-top-style'> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-end-color:term:0:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-end-color",
+ syntax: "<'border-top-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-end-style:term:0:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-end-style",
+ syntax: "<'border-top-style'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-end-width:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-end-width",
+ syntax: "<'border-top-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-inline-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-inline-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-inline-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-start:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-inline-start:term:1:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-inline-start:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-inline-start",
+ syntax: "<'border-top-width'> || <'border-top-style'> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-start-color:term:0:property:border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-start-color",
+ syntax: "<'border-top-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-start-style:term:0:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-start-style",
+ syntax: "<'border-top-style'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-start-width:term:0:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-start-width",
+ syntax: "<'border-top-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-inline-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ "border-inline-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-inline-style:term:0:repeat:property:border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none var(--slot-2)",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-style",
+ syntax: "<'border-top-style'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-inline-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ "border-inline-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-inline-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-inline-width:term:0:repeat:property:border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-inline-width",
+ syntax: "<'border-top-width'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-left:term:0:type:line-width:branch:0:type:length",
+ "border-left:term:1:type:line-style:branch:0:keyword:none",
+ "border-left:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["border-left:term:0:type:line-width:branch:0:type:length"],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["border-left:term:1:type:line-style:branch:0:keyword:none"],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-left:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-left",
+ syntax: "<line-width> || <line-style> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-left-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-left-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-left-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-left-style",
+ syntax: "<line-style>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-left-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-left-width",
+ syntax: "<line-width>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)/var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ "--slot-5": "1px",
+ "--slot-6": "1px",
+ "--slot-7": "1px",
+ "--slot-8": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px/1px 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px/1px 1px 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px/1px 1px 1px 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "border-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4)/1px 1px 1px 1px",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px 1px/var(--slot-5) 1px 1px 1px",
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px 1px/1px var(--slot-6) 1px 1px",
+ variables: {
+ "--slot-6": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px 1px/1px 1px var(--slot-7) 1px",
+ variables: {
+ "--slot-7": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "border-radius:term:1:repeat:term:1:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px 1px/1px 1px 1px var(--slot-8)",
+ variables: {
+ "--slot-8": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-radius",
+ syntax:
+ "<length-percentage [0,∞]>{1,4} [ / <length-percentage [0,∞]>{1,4} ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-right:term:0:type:line-width:branch:0:type:length",
+ "border-right:term:1:type:line-style:branch:0:keyword:none",
+ "border-right:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["border-right:term:0:type:line-width:branch:0:type:length"],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-right:term:1:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-right:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-right",
+ syntax: "<line-width> || <line-style> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-right-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-right-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-right-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-right-style",
+ syntax: "<line-style>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-right-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-right-width",
+ syntax: "<line-width>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-spacing:term:0:repeat:type:length",
+ "border-spacing:term:0:repeat:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["border-spacing:term:0:repeat:type:length"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["border-spacing:term:0:repeat:type:length"],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-spacing",
+ syntax: "<length>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-start-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-start-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-start-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-start-end-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-start-end-radius",
+ syntax: "<'border-top-left-radius'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-start-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-start-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-start-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-start-start-radius:term:0:property:border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-start-start-radius",
+ syntax: "<'border-top-left-radius'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ "--slot-3": "none",
+ "--slot-4": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) none none none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none var(--slot-2) none none",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none none var(--slot-3) none",
+ variables: {
+ "--slot-3": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none none none var(--slot-4)",
+ variables: {
+ "--slot-4": "none",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-style",
+ syntax: "<line-style>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-top:term:0:type:line-width:branch:0:type:length",
+ "border-top:term:1:type:line-style:branch:0:keyword:none",
+ "border-top:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "none",
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["border-top:term:0:type:line-width:branch:0:type:length"],
+ value: "var(--slot-1) none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["border-top:term:1:type:line-style:branch:0:keyword:none"],
+ value: "1px var(--slot-2) red",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-top:term:2:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px none var(--slot-3)",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-top",
+ syntax: "<line-width> || <line-style> || <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-top-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-top-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-top-left-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-top-left-radius",
+ syntax: "<length-percentage [0,∞]>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-top-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ "border-top-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-top-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-top-right-radius:term:0:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-top-right-radius",
+ syntax: "<length-percentage [0,∞]>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-top-style:term:0:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-top-style",
+ syntax: "<line-style>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-top-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "border-top-width",
+ syntax: "<line-width>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "border-width",
+ syntax: "<line-width>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "bottom:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "bottom:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "bottom:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "bottom:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "bottom:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "bottom:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "bottom:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "bottom",
+ syntax: "auto | <length-percentage> | <anchor()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["box-decoration-break:branch:1:keyword:clone"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "clone",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "box-decoration-break",
+ syntax: "slice | clone",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["box-shadow:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:0:repeat:keyword:inset",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:2:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "box-shadow:branch:1:repeat:type:shadow:term:0:repeat:keyword:inset",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ "box-shadow:branch:1:repeat:type:shadow:term:2:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6),var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10) var(--slot-11) var(--slot-12)",
+ variables: {
+ "--slot-1": "inset",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ "--slot-5": "1px",
+ "--slot-6": "red",
+ "--slot-7": "inset",
+ "--slot-8": "1px",
+ "--slot-9": "1px",
+ "--slot-10": "1px",
+ "--slot-11": "1px",
+ "--slot-12": "red",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:0:repeat:keyword:inset",
+ ],
+ value: "var(--slot-1) 1px 1px 1px 1px red,inset 1px 1px 1px 1px red",
+ variables: {
+ "--slot-1": "inset",
+ },
+ },
+ {
+ id: "pattern-2-slot-10",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset 1px 1px 1px 1px red,inset 1px 1px var(--slot-10) 1px red",
+ variables: {
+ "--slot-10": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-11",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset 1px 1px 1px 1px red,inset 1px 1px 1px var(--slot-11) red",
+ variables: {
+ "--slot-11": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-12",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:2:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "inset 1px 1px 1px 1px red,inset 1px 1px 1px 1px var(--slot-12)",
+ variables: {
+ "--slot-12": "red",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset var(--slot-2) 1px 1px 1px red,inset 1px 1px 1px 1px red",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset 1px var(--slot-3) 1px 1px red,inset 1px 1px 1px 1px red",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset 1px 1px var(--slot-4) 1px red,inset 1px 1px 1px 1px red",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset 1px 1px 1px var(--slot-5) red,inset 1px 1px 1px 1px red",
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-6",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:2:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "inset 1px 1px 1px 1px var(--slot-6),inset 1px 1px 1px 1px red",
+ variables: {
+ "--slot-6": "red",
+ },
+ },
+ {
+ id: "pattern-2-slot-7",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:0:repeat:keyword:inset",
+ ],
+ value: "inset 1px 1px 1px 1px red,var(--slot-7) 1px 1px 1px 1px red",
+ variables: {
+ "--slot-7": "inset",
+ },
+ },
+ {
+ id: "pattern-2-slot-8",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset 1px 1px 1px 1px red,inset var(--slot-8) 1px 1px 1px red",
+ variables: {
+ "--slot-8": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-9",
+ positions: [
+ "box-shadow:branch:1:repeat:type:shadow:term:1:repeat:type:length",
+ ],
+ value: "inset 1px 1px 1px 1px red,inset 1px var(--slot-9) 1px 1px red",
+ variables: {
+ "--slot-9": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "box-shadow",
+ syntax: "none | <shadow>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["box-sizing:branch:1:keyword:border-box"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "border-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "box-sizing",
+ syntax: "content-box | border-box",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["break-after:branch:3:keyword:all"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "all",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "break-after",
+ syntax:
+ "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["break-before:branch:3:keyword:all"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "all",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "break-before",
+ syntax:
+ "auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["break-inside:branch:3:keyword:avoid-column"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "avoid-column",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "break-inside",
+ syntax: "auto | avoid | avoid-page | avoid-column | avoid-region",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["caption-side:branch:1:keyword:bottom"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "bottom",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "caption-side",
+ syntax: "top | bottom",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["caret-animation:branch:1:keyword:manual"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "manual",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "caret-animation",
+ syntax: "auto | manual",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "caret-color:branch:1:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "caret-color",
+ syntax: "auto | <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["clear:branch:3:keyword:both"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "both",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "clear",
+ syntax: "none | left | right | both | inline-start | inline-end",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["clip-path:branch:2:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "clip-path:branch:1:term:0:type:basic-shape:branch:6:type:path():term:1:repeat:property:fill-rule:branch:0:keyword:nonzero",
+ "clip-path:branch:1:term:0:type:basic-shape:branch:6:type:path():term:3:type:string",
+ "clip-path:branch:1:term:1:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "path(var(--slot-1),var(--slot-2)) var(--slot-3)",
+ variables: {
+ "--slot-1": "nonzero",
+ "--slot-2": '"x"',
+ "--slot-3": "content-box",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "clip-path:branch:1:term:0:type:basic-shape:branch:6:type:path():term:1:repeat:property:fill-rule:branch:0:keyword:nonzero",
+ ],
+ value: 'path(var(--slot-1),"x") content-box',
+ variables: {
+ "--slot-1": "nonzero",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "clip-path:branch:1:term:0:type:basic-shape:branch:6:type:path():term:3:type:string",
+ ],
+ value: "path(nonzero,var(--slot-2)) content-box",
+ variables: {
+ "--slot-2": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "clip-path:branch:1:term:1:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: 'path(nonzero,"x") var(--slot-3)',
+ variables: {
+ "--slot-3": "content-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "clip-path",
+ syntax: "<clip-source> | [ <basic-shape> || <geometry-box> ] | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["clip-rule:branch:1:keyword:evenodd"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "evenodd",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "clip-rule",
+ syntax: "nonzero | evenodd",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["color-interpolation-filters:branch:2:keyword:linearRGB"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "linearRGB",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "color-interpolation-filters",
+ syntax: "auto | sRGB | linearRGB",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["color-scheme:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "color-scheme:branch:1:term:0:repeat:branch:0:keyword:light",
+ "color-scheme:branch:1:term:0:repeat:branch:0:keyword:light",
+ "color-scheme:branch:1:term:1:repeat:keyword:only",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "light",
+ "--slot-2": "light",
+ "--slot-3": "only",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "color-scheme:branch:1:term:0:repeat:branch:0:keyword:light",
+ ],
+ value: "var(--slot-1) light only",
+ variables: {
+ "--slot-1": "light",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "color-scheme:branch:1:term:0:repeat:branch:0:keyword:light",
+ ],
+ value: "light var(--slot-2) only",
+ variables: {
+ "--slot-2": "light",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["color-scheme:branch:1:term:1:repeat:keyword:only"],
+ value: "light light var(--slot-3)",
+ variables: {
+ "--slot-3": "only",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "color-scheme",
+ syntax: "normal | [ light | dark | <custom-ident> ]+ && only?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["column-count:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-count",
+ syntax: "<integer> | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["column-fill:branch:1:keyword:balance"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "balance",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-fill",
+ syntax: "auto | balance",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "column-gap:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-gap",
+ syntax: "normal | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["column-height:branch:1:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-height",
+ syntax: "auto | <length [0,∞]>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "column-rule:term:2:property:column-rule-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ "--slot-5": "none",
+ "--slot-6": "none",
+ "--slot-7": "none",
+ "--slot-8": "none",
+ "--slot-9": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px none none none none red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px none none none none red",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px none none none none red",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "column-rule:term:0:property:column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4) none none none none red",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px 1px 1px 1px var(--slot-5) none none none red",
+ variables: {
+ "--slot-5": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px 1px 1px 1px none var(--slot-6) none none red",
+ variables: {
+ "--slot-6": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px 1px 1px 1px none none var(--slot-7) none red",
+ variables: {
+ "--slot-7": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "column-rule:term:1:property:column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "1px 1px 1px 1px none none none var(--slot-8) red",
+ variables: {
+ "--slot-8": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-9",
+ positions: [
+ "column-rule:term:2:property:column-rule-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px 1px 1px 1px none none none none var(--slot-9)",
+ variables: {
+ "--slot-9": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "column-rule",
+ syntax:
+ "<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "column-rule-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-rule-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ "--slot-3": "none",
+ "--slot-4": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) none none none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none var(--slot-2) none none",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none none var(--slot-3) none",
+ variables: {
+ "--slot-3": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "column-rule-style:term:0:property:border-style:term:0:repeat:type:line-style:branch:0:keyword:none",
+ ],
+ value: "none none none var(--slot-4)",
+ variables: {
+ "--slot-4": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-rule-style",
+ syntax: "<'border-style'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "column-rule-width:term:0:property:border-width:term:0:repeat:type:line-width:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-rule-width",
+ syntax: "<'border-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["column-span:branch:1:keyword:all"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "all",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-span",
+ syntax: "none | all",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["column-width:branch:1:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-width",
+ syntax: "auto | <length [0,∞]>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["column-wrap:branch:2:keyword:wrap"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "wrap",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "column-wrap",
+ syntax: "auto | nowrap | wrap",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "columns:term:0:term:0:property:column-width:branch:0:keyword:auto",
+ "columns:term:0:term:1:property:column-count:branch:0:type:integer:term:0:type:number-token",
+ "columns:term:1:repeat:term:1:property:column-height:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2)/var(--slot-3)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "1",
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "columns:term:0:term:0:property:column-width:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)1/auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "columns:term:0:term:1:property:column-count:branch:0:type:integer:term:0:type:number-token",
+ ],
+ value: "auto var(--slot-2)/auto",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "columns:term:1:repeat:term:1:property:column-height:branch:0:keyword:auto",
+ ],
+ value: "auto 1/var(--slot-3)",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "columns",
+ syntax: "[ <'column-width'> || <'column-count'> ] [ / <'column-height'> ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["contain:branch:2:keyword:content"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "content",
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "contain:branch:3:term:0:term:0:keyword:size",
+ "contain:branch:3:term:0:term:1:keyword:inline-size",
+ "contain:branch:3:term:1:keyword:layout",
+ "contain:branch:3:term:2:keyword:style",
+ "contain:branch:3:term:3:keyword:paint",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5)",
+ variables: {
+ "--slot-1": "size",
+ "--slot-2": "inline-size",
+ "--slot-3": "layout",
+ "--slot-4": "style",
+ "--slot-5": "paint",
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: ["contain:branch:3:term:0:term:0:keyword:size"],
+ value: "var(--slot-1) inline-size layout style paint",
+ variables: {
+ "--slot-1": "size",
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: ["contain:branch:3:term:0:term:1:keyword:inline-size"],
+ value: "size var(--slot-2) layout style paint",
+ variables: {
+ "--slot-2": "inline-size",
+ },
+ },
+ {
+ id: "pattern-4-slot-3",
+ positions: ["contain:branch:3:term:1:keyword:layout"],
+ value: "size inline-size var(--slot-3) style paint",
+ variables: {
+ "--slot-3": "layout",
+ },
+ },
+ {
+ id: "pattern-4-slot-4",
+ positions: ["contain:branch:3:term:2:keyword:style"],
+ value: "size inline-size layout var(--slot-4) paint",
+ variables: {
+ "--slot-4": "style",
+ },
+ },
+ {
+ id: "pattern-4-slot-5",
+ positions: ["contain:branch:3:term:3:keyword:paint"],
+ value: "size inline-size layout style var(--slot-5)",
+ variables: {
+ "--slot-5": "paint",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "contain",
+ syntax:
+ "none | strict | content | [ [ size || inline-size ] || layout || style || paint ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["contain-intrinsic-block-size:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) none",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "contain-intrinsic-block-size:term:0:repeat:keyword:auto",
+ "contain-intrinsic-block-size:term:1:branch:1:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["contain-intrinsic-block-size:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["contain-intrinsic-block-size:term:1:branch:1:type:length"],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "contain-intrinsic-block-size",
+ syntax: "auto? [ none | <length> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["contain-intrinsic-height:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) none",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "contain-intrinsic-height:term:0:repeat:keyword:auto",
+ "contain-intrinsic-height:term:1:branch:1:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["contain-intrinsic-height:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["contain-intrinsic-height:term:1:branch:1:type:length"],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "contain-intrinsic-height",
+ syntax: "auto? [ none | <length> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["contain-intrinsic-inline-size:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) none",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "contain-intrinsic-inline-size:term:0:repeat:keyword:auto",
+ "contain-intrinsic-inline-size:term:1:branch:1:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["contain-intrinsic-inline-size:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "contain-intrinsic-inline-size:term:1:branch:1:type:length",
+ ],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "contain-intrinsic-inline-size",
+ syntax: "auto? [ none | <length> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "contain-intrinsic-size:term:0:repeat:term:0:repeat:keyword:auto",
+ "contain-intrinsic-size:term:0:repeat:term:1:branch:0:keyword:none",
+ "contain-intrinsic-size:term:0:repeat:term:0:repeat:keyword:auto",
+ "contain-intrinsic-size:term:0:repeat:term:1:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "none",
+ "--slot-3": "auto",
+ "--slot-4": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "contain-intrinsic-size:term:0:repeat:term:0:repeat:keyword:auto",
+ ],
+ value: "var(--slot-1) none auto none",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "contain-intrinsic-size:term:0:repeat:term:1:branch:0:keyword:none",
+ ],
+ value: "auto var(--slot-2) auto none",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "contain-intrinsic-size:term:0:repeat:term:0:repeat:keyword:auto",
+ ],
+ value: "auto none var(--slot-3) none",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "contain-intrinsic-size:term:0:repeat:term:1:branch:0:keyword:none",
+ ],
+ value: "auto none auto var(--slot-4)",
+ variables: {
+ "--slot-4": "none",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "contain-intrinsic-size",
+ syntax: "[ auto? [ none | <length> ] ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["contain-intrinsic-width:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) none",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "contain-intrinsic-width:term:0:repeat:keyword:auto",
+ "contain-intrinsic-width:term:1:branch:1:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["contain-intrinsic-width:term:0:repeat:keyword:auto"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["contain-intrinsic-width:term:1:branch:1:type:length"],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "contain-intrinsic-width",
+ syntax: "auto? [ none | <length> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "container:term:0:property:container-name:branch:0:keyword:none",
+ "container:term:1:repeat:term:1:property:container-type:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1)/var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "container:term:0:property:container-name:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)/normal",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "container:term:1:repeat:term:1:property:container-type:branch:0:keyword:normal",
+ ],
+ value: "none/var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "container",
+ syntax: "<'container-name'> [ / <'container-type'> ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["container-name:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "container-name:branch:1:repeat:type:custom-ident",
+ "container-name:branch:1:repeat:type:custom-ident",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "custom-ident",
+ "--slot-2": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["container-name:branch:1:repeat:type:custom-ident"],
+ value: "var(--slot-1) custom-ident",
+ variables: {
+ "--slot-1": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["container-name:branch:1:repeat:type:custom-ident"],
+ value: "custom-ident var(--slot-2)",
+ variables: {
+ "--slot-2": "custom-ident",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "container-name",
+ syntax: "none | <custom-ident>+",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["container-type:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "container-type:branch:1:term:0:branch:0:keyword:size",
+ "container-type:branch:1:term:1:keyword:scroll-state",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "size",
+ "--slot-2": "scroll-state",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["container-type:branch:1:term:0:branch:0:keyword:size"],
+ value: "var(--slot-1) scroll-state",
+ variables: {
+ "--slot-1": "size",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["container-type:branch:1:term:1:keyword:scroll-state"],
+ value: "size var(--slot-2)",
+ variables: {
+ "--slot-2": "scroll-state",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "container-type",
+ syntax: "normal | [ [ size | inline-size ] || scroll-state ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["content:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "content:branch:2:term:0:branch:0:type:content-replacement:term:0:type:image:branch:0:type:url",
+ "content:branch:2:term:1:repeat:term:1:repeat:branch:0:type:string",
+ "content:branch:2:term:1:repeat:term:1:repeat:branch:0:type:string",
+ ],
+ value: "var(--slot-1)/var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ "--slot-2": '"x"',
+ "--slot-3": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "content:branch:2:term:0:branch:0:type:content-replacement:term:0:type:image:branch:0:type:url",
+ ],
+ value: 'var(--slot-1)/"x""x"',
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "content:branch:2:term:1:repeat:term:1:repeat:branch:0:type:string",
+ ],
+ value: 'url(hero.png)/var(--slot-2)"x"',
+ variables: {
+ "--slot-2": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "content:branch:2:term:1:repeat:term:1:repeat:branch:0:type:string",
+ ],
+ value: 'url(hero.png)/"x"var(--slot-3)',
+ variables: {
+ "--slot-3": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "content",
+ syntax:
+ "normal | none | [ <content-replacement> | <content-list> ] [ / [ <string> | <counter> | <attr()> ]+ ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["content-visibility:branch:2:keyword:hidden"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "hidden",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "content-visibility",
+ syntax: "visible | auto | hidden",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-block-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-block-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-block-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-block-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-block-end-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-block-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-block-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-block-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-block-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-block-start-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-bottom-left-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-bottom-left-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-bottom-right-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-bottom-right-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-bottom-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-bottom-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-bottom-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-bottom-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-bottom-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-end-end-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-end-end-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-end-start-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-end-start-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-inline-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-inline-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-inline-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-inline-end-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-inline-end-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-inline-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-inline-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-inline-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-inline-start-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-inline-start-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-left-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-left-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-left-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-left-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-left-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-right-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-right-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-right-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-right-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-right-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ "--slot-3": "round",
+ "--slot-4": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round round round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2) round round",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round round var(--slot-3) round",
+ variables: {
+ "--slot-3": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "corner-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round round round var(--slot-4)",
+ variables: {
+ "--slot-4": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-shape",
+ syntax: "<corner-shape-value>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-start-end-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-start-end-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-start-start-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-start-start-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-top-left-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-top-left-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-top-right-shape:term:0:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "corner-top-right-shape",
+ syntax: "<corner-shape-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "corner-top-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ "corner-top-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "round",
+ "--slot-2": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "corner-top-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "var(--slot-1) round",
+ variables: {
+ "--slot-1": "round",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "corner-top-shape:term:0:repeat:type:corner-shape-value:branch:0:keyword:round",
+ ],
+ value: "round var(--slot-2)",
+ variables: {
+ "--slot-2": "round",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "corner-top-shape",
+ syntax: "<corner-shape-value>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["counter-increment:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "counter-increment:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ "counter-increment:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ "counter-increment:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ "counter-increment:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "custom-ident",
+ "--slot-2": "1",
+ "--slot-3": "custom-ident",
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "counter-increment:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ ],
+ value: "var(--slot-1)1 custom-ident 1",
+ variables: {
+ "--slot-1": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "counter-increment:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "custom-ident var(--slot-2) custom-ident 1",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "counter-increment:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ ],
+ value: "custom-ident 1 var(--slot-3)1",
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "counter-increment:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "custom-ident 1 custom-ident var(--slot-4)",
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "counter-increment",
+ syntax: "[ <counter-name> <integer>? ]+ | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["counter-reset:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "counter-reset:branch:0:repeat:branch:0:term:0:type:counter-name:term:0:type:custom-ident",
+ "counter-reset:branch:0:repeat:branch:0:term:1:repeat:type:integer:term:0:type:number-token",
+ "counter-reset:branch:0:repeat:branch:0:term:0:type:counter-name:term:0:type:custom-ident",
+ "counter-reset:branch:0:repeat:branch:0:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "custom-ident",
+ "--slot-2": "1",
+ "--slot-3": "custom-ident",
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "counter-reset:branch:0:repeat:branch:0:term:0:type:counter-name:term:0:type:custom-ident",
+ ],
+ value: "var(--slot-1)1 custom-ident 1",
+ variables: {
+ "--slot-1": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "counter-reset:branch:0:repeat:branch:0:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "custom-ident var(--slot-2) custom-ident 1",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "counter-reset:branch:0:repeat:branch:0:term:0:type:counter-name:term:0:type:custom-ident",
+ ],
+ value: "custom-ident 1 var(--slot-3)1",
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "counter-reset:branch:0:repeat:branch:0:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "custom-ident 1 custom-ident var(--slot-4)",
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "counter-reset",
+ syntax:
+ "[ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["counter-set:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "counter-set:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ "counter-set:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ "counter-set:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ "counter-set:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "custom-ident",
+ "--slot-2": "1",
+ "--slot-3": "custom-ident",
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "counter-set:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ ],
+ value: "var(--slot-1)1 custom-ident 1",
+ variables: {
+ "--slot-1": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "counter-set:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "custom-ident var(--slot-2) custom-ident 1",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "counter-set:branch:0:repeat:term:0:type:counter-name:term:0:type:custom-ident",
+ ],
+ value: "custom-ident 1 var(--slot-3)1",
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "counter-set:branch:0:repeat:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "custom-ident 1 custom-ident var(--slot-4)",
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "counter-set",
+ syntax: "[ <counter-name> <integer>? ]+ | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "cursor:term:0:repeat:term:0:type:url",
+ "cursor:term:0:repeat:term:1:repeat:term:0:type:x",
+ "cursor:term:0:repeat:term:1:repeat:term:1:type:y",
+ "cursor:term:0:repeat:term:0:type:url",
+ "cursor:term:0:repeat:term:1:repeat:term:0:type:x",
+ "cursor:term:0:repeat:term:1:repeat:term:1:type:y",
+ "cursor:term:1:type:cursor-predefined:branch:0:keyword:auto",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3),var(--slot-4) var(--slot-5) var(--slot-6),var(--slot-7)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ "--slot-2": "1",
+ "--slot-3": "1",
+ "--slot-4": "url(hero.png)",
+ "--slot-5": "1",
+ "--slot-6": "1",
+ "--slot-7": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["cursor:term:0:repeat:term:0:type:url"],
+ value: "var(--slot-1)1 1,url(hero.png)1 1,auto",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["cursor:term:0:repeat:term:1:repeat:term:0:type:x"],
+ value: "url(hero.png)var(--slot-2)1,url(hero.png)1 1,auto",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["cursor:term:0:repeat:term:1:repeat:term:1:type:y"],
+ value: "url(hero.png)1 var(--slot-3),url(hero.png)1 1,auto",
+ variables: {
+ "--slot-3": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["cursor:term:0:repeat:term:0:type:url"],
+ value: "url(hero.png)1 1,var(--slot-4)1 1,auto",
+ variables: {
+ "--slot-4": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: ["cursor:term:0:repeat:term:1:repeat:term:0:type:x"],
+ value: "url(hero.png)1 1,url(hero.png)var(--slot-5)1,auto",
+ variables: {
+ "--slot-5": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: ["cursor:term:0:repeat:term:1:repeat:term:1:type:y"],
+ value: "url(hero.png)1 1,url(hero.png)1 var(--slot-6),auto",
+ variables: {
+ "--slot-6": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "cursor:term:1:type:cursor-predefined:branch:0:keyword:auto",
+ ],
+ value: "url(hero.png)1 1,url(hero.png)1 1,var(--slot-7)",
+ variables: {
+ "--slot-7": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "cursor",
+ syntax: "[ [ <url> [ <x> <y> ]? , ]* <cursor-predefined> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["cx:branch:1:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "cx",
+ syntax: "<length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["cy:branch:1:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "cy",
+ syntax: "<length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["d:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["d:branch:1:term:1:type:string"],
+ value: "path(var(--slot-1))",
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "d",
+ syntax: "none | path(<string>)",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["direction:branch:1:keyword:rtl"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "rtl",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "direction",
+ syntax: "ltr | rtl",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "display:branch:4:type:display-legacy:branch:0:keyword:inline-block",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "inline-block",
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "display:branch:0:term:0:type:display-outside:branch:0:keyword:block",
+ "display:branch:0:term:1:type:display-inside:branch:0:keyword:flow",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "block",
+ "--slot-2": "flow",
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: [
+ "display:branch:0:term:0:type:display-outside:branch:0:keyword:block",
+ ],
+ value: "var(--slot-1) flow",
+ variables: {
+ "--slot-1": "block",
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: [
+ "display:branch:0:term:1:type:display-inside:branch:0:keyword:flow",
+ ],
+ value: "block var(--slot-2)",
+ variables: {
+ "--slot-2": "flow",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "display",
+ syntax:
+ "[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["dominant-baseline:branch:3:keyword:ideographic"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "ideographic",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "dominant-baseline",
+ syntax:
+ "auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["dynamic-range-limit:branch:2:keyword:constrained"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "constrained",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "dynamic-range-limit",
+ syntax: "standard | no-limit | constrained | <dynamic-range-limit-mix()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["empty-cells:branch:1:keyword:hide"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "hide",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "empty-cells",
+ syntax: "show | hide",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["field-sizing:branch:1:keyword:fixed"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "fixed",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "field-sizing",
+ syntax: "content | fixed",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["fill:term:0:type:paint:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "fill",
+ syntax: "<paint>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "fill-opacity:term:0:property:opacity:term:0:type:opacity-value:branch:0:type:number",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "fill-opacity",
+ syntax: "<'opacity'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["fill-rule:branch:1:keyword:evenodd"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "evenodd",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "fill-rule",
+ syntax: "nonzero | evenodd",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["filter:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ "filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ "--slot-2": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ ],
+ value: "var(--slot-1)url(hero.png)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "filter:branch:1:type:filter-value-list:term:0:repeat:branch:1:type:url",
+ ],
+ value: "url(hero.png)var(--slot-2)",
+ variables: {
+ "--slot-2": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "filter",
+ syntax: "none | <filter-value-list>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["flex:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "flex:branch:1:term:0:term:0:property:flex-grow:term:0:type:number",
+ "flex:branch:1:term:0:term:1:repeat:property:flex-shrink:term:0:type:number",
+ "flex:branch:1:term:1:property:flex-basis:branch:0:keyword:content",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1",
+ "--slot-2": "1",
+ "--slot-3": "content",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "flex:branch:1:term:0:term:0:property:flex-grow:term:0:type:number",
+ ],
+ value: "var(--slot-1)1 content",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "flex:branch:1:term:0:term:1:repeat:property:flex-shrink:term:0:type:number",
+ ],
+ value: "1 var(--slot-2) content",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "flex:branch:1:term:1:property:flex-basis:branch:0:keyword:content",
+ ],
+ value: "1 1 var(--slot-3)",
+ variables: {
+ "--slot-3": "content",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "flex",
+ syntax: "none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["flex-basis:branch:1:property:width:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "flex-basis",
+ syntax: "content | <'width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["flex-direction:branch:3:keyword:column-reverse"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "column-reverse",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "flex-direction",
+ syntax: "row | row-reverse | column | column-reverse",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "flex-flow:term:0:property:flex-direction:branch:0:keyword:row",
+ "flex-flow:term:1:property:flex-wrap:branch:0:keyword:nowrap",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "row",
+ "--slot-2": "nowrap",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "flex-flow:term:0:property:flex-direction:branch:0:keyword:row",
+ ],
+ value: "var(--slot-1) nowrap",
+ variables: {
+ "--slot-1": "row",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "flex-flow:term:1:property:flex-wrap:branch:0:keyword:nowrap",
+ ],
+ value: "row var(--slot-2)",
+ variables: {
+ "--slot-2": "nowrap",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "flex-flow",
+ syntax: "<'flex-direction'> || <'flex-wrap'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["flex-grow:term:0:type:number"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "flex-grow",
+ syntax: "<number>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["flex-shrink:term:0:type:number"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "flex-shrink",
+ syntax: "<number>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["flex-wrap:branch:2:keyword:wrap-reverse"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "wrap-reverse",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "flex-wrap",
+ syntax: "nowrap | wrap | wrap-reverse",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["float:branch:3:keyword:inline-start"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "inline-start",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "float",
+ syntax: "left | right | none | inline-start | inline-end",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "flood-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "flood-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "flood-opacity:term:0:property:opacity:term:0:type:opacity-value:branch:0:type:number",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "flood-opacity",
+ syntax: "<'opacity'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "font-style",
+ "font-weight",
+ "font-size",
+ "line-height",
+ "font-family",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3)/var(--slot-4) var(--slot-5)",
+ variables: {
+ "--slot-1": "italic",
+ "--slot-2": "700",
+ "--slot-3": "16px",
+ "--slot-4": "1.5",
+ "--slot-5": "serif",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-style"],
+ value: "var(--slot-1)700 16px/1.5 serif",
+ variables: {
+ "--slot-1": "italic",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["font-weight"],
+ value: "italic var(--slot-2) 16px/1.5 serif",
+ variables: {
+ "--slot-2": "700",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["font-size"],
+ value: "italic 700 var(--slot-3)/1.5 serif",
+ variables: {
+ "--slot-3": "16px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["line-height"],
+ value: "italic 700 16px/var(--slot-4) serif",
+ variables: {
+ "--slot-4": "1.5",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: ["font-family"],
+ value: "italic 700 16px/1.5 var(--slot-5)",
+ variables: {
+ "--slot-5": "serif",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "font",
+ syntax:
+ "[ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-family-name>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "font-family:term:0:repeat:branch:0:type:family-name:branch:0:type:string",
+ "font-family:term:0:repeat:branch:0:type:family-name:branch:0:type:string",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": '"x"',
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "font-family:term:0:repeat:branch:0:type:family-name:branch:0:type:string",
+ ],
+ value: 'var(--slot-1),"x"',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "font-family:term:0:repeat:branch:0:type:family-name:branch:0:type:string",
+ ],
+ value: '"x",var(--slot-2)',
+ variables: {
+ "--slot-2": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-family",
+ syntax: "[ <family-name> | <generic-family> ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-feature-settings:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:0:type:string",
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:1:repeat:branch:0:type:integer:term:0:type:number-token",
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:0:type:string",
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:1:repeat:branch:0:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1) var(--slot-2),var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": "1",
+ "--slot-3": '"x"',
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:0:type:string",
+ ],
+ value: 'var(--slot-1)1,"x"1',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:1:repeat:branch:0:type:integer:term:0:type:number-token",
+ ],
+ value: '"x"var(--slot-2),"x"1',
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:0:type:string",
+ ],
+ value: '"x"1,var(--slot-3)1',
+ variables: {
+ "--slot-3": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "font-feature-settings:branch:1:repeat:type:feature-tag-value:term:1:repeat:branch:0:type:integer:term:0:type:number-token",
+ ],
+ value: '"x"1,"x"var(--slot-4)',
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-feature-settings",
+ syntax: "normal | <feature-tag-value>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["font-kerning:branch:2:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-kerning",
+ syntax: "auto | normal | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-language-override:branch:1:type:string"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-language-override",
+ syntax: "normal | <string>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-optical-sizing:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-optical-sizing",
+ syntax: "auto | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: [
+ "font-palette:branch:3:type:palette-identifier:term:0:type:dashed-ident",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-palette",
+ syntax: "normal | light | dark | <palette-identifier> | <palette-mix()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["font-size:branch:3:keyword:math"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "math",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-size",
+ syntax:
+ "<absolute-size> | <relative-size> | <length-percentage [0,∞]> | math",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-size-adjust:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "font-size-adjust:branch:1:term:0:repeat:branch:0:keyword:ex-height",
+ "font-size-adjust:branch:1:term:1:branch:0:keyword:from-font",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "ex-height",
+ "--slot-2": "from-font",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "font-size-adjust:branch:1:term:0:repeat:branch:0:keyword:ex-height",
+ ],
+ value: "var(--slot-1) from-font",
+ variables: {
+ "--slot-1": "ex-height",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "font-size-adjust:branch:1:term:1:branch:0:keyword:from-font",
+ ],
+ value: "ex-height var(--slot-2)",
+ variables: {
+ "--slot-2": "from-font",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-size-adjust",
+ syntax:
+ "none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-style:branch:1:keyword:italic"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "italic",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "font-style:branch:2:term:0:keyword:oblique",
+ "font-style:branch:2:term:1:repeat:type:angle",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "oblique",
+ "--slot-2": "1deg",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["font-style:branch:2:term:0:keyword:oblique"],
+ value: "var(--slot-1) 1deg",
+ variables: {
+ "--slot-1": "oblique",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["font-style:branch:2:term:1:repeat:type:angle"],
+ value: "oblique var(--slot-2)",
+ variables: {
+ "--slot-2": "1deg",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-style",
+ syntax: "normal | italic | oblique <angle>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-synthesis:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "font-synthesis:branch:1:term:0:keyword:weight",
+ "font-synthesis:branch:1:term:1:keyword:style",
+ "font-synthesis:branch:1:term:2:keyword:small-caps",
+ "font-synthesis:branch:1:term:3:keyword:position",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "weight",
+ "--slot-2": "style",
+ "--slot-3": "small-caps",
+ "--slot-4": "position",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-synthesis:branch:1:term:0:keyword:weight"],
+ value: "var(--slot-1) style small-caps position",
+ variables: {
+ "--slot-1": "weight",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["font-synthesis:branch:1:term:1:keyword:style"],
+ value: "weight var(--slot-2) small-caps position",
+ variables: {
+ "--slot-2": "style",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["font-synthesis:branch:1:term:2:keyword:small-caps"],
+ value: "weight style var(--slot-3) position",
+ variables: {
+ "--slot-3": "small-caps",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: ["font-synthesis:branch:1:term:3:keyword:position"],
+ value: "weight style small-caps var(--slot-4)",
+ variables: {
+ "--slot-4": "position",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-synthesis",
+ syntax: "none | [ weight || style || small-caps || position]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-synthesis-small-caps:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-synthesis-small-caps",
+ syntax: "auto | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-synthesis-style:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-synthesis-style",
+ syntax: "auto | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-synthesis-weight:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-synthesis-weight",
+ syntax: "auto | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-variant:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "font-variant:branch:2:term:0:type:common-lig-values:branch:0:keyword:common-ligatures",
+ "font-variant:branch:2:term:1:type:discretionary-lig-values:branch:0:keyword:discretionary-ligatures",
+ "font-variant:branch:2:term:2:type:historical-lig-values:branch:0:keyword:historical-ligatures",
+ "font-variant:branch:2:term:3:type:contextual-alt-values:branch:0:keyword:contextual",
+ "font-variant:branch:2:term:4:term:1:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:5:keyword:historical-forms",
+ "font-variant:branch:2:term:6:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:6:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:7:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:7:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:8:term:1:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:9:term:1:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:10:term:1:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant:branch:2:term:11:branch:0:keyword:small-caps",
+ "font-variant:branch:2:term:12:type:numeric-figure-values:branch:0:keyword:lining-nums",
+ "font-variant:branch:2:term:13:type:numeric-spacing-values:branch:0:keyword:proportional-nums",
+ "font-variant:branch:2:term:14:type:numeric-fraction-values:branch:0:keyword:diagonal-fractions",
+ "font-variant:branch:2:term:15:keyword:ordinal",
+ "font-variant:branch:2:term:16:keyword:slashed-zero",
+ "font-variant:branch:2:term:17:type:east-asian-variant-values:branch:0:keyword:jis78",
+ "font-variant:branch:2:term:18:type:east-asian-width-values:branch:0:keyword:full-width",
+ "font-variant:branch:2:term:19:keyword:ruby",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) stylistic(var(--slot-5)) var(--slot-6) styleset(var(--slot-7),var(--slot-8)) character-variant(var(--slot-9),var(--slot-10)) swash(var(--slot-11)) ornaments(var(--slot-12)) annotation(var(--slot-13)) var(--slot-14) var(--slot-15) var(--slot-16) var(--slot-17) var(--slot-18) var(--slot-19) var(--slot-20) var(--slot-21) var(--slot-22)",
+ variables: {
+ "--slot-1": "common-ligatures",
+ "--slot-2": "discretionary-ligatures",
+ "--slot-3": "historical-ligatures",
+ "--slot-4": "contextual",
+ "--slot-5": "custom-ident",
+ "--slot-6": "historical-forms",
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": "custom-ident",
+ "--slot-10": "custom-ident",
+ "--slot-11": "custom-ident",
+ "--slot-12": "custom-ident",
+ "--slot-13": "custom-ident",
+ "--slot-14": "small-caps",
+ "--slot-15": "lining-nums",
+ "--slot-16": "proportional-nums",
+ "--slot-17": "diagonal-fractions",
+ "--slot-18": "ordinal",
+ "--slot-19": "slashed-zero",
+ "--slot-20": "jis78",
+ "--slot-21": "full-width",
+ "--slot-22": "ruby",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "font-variant:branch:2:term:0:type:common-lig-values:branch:0:keyword:common-ligatures",
+ ],
+ value:
+ "var(--slot-1) discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-1": "common-ligatures",
+ },
+ },
+ {
+ id: "pattern-3-slot-10",
+ positions: [
+ "font-variant:branch:2:term:7:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,var(--slot-10)) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-10": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-11",
+ positions: [
+ "font-variant:branch:2:term:8:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(var(--slot-11)) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-11": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-12",
+ positions: [
+ "font-variant:branch:2:term:9:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(var(--slot-12)) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-12": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-13",
+ positions: [
+ "font-variant:branch:2:term:10:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(var(--slot-13)) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-13": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-14",
+ positions: [
+ "font-variant:branch:2:term:11:branch:0:keyword:small-caps",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) var(--slot-14) lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-14": "small-caps",
+ },
+ },
+ {
+ id: "pattern-3-slot-15",
+ positions: [
+ "font-variant:branch:2:term:12:type:numeric-figure-values:branch:0:keyword:lining-nums",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps var(--slot-15) proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-15": "lining-nums",
+ },
+ },
+ {
+ id: "pattern-3-slot-16",
+ positions: [
+ "font-variant:branch:2:term:13:type:numeric-spacing-values:branch:0:keyword:proportional-nums",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums var(--slot-16) diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-16": "proportional-nums",
+ },
+ },
+ {
+ id: "pattern-3-slot-17",
+ positions: [
+ "font-variant:branch:2:term:14:type:numeric-fraction-values:branch:0:keyword:diagonal-fractions",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums var(--slot-17) ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-17": "diagonal-fractions",
+ },
+ },
+ {
+ id: "pattern-3-slot-18",
+ positions: ["font-variant:branch:2:term:15:keyword:ordinal"],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions var(--slot-18) slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-18": "ordinal",
+ },
+ },
+ {
+ id: "pattern-3-slot-19",
+ positions: ["font-variant:branch:2:term:16:keyword:slashed-zero"],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal var(--slot-19) jis78 full-width ruby",
+ variables: {
+ "--slot-19": "slashed-zero",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "font-variant:branch:2:term:1:type:discretionary-lig-values:branch:0:keyword:discretionary-ligatures",
+ ],
+ value:
+ "common-ligatures var(--slot-2) historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-2": "discretionary-ligatures",
+ },
+ },
+ {
+ id: "pattern-3-slot-20",
+ positions: [
+ "font-variant:branch:2:term:17:type:east-asian-variant-values:branch:0:keyword:jis78",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero var(--slot-20) full-width ruby",
+ variables: {
+ "--slot-20": "jis78",
+ },
+ },
+ {
+ id: "pattern-3-slot-21",
+ positions: [
+ "font-variant:branch:2:term:18:type:east-asian-width-values:branch:0:keyword:full-width",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 var(--slot-21) ruby",
+ variables: {
+ "--slot-21": "full-width",
+ },
+ },
+ {
+ id: "pattern-3-slot-22",
+ positions: ["font-variant:branch:2:term:19:keyword:ruby"],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width var(--slot-22)",
+ variables: {
+ "--slot-22": "ruby",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "font-variant:branch:2:term:2:type:historical-lig-values:branch:0:keyword:historical-ligatures",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures var(--slot-3) contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-3": "historical-ligatures",
+ },
+ },
+ {
+ id: "pattern-3-slot-4",
+ positions: [
+ "font-variant:branch:2:term:3:type:contextual-alt-values:branch:0:keyword:contextual",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures var(--slot-4) stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-4": "contextual",
+ },
+ },
+ {
+ id: "pattern-3-slot-5",
+ positions: [
+ "font-variant:branch:2:term:4:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(var(--slot-5)) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-5": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-6",
+ positions: ["font-variant:branch:2:term:5:keyword:historical-forms"],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) var(--slot-6) styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-6": "historical-forms",
+ },
+ },
+ {
+ id: "pattern-3-slot-7",
+ positions: [
+ "font-variant:branch:2:term:6:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(var(--slot-7),custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-8",
+ positions: [
+ "font-variant:branch:2:term:6:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,var(--slot-8)) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-9",
+ positions: [
+ "font-variant:branch:2:term:7:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures contextual stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(var(--slot-9),custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident) small-caps lining-nums proportional-nums diagonal-fractions ordinal slashed-zero jis78 full-width ruby",
+ variables: {
+ "--slot-9": "custom-ident",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant",
+ syntax:
+ "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-variant-alternates:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "font-variant-alternates:branch:1:term:0:term:1:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant-alternates:branch:1:term:1:keyword:historical-forms",
+ "font-variant-alternates:branch:1:term:2:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant-alternates:branch:1:term:2:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant-alternates:branch:1:term:3:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant-alternates:branch:1:term:3:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant-alternates:branch:1:term:4:term:1:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant-alternates:branch:1:term:5:term:1:type:feature-value-name:term:0:type:custom-ident",
+ "font-variant-alternates:branch:1:term:6:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(var(--slot-1)) var(--slot-2) styleset(var(--slot-3),var(--slot-4)) character-variant(var(--slot-5),var(--slot-6)) swash(var(--slot-7)) ornaments(var(--slot-8)) annotation(var(--slot-9))",
+ variables: {
+ "--slot-1": "custom-ident",
+ "--slot-2": "historical-forms",
+ "--slot-3": "custom-ident",
+ "--slot-4": "custom-ident",
+ "--slot-5": "custom-ident",
+ "--slot-6": "custom-ident",
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "font-variant-alternates:branch:1:term:0:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(var(--slot-1)) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident)",
+ variables: {
+ "--slot-1": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "font-variant-alternates:branch:1:term:1:keyword:historical-forms",
+ ],
+ value:
+ "stylistic(custom-ident) var(--slot-2) styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident)",
+ variables: {
+ "--slot-2": "historical-forms",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "font-variant-alternates:branch:1:term:2:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(custom-ident) historical-forms styleset(var(--slot-3),custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident)",
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "font-variant-alternates:branch:1:term:2:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(custom-ident) historical-forms styleset(custom-ident,var(--slot-4)) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident)",
+ variables: {
+ "--slot-4": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "font-variant-alternates:branch:1:term:3:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(var(--slot-5),custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident)",
+ variables: {
+ "--slot-5": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-6",
+ positions: [
+ "font-variant-alternates:branch:1:term:3:term:1:repeat:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,var(--slot-6)) swash(custom-ident) ornaments(custom-ident) annotation(custom-ident)",
+ variables: {
+ "--slot-6": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-7",
+ positions: [
+ "font-variant-alternates:branch:1:term:4:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(var(--slot-7)) ornaments(custom-ident) annotation(custom-ident)",
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-8",
+ positions: [
+ "font-variant-alternates:branch:1:term:5:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(var(--slot-8)) annotation(custom-ident)",
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-9",
+ positions: [
+ "font-variant-alternates:branch:1:term:6:term:1:type:feature-value-name:term:0:type:custom-ident",
+ ],
+ value:
+ "stylistic(custom-ident) historical-forms styleset(custom-ident,custom-ident) character-variant(custom-ident,custom-ident) swash(custom-ident) ornaments(custom-ident) annotation(var(--slot-9))",
+ variables: {
+ "--slot-9": "custom-ident",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant-alternates",
+ syntax:
+ "normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["font-variant-caps:branch:3:keyword:petite-caps"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "petite-caps",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant-caps",
+ syntax:
+ "normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-variant-east-asian:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "font-variant-east-asian:branch:1:term:0:type:east-asian-variant-values:branch:0:keyword:jis78",
+ "font-variant-east-asian:branch:1:term:1:type:east-asian-width-values:branch:0:keyword:full-width",
+ "font-variant-east-asian:branch:1:term:2:keyword:ruby",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "jis78",
+ "--slot-2": "full-width",
+ "--slot-3": "ruby",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "font-variant-east-asian:branch:1:term:0:type:east-asian-variant-values:branch:0:keyword:jis78",
+ ],
+ value: "var(--slot-1) full-width ruby",
+ variables: {
+ "--slot-1": "jis78",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "font-variant-east-asian:branch:1:term:1:type:east-asian-width-values:branch:0:keyword:full-width",
+ ],
+ value: "jis78 var(--slot-2) ruby",
+ variables: {
+ "--slot-2": "full-width",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["font-variant-east-asian:branch:1:term:2:keyword:ruby"],
+ value: "jis78 full-width var(--slot-3)",
+ variables: {
+ "--slot-3": "ruby",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant-east-asian",
+ syntax:
+ "normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["font-variant-emoji:branch:3:keyword:unicode"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "unicode",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant-emoji",
+ syntax: "normal | text | emoji | unicode",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["font-variant-ligatures:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "font-variant-ligatures:branch:2:term:0:type:common-lig-values:branch:0:keyword:common-ligatures",
+ "font-variant-ligatures:branch:2:term:1:type:discretionary-lig-values:branch:0:keyword:discretionary-ligatures",
+ "font-variant-ligatures:branch:2:term:2:type:historical-lig-values:branch:0:keyword:historical-ligatures",
+ "font-variant-ligatures:branch:2:term:3:type:contextual-alt-values:branch:0:keyword:contextual",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "common-ligatures",
+ "--slot-2": "discretionary-ligatures",
+ "--slot-3": "historical-ligatures",
+ "--slot-4": "contextual",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "font-variant-ligatures:branch:2:term:0:type:common-lig-values:branch:0:keyword:common-ligatures",
+ ],
+ value:
+ "var(--slot-1) discretionary-ligatures historical-ligatures contextual",
+ variables: {
+ "--slot-1": "common-ligatures",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "font-variant-ligatures:branch:2:term:1:type:discretionary-lig-values:branch:0:keyword:discretionary-ligatures",
+ ],
+ value: "common-ligatures var(--slot-2) historical-ligatures contextual",
+ variables: {
+ "--slot-2": "discretionary-ligatures",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "font-variant-ligatures:branch:2:term:2:type:historical-lig-values:branch:0:keyword:historical-ligatures",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures var(--slot-3) contextual",
+ variables: {
+ "--slot-3": "historical-ligatures",
+ },
+ },
+ {
+ id: "pattern-3-slot-4",
+ positions: [
+ "font-variant-ligatures:branch:2:term:3:type:contextual-alt-values:branch:0:keyword:contextual",
+ ],
+ value:
+ "common-ligatures discretionary-ligatures historical-ligatures var(--slot-4)",
+ variables: {
+ "--slot-4": "contextual",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant-ligatures",
+ syntax:
+ "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-variant-numeric:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "font-variant-numeric:branch:1:term:0:type:numeric-figure-values:branch:0:keyword:lining-nums",
+ "font-variant-numeric:branch:1:term:1:type:numeric-spacing-values:branch:0:keyword:proportional-nums",
+ "font-variant-numeric:branch:1:term:2:type:numeric-fraction-values:branch:0:keyword:diagonal-fractions",
+ "font-variant-numeric:branch:1:term:3:keyword:ordinal",
+ "font-variant-numeric:branch:1:term:4:keyword:slashed-zero",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5)",
+ variables: {
+ "--slot-1": "lining-nums",
+ "--slot-2": "proportional-nums",
+ "--slot-3": "diagonal-fractions",
+ "--slot-4": "ordinal",
+ "--slot-5": "slashed-zero",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "font-variant-numeric:branch:1:term:0:type:numeric-figure-values:branch:0:keyword:lining-nums",
+ ],
+ value:
+ "var(--slot-1) proportional-nums diagonal-fractions ordinal slashed-zero",
+ variables: {
+ "--slot-1": "lining-nums",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "font-variant-numeric:branch:1:term:1:type:numeric-spacing-values:branch:0:keyword:proportional-nums",
+ ],
+ value:
+ "lining-nums var(--slot-2) diagonal-fractions ordinal slashed-zero",
+ variables: {
+ "--slot-2": "proportional-nums",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "font-variant-numeric:branch:1:term:2:type:numeric-fraction-values:branch:0:keyword:diagonal-fractions",
+ ],
+ value:
+ "lining-nums proportional-nums var(--slot-3) ordinal slashed-zero",
+ variables: {
+ "--slot-3": "diagonal-fractions",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: ["font-variant-numeric:branch:1:term:3:keyword:ordinal"],
+ value:
+ "lining-nums proportional-nums diagonal-fractions var(--slot-4) slashed-zero",
+ variables: {
+ "--slot-4": "ordinal",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "font-variant-numeric:branch:1:term:4:keyword:slashed-zero",
+ ],
+ value:
+ "lining-nums proportional-nums diagonal-fractions ordinal var(--slot-5)",
+ variables: {
+ "--slot-5": "slashed-zero",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant-numeric",
+ syntax:
+ "normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["font-variant-position:branch:2:keyword:super"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "super",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variant-position",
+ syntax: "normal | sub | super",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["font-variation-settings:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "font-variation-settings:branch:1:repeat:term:0:type:string",
+ "font-variation-settings:branch:1:repeat:term:1:type:number",
+ "font-variation-settings:branch:1:repeat:term:0:type:string",
+ "font-variation-settings:branch:1:repeat:term:1:type:number",
+ ],
+ value: "var(--slot-1) var(--slot-2),var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": "1",
+ "--slot-3": '"x"',
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "font-variation-settings:branch:1:repeat:term:0:type:string",
+ ],
+ value: 'var(--slot-1)1,"x"1',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "font-variation-settings:branch:1:repeat:term:1:type:number",
+ ],
+ value: '"x"var(--slot-2),"x"1',
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "font-variation-settings:branch:1:repeat:term:0:type:string",
+ ],
+ value: '"x"1,var(--slot-3)1',
+ variables: {
+ "--slot-3": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "font-variation-settings:branch:1:repeat:term:1:type:number",
+ ],
+ value: '"x"1,"x"var(--slot-4)',
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-variation-settings",
+ syntax: "normal | [ <string> <number> ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["font-weight:branch:2:keyword:lighter"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "lighter",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "font-weight",
+ syntax: "<font-weight-absolute> | bolder | lighter",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "forced-color-adjust:branch:2:keyword:preserve-parent-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "preserve-parent-color",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "forced-color-adjust",
+ syntax: "auto | none | preserve-parent-color",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "gap:term:0:property:row-gap:branch:0:keyword:normal",
+ "gap:term:1:repeat:property:column-gap:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["gap:term:0:property:row-gap:branch:0:keyword:normal"],
+ value: "var(--slot-1) normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "gap:term:1:repeat:property:column-gap:branch:0:keyword:normal",
+ ],
+ value: "normal var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "gap",
+ syntax: "<'row-gap'> <'column-gap'>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "grid:branch:0:property:grid-template:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "grid:branch:1:term:0:property:grid-template-rows:branch:0:keyword:none",
+ "grid:branch:1:term:2:term:0:keyword:auto-flow",
+ "grid:branch:1:term:2:term:1:repeat:keyword:dense",
+ "grid:branch:1:term:3:repeat:property:grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid:branch:1:term:3:repeat:property:grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ "var(--slot-1)/var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "auto-flow",
+ "--slot-3": "dense",
+ "--slot-4": "1px",
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "grid:branch:1:term:0:property:grid-template-rows:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)/auto-flow dense 1px 1px",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["grid:branch:1:term:2:term:0:keyword:auto-flow"],
+ value: "none/var(--slot-2) dense 1px 1px",
+ variables: {
+ "--slot-2": "auto-flow",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["grid:branch:1:term:2:term:1:repeat:keyword:dense"],
+ value: "none/auto-flow var(--slot-3) 1px 1px",
+ variables: {
+ "--slot-3": "dense",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "grid:branch:1:term:3:repeat:property:grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "none/auto-flow dense var(--slot-4) 1px",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "grid:branch:1:term:3:repeat:property:grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "none/auto-flow dense 1px var(--slot-5)",
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "grid:branch:2:term:0:term:0:keyword:auto-flow",
+ "grid:branch:2:term:0:term:1:repeat:keyword:dense",
+ "grid:branch:2:term:1:repeat:property:grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid:branch:2:term:1:repeat:property:grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid:branch:2:term:3:property:grid-template-columns:branch:0:keyword:none",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)/var(--slot-5)",
+ variables: {
+ "--slot-1": "auto-flow",
+ "--slot-2": "dense",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ "--slot-5": "none",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["grid:branch:2:term:0:term:0:keyword:auto-flow"],
+ value: "var(--slot-1) dense 1px 1px/none",
+ variables: {
+ "--slot-1": "auto-flow",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["grid:branch:2:term:0:term:1:repeat:keyword:dense"],
+ value: "auto-flow var(--slot-2) 1px 1px/none",
+ variables: {
+ "--slot-2": "dense",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "grid:branch:2:term:1:repeat:property:grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "auto-flow dense var(--slot-3) 1px/none",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-4",
+ positions: [
+ "grid:branch:2:term:1:repeat:property:grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "auto-flow dense 1px var(--slot-4)/none",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-5",
+ positions: [
+ "grid:branch:2:term:3:property:grid-template-columns:branch:0:keyword:none",
+ ],
+ value: "auto-flow dense 1px 1px/var(--slot-5)",
+ variables: {
+ "--slot-5": "none",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "grid",
+ syntax:
+ "<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "grid-area:term:0:type:grid-line:branch:0:keyword:auto",
+ "grid-area:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ "grid-area:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ "grid-area:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)/var(--slot-2)/var(--slot-3)/var(--slot-4)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ "--slot-3": "auto",
+ "--slot-4": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-area:term:0:type:grid-line:branch:0:keyword:auto"],
+ value: "var(--slot-1)/auto/auto/auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "grid-area:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "auto/var(--slot-2)/auto/auto",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "grid-area:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "auto/auto/var(--slot-3)/auto",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "grid-area:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "auto/auto/auto/var(--slot-4)",
+ variables: {
+ "--slot-4": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "grid-area",
+ syntax: "<grid-line> [ / <grid-line> ]{0,3}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "grid-auto-columns:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-auto-columns",
+ syntax: "<track-size>+",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-2",
+ positions: ["grid-auto-flow:term:1:keyword:dense"],
+ value: "row var(--slot-2)",
+ variables: {
+ "--slot-2": "dense",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "grid-auto-flow:term:0:branch:1:keyword:column",
+ "grid-auto-flow:term:1:keyword:dense",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "column",
+ "--slot-2": "dense",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["grid-auto-flow:term:0:branch:1:keyword:column"],
+ value: "var(--slot-1) dense",
+ variables: {
+ "--slot-1": "column",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["grid-auto-flow:term:1:keyword:dense"],
+ value: "column var(--slot-2)",
+ variables: {
+ "--slot-2": "dense",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-auto-flow",
+ syntax: "[ row | column ] || dense",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "grid-auto-rows:term:0:repeat:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-auto-rows",
+ syntax: "<track-size>+",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "grid-column:term:0:type:grid-line:branch:0:keyword:auto",
+ "grid-column:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)/var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-column:term:0:type:grid-line:branch:0:keyword:auto"],
+ value: "var(--slot-1)/auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "grid-column:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "auto/var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "grid-column",
+ syntax: "<grid-line> [ / <grid-line> ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "grid-column-end:term:0:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-column-end",
+ syntax: "<grid-line>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "grid-column-start:term:0:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-column-start",
+ syntax: "<grid-line>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "grid-row:term:0:type:grid-line:branch:0:keyword:auto",
+ "grid-row:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)/var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-row:term:0:type:grid-line:branch:0:keyword:auto"],
+ value: "var(--slot-1)/auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "grid-row:term:1:repeat:term:1:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "auto/var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "grid-row",
+ syntax: "<grid-line> [ / <grid-line> ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-row-end:term:0:type:grid-line:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-row-end",
+ syntax: "<grid-line>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "grid-row-start:term:0:type:grid-line:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-row-start",
+ syntax: "<grid-line>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: ["grid-template-rows", "grid-template-columns"],
+ value: "var(--slot-1)/var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1fr",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-template-rows"],
+ value: "var(--slot-1)/1fr",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["grid-template-columns"],
+ value: "1px/var(--slot-2)",
+ variables: {
+ "--slot-2": "1fr",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "grid-template-areas",
+ "grid-template-row-size",
+ "grid-template-explicit-columns",
+ ],
+ value: "var(--slot-1) var(--slot-2)/var(--slot-3)",
+ variables: {
+ "--slot-1": '"a"',
+ "--slot-2": "1px",
+ "--slot-3": "1fr",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["grid-template-areas"],
+ value: "var(--slot-1) 1px/1fr",
+ variables: {
+ "--slot-1": '"a"',
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["grid-template-row-size"],
+ value: '"a"var(--slot-2)/1fr',
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["grid-template-explicit-columns"],
+ value: '"a"1px/var(--slot-3)',
+ variables: {
+ "--slot-3": "1fr",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "grid-template",
+ syntax:
+ "none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-template-areas:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "grid-template-areas:branch:1:repeat:type:string",
+ "grid-template-areas:branch:1:repeat:type:string",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["grid-template-areas:branch:1:repeat:type:string"],
+ value: 'var(--slot-1)"x"',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["grid-template-areas:branch:1:repeat:type:string"],
+ value: '"x"var(--slot-2)',
+ variables: {
+ "--slot-2": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-template-areas",
+ syntax: "none | <string>+",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-template-columns:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "grid-template-columns:branch:3:term:0:keyword:subgrid",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9)",
+ variables: {
+ "--slot-1": "subgrid",
+ "--slot-2": '"x"',
+ "--slot-3": "custom-ident",
+ "--slot-4": "custom-ident",
+ "--slot-5": '"x"',
+ "--slot-6": '"x"',
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["grid-template-columns:branch:3:term:0:keyword:subgrid"],
+ value:
+ 'var(--slot-1)"x"custom-ident custom-ident"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-1": "subgrid",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ ],
+ value:
+ 'subgrid var(--slot-2) custom-ident custom-ident"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-2": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"var(--slot-3) custom-ident"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"custom-ident var(--slot-4)"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-4": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident var(--slot-5)"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-5": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-6",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x"var(--slot-6) custom-ident custom-ident"x"',
+ variables: {
+ "--slot-6": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-7",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x""x"var(--slot-7) custom-ident"x"',
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-8",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x""x"custom-ident var(--slot-8)"x"',
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-9",
+ positions: [
+ "grid-template-columns:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x""x"custom-ident custom-ident var(--slot-9)',
+ variables: {
+ "--slot-9": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10) var(--slot-11) var(--slot-12) var(--slot-13) var(--slot-14)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": "custom-ident",
+ "--slot-3": "custom-ident",
+ "--slot-4": '"x"',
+ "--slot-5": "1px",
+ "--slot-6": '"x"',
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": '"x"',
+ "--slot-10": "1px",
+ "--slot-11": '"x"',
+ "--slot-12": "custom-ident",
+ "--slot-13": "custom-ident",
+ "--slot-14": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ 'var(--slot-1) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-10",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-10)"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-10": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-11",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-11) custom-ident custom-ident"x"',
+ variables: {
+ "--slot-11": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-12",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-12) custom-ident"x"',
+ variables: {
+ "--slot-12": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-13",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-13)"x"',
+ variables: {
+ "--slot-13": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-14",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:1:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-14)',
+ variables: {
+ "--slot-14": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"var(--slot-2) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-2": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident var(--slot-3)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-4",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident var(--slot-4) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-4": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-5",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"var(--slot-5)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-6",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px var(--slot-6) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-6": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-7",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"var(--slot-7) custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-8",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-8)"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-9",
+ positions: [
+ "grid-template-columns:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-9) 1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-9": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:1:branch:0:keyword:auto-fill",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:0:string",
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10) var(--slot-11) var(--slot-12) var(--slot-13) var(--slot-14) repeat(var(--slot-15),var(--slot-16) var(--slot-17) var(--slot-18) var(--slot-19) var(--slot-20) var(--slot-21) var(--slot-22) var(--slot-23) var(--slot-24) var(--slot-25) var(--slot-26) var(--slot-27) var(--slot-28) var(--slot-29)) var(--slot-30) var(--slot-31) var(--slot-32) var(--slot-33) var(--slot-34) var(--slot-35) var(--slot-36) var(--slot-37) var(--slot-38) var(--slot-39) var(--slot-40) var(--slot-41) var(--slot-42) var(--slot-43)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": "custom-ident",
+ "--slot-3": "custom-ident",
+ "--slot-4": '"x"',
+ "--slot-5": "1px",
+ "--slot-6": '"x"',
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": '"x"',
+ "--slot-10": "1px",
+ "--slot-11": '"x"',
+ "--slot-12": "custom-ident",
+ "--slot-13": "custom-ident",
+ "--slot-14": '"x"',
+ "--slot-15": "auto-fill",
+ "--slot-16": '"x"',
+ "--slot-17": "custom-ident",
+ "--slot-18": "custom-ident",
+ "--slot-19": '"x"',
+ "--slot-20": "1px",
+ "--slot-21": '"x"',
+ "--slot-22": "custom-ident",
+ "--slot-23": "custom-ident",
+ "--slot-24": '"x"',
+ "--slot-25": "1px",
+ "--slot-26": '"x"',
+ "--slot-27": "custom-ident",
+ "--slot-28": "custom-ident",
+ "--slot-29": '"x"',
+ "--slot-30": '"x"',
+ "--slot-31": "custom-ident",
+ "--slot-32": "custom-ident",
+ "--slot-33": '"x"',
+ "--slot-34": "1px",
+ "--slot-35": '"x"',
+ "--slot-36": "custom-ident",
+ "--slot-37": "custom-ident",
+ "--slot-38": '"x"',
+ "--slot-39": "1px",
+ "--slot-40": '"x"',
+ "--slot-41": "custom-ident",
+ "--slot-42": "custom-ident",
+ "--slot-43": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ 'var(--slot-1) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-10",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-10)"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-10": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-11",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-11) custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-11": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-12",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-12) custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-12": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-13",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-13)"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-13": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-14",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-14) repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-14": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-15",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:1:branch:0:keyword:auto-fill",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(var(--slot-15),"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-15": "auto-fill",
+ },
+ },
+ {
+ id: "pattern-4-slot-16",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,var(--slot-16) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-16": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-17",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"var(--slot-17) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-17": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-18",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident var(--slot-18)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-18": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-19",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident var(--slot-19) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-19": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"var(--slot-2) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-2": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-20",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"var(--slot-20)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-20": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-21",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px var(--slot-21) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-21": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-22",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"var(--slot-22) custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-22": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-23",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-23)"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-23": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-24",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-24) 1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-24": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-25",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-25)"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-25": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-26",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-26) custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-26": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-27",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-27) custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-27": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-28",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-28)"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-28": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-29",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-29))"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-29": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-3",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident var(--slot-3)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-30",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x") var(--slot-30) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-30": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-31",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"var(--slot-31) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-31": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-32",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident var(--slot-32)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-32": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-33",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident var(--slot-33) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-33": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-34",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"var(--slot-34)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-34": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-35",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px var(--slot-35) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-35": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-36",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"var(--slot-36) custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-36": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-37",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-37)"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-37": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-38",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-38) 1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-38": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-39",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-39)"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-39": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-4",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident var(--slot-4) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-4": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-40",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-40) custom-ident custom-ident"x"',
+ variables: {
+ "--slot-40": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-41",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-41) custom-ident"x"',
+ variables: {
+ "--slot-41": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-42",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-42)"x"',
+ variables: {
+ "--slot-42": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-43",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-43)',
+ variables: {
+ "--slot-43": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-5",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"var(--slot-5)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-6",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px var(--slot-6) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-6": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-7",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"var(--slot-7) custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-8",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-8)"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-9",
+ positions: [
+ "grid-template-columns:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-9) 1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-9": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-template-columns",
+ syntax:
+ "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["grid-template-rows:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "grid-template-rows:branch:3:term:0:keyword:subgrid",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9)",
+ variables: {
+ "--slot-1": "subgrid",
+ "--slot-2": '"x"',
+ "--slot-3": "custom-ident",
+ "--slot-4": "custom-ident",
+ "--slot-5": '"x"',
+ "--slot-6": '"x"',
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["grid-template-rows:branch:3:term:0:keyword:subgrid"],
+ value:
+ 'var(--slot-1)"x"custom-ident custom-ident"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-1": "subgrid",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ ],
+ value:
+ 'subgrid var(--slot-2) custom-ident custom-ident"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-2": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"var(--slot-3) custom-ident"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"custom-ident var(--slot-4)"x""x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-4": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident var(--slot-5)"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-5": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-6",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:0:string",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x"var(--slot-6) custom-ident custom-ident"x"',
+ variables: {
+ "--slot-6": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-7",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x""x"var(--slot-7) custom-ident"x"',
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-8",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x""x"custom-ident var(--slot-8)"x"',
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-9",
+ positions: [
+ "grid-template-rows:branch:3:term:1:repeat:type:line-name-list:term:0:repeat:branch:0:type:line-names:term:2:string",
+ ],
+ value:
+ 'subgrid"x"custom-ident custom-ident"x""x"custom-ident custom-ident var(--slot-9)',
+ variables: {
+ "--slot-9": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10) var(--slot-11) var(--slot-12) var(--slot-13) var(--slot-14)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": "custom-ident",
+ "--slot-3": "custom-ident",
+ "--slot-4": '"x"',
+ "--slot-5": "1px",
+ "--slot-6": '"x"',
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": '"x"',
+ "--slot-10": "1px",
+ "--slot-11": '"x"',
+ "--slot-12": "custom-ident",
+ "--slot-13": "custom-ident",
+ "--slot-14": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ 'var(--slot-1) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-10",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-10)"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-10": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-11",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-11) custom-ident custom-ident"x"',
+ variables: {
+ "--slot-11": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-12",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-12) custom-ident"x"',
+ variables: {
+ "--slot-12": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-13",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-13)"x"',
+ variables: {
+ "--slot-13": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-14",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:1:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-14)',
+ variables: {
+ "--slot-14": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"var(--slot-2) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-2": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident var(--slot-3)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-4",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident var(--slot-4) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-4": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-5",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:1:branch:0:type:track-size:branch:0:type:track-breadth:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"var(--slot-5)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-6",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px var(--slot-6) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-6": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-7",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"var(--slot-7) custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-8",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-8)"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-9",
+ positions: [
+ "grid-template-rows:branch:1:type:track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-9) 1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-9": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:1:branch:0:keyword:auto-fill",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:0:string",
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10) var(--slot-11) var(--slot-12) var(--slot-13) var(--slot-14) repeat(var(--slot-15),var(--slot-16) var(--slot-17) var(--slot-18) var(--slot-19) var(--slot-20) var(--slot-21) var(--slot-22) var(--slot-23) var(--slot-24) var(--slot-25) var(--slot-26) var(--slot-27) var(--slot-28) var(--slot-29)) var(--slot-30) var(--slot-31) var(--slot-32) var(--slot-33) var(--slot-34) var(--slot-35) var(--slot-36) var(--slot-37) var(--slot-38) var(--slot-39) var(--slot-40) var(--slot-41) var(--slot-42) var(--slot-43)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": "custom-ident",
+ "--slot-3": "custom-ident",
+ "--slot-4": '"x"',
+ "--slot-5": "1px",
+ "--slot-6": '"x"',
+ "--slot-7": "custom-ident",
+ "--slot-8": "custom-ident",
+ "--slot-9": '"x"',
+ "--slot-10": "1px",
+ "--slot-11": '"x"',
+ "--slot-12": "custom-ident",
+ "--slot-13": "custom-ident",
+ "--slot-14": '"x"',
+ "--slot-15": "auto-fill",
+ "--slot-16": '"x"',
+ "--slot-17": "custom-ident",
+ "--slot-18": "custom-ident",
+ "--slot-19": '"x"',
+ "--slot-20": "1px",
+ "--slot-21": '"x"',
+ "--slot-22": "custom-ident",
+ "--slot-23": "custom-ident",
+ "--slot-24": '"x"',
+ "--slot-25": "1px",
+ "--slot-26": '"x"',
+ "--slot-27": "custom-ident",
+ "--slot-28": "custom-ident",
+ "--slot-29": '"x"',
+ "--slot-30": '"x"',
+ "--slot-31": "custom-ident",
+ "--slot-32": "custom-ident",
+ "--slot-33": '"x"',
+ "--slot-34": "1px",
+ "--slot-35": '"x"',
+ "--slot-36": "custom-ident",
+ "--slot-37": "custom-ident",
+ "--slot-38": '"x"',
+ "--slot-39": "1px",
+ "--slot-40": '"x"',
+ "--slot-41": "custom-ident",
+ "--slot-42": "custom-ident",
+ "--slot-43": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ 'var(--slot-1) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-10",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-10)"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-10": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-11",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-11) custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-11": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-12",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-12) custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-12": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-13",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-13)"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-13": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-14",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:1:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-14) repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-14": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-15",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:1:branch:0:keyword:auto-fill",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(var(--slot-15),"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-15": "auto-fill",
+ },
+ },
+ {
+ id: "pattern-4-slot-16",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,var(--slot-16) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-16": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-17",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"var(--slot-17) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-17": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-18",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident var(--slot-18)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-18": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-19",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident var(--slot-19) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-19": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"var(--slot-2) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-2": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-20",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"var(--slot-20)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-20": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-21",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px var(--slot-21) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-21": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-22",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"var(--slot-22) custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-22": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-23",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-23)"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-23": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-24",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-24) 1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-24": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-25",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:3:repeat:term:1:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-25)"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-25": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-26",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-26) custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-26": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-27",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-27) custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-27": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-28",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-28)"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-28": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-29",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:2:type:auto-repeat:term:4:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-29))"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-29": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-3",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident var(--slot-3)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-3": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-30",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x") var(--slot-30) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-30": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-31",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"var(--slot-31) custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-31": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-32",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident var(--slot-32)"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-32": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-33",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident var(--slot-33) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-33": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-34",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"var(--slot-34)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-34": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-35",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px var(--slot-35) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-35": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-36",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"var(--slot-36) custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-36": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-37",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-37)"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-37": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-38",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-38) 1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-38": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-39",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:3:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"var(--slot-39)"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-39": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-4",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident var(--slot-4) 1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-4": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-40",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px var(--slot-40) custom-ident custom-ident"x"',
+ variables: {
+ "--slot-40": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-41",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"var(--slot-41) custom-ident"x"',
+ variables: {
+ "--slot-41": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-42",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-42)"x"',
+ variables: {
+ "--slot-42": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-43",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:4:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-43)',
+ variables: {
+ "--slot-43": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-5",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:1:branch:0:type:fixed-size:branch:0:type:fixed-breadth:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"var(--slot-5)"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-4-slot-6",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:0:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px var(--slot-6) custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-6": '"x"',
+ },
+ },
+ {
+ id: "pattern-4-slot-7",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"var(--slot-7) custom-ident"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-7": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-8",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:1:repeat:type:custom-ident",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident var(--slot-8)"x"1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-8": "custom-ident",
+ },
+ },
+ {
+ id: "pattern-4-slot-9",
+ positions: [
+ "grid-template-rows:branch:2:type:auto-track-list:term:0:repeat:term:0:repeat:type:line-names:term:2:string",
+ ],
+ value:
+ '"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident var(--slot-9) 1px"x"custom-ident custom-ident"x"repeat(auto-fill,"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x")"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"1px"x"custom-ident custom-ident"x"',
+ variables: {
+ "--slot-9": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "grid-template-rows",
+ syntax:
+ "none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["hanging-punctuation:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "hanging-punctuation:branch:1:term:0:keyword:first",
+ "hanging-punctuation:branch:1:term:1:branch:0:keyword:force-end",
+ "hanging-punctuation:branch:1:term:2:keyword:last",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "first",
+ "--slot-2": "force-end",
+ "--slot-3": "last",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["hanging-punctuation:branch:1:term:0:keyword:first"],
+ value: "var(--slot-1) force-end last",
+ variables: {
+ "--slot-1": "first",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "hanging-punctuation:branch:1:term:1:branch:0:keyword:force-end",
+ ],
+ value: "first var(--slot-2) last",
+ variables: {
+ "--slot-2": "force-end",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["hanging-punctuation:branch:1:term:2:keyword:last"],
+ value: "first force-end var(--slot-3)",
+ variables: {
+ "--slot-3": "last",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "hanging-punctuation",
+ syntax: "none | [ first || [ force-end | allow-end ] || last ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["height:branch:3:keyword:max-content"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "max-content",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "height",
+ syntax:
+ "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["hyphenate-character:branch:1:type:string"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "hyphenate-character",
+ syntax: "auto | <string>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "hyphenate-limit-chars:term:0:repeat:branch:0:keyword:auto",
+ "hyphenate-limit-chars:term:0:repeat:branch:0:keyword:auto",
+ "hyphenate-limit-chars:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "hyphenate-limit-chars:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) auto auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "hyphenate-limit-chars:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto var(--slot-2) auto",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "hyphenate-limit-chars:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto auto var(--slot-3)",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "hyphenate-limit-chars",
+ syntax: "[ auto | <integer> ]{1,3}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["hyphens:branch:2:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "hyphens",
+ syntax: "none | manual | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["image-orientation:branch:1:type:angle"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1deg",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "image-orientation:branch:2:term:0:repeat:type:angle",
+ "image-orientation:branch:2:term:1:keyword:flip",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1deg",
+ "--slot-2": "flip",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["image-orientation:branch:2:term:0:repeat:type:angle"],
+ value: "var(--slot-1) flip",
+ variables: {
+ "--slot-1": "1deg",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["image-orientation:branch:2:term:1:keyword:flip"],
+ value: "1deg var(--slot-2)",
+ variables: {
+ "--slot-2": "flip",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "image-orientation",
+ syntax: "from-image | <angle> | [ <angle>? flip ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["image-rendering:branch:3:keyword:smooth"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "smooth",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "image-rendering",
+ syntax: "auto | crisp-edges | pixelated | smooth",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["initial-letter:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "initial-letter:branch:1:term:0:type:number",
+ "initial-letter:branch:1:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1",
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["initial-letter:branch:1:term:0:type:number"],
+ value: "var(--slot-1)1",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "initial-letter:branch:1:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "1 var(--slot-2)",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "initial-letter",
+ syntax: "normal | [ <number> <integer>? ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["inline-size:term:0:property:width:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "inline-size",
+ syntax: "<'width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "inset:term:0:repeat:property:top:branch:0:keyword:auto",
+ "inset:term:0:repeat:property:top:branch:0:keyword:auto",
+ "inset:term:0:repeat:property:top:branch:0:keyword:auto",
+ "inset:term:0:repeat:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ "--slot-3": "auto",
+ "--slot-4": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["inset:term:0:repeat:property:top:branch:0:keyword:auto"],
+ value: "var(--slot-1) auto auto auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["inset:term:0:repeat:property:top:branch:0:keyword:auto"],
+ value: "auto var(--slot-2) auto auto",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["inset:term:0:repeat:property:top:branch:0:keyword:auto"],
+ value: "auto auto var(--slot-3) auto",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["inset:term:0:repeat:property:top:branch:0:keyword:auto"],
+ value: "auto auto auto var(--slot-4)",
+ variables: {
+ "--slot-4": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "inset",
+ syntax: "<'top'>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "inset-block:term:0:repeat:property:top:branch:0:keyword:auto",
+ "inset-block:term:0:repeat:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "inset-block:term:0:repeat:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "inset-block:term:0:repeat:property:top:branch:0:keyword:auto",
+ ],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "inset-block",
+ syntax: "<'top'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "inset-block-end:term:0:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "inset-block-end",
+ syntax: "<'top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "inset-block-start:term:0:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "inset-block-start",
+ syntax: "<'top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "inset-inline:term:0:repeat:property:top:branch:0:keyword:auto",
+ "inset-inline:term:0:repeat:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "inset-inline:term:0:repeat:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "inset-inline:term:0:repeat:property:top:branch:0:keyword:auto",
+ ],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "inset-inline",
+ syntax: "<'top'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "inset-inline-end:term:0:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "inset-inline-end",
+ syntax: "<'top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "inset-inline-start:term:0:property:top:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "inset-inline-start",
+ syntax: "<'top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["interactivity:branch:1:keyword:inert"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "inert",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "interactivity",
+ syntax: "auto | inert",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "interest-delay:term:0:repeat:property:interest-delay-start:branch:0:keyword:normal",
+ "interest-delay:term:0:repeat:property:interest-delay-start:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "interest-delay:term:0:repeat:property:interest-delay-start:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "interest-delay:term:0:repeat:property:interest-delay-start:branch:0:keyword:normal",
+ ],
+ value: "normal var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "interest-delay",
+ syntax: "<'interest-delay-start'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["interest-delay-end:branch:1:type:time"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1s",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "interest-delay-end",
+ syntax: "normal | <time>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["interest-delay-start:branch:1:type:time"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1s",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "interest-delay-start",
+ syntax: "normal | <time>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["isolation:branch:1:keyword:isolate"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "isolate",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "isolation",
+ syntax: "auto | isolate",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "justify-content:branch:1:type:content-distribution:branch:0:keyword:space-between",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "space-between",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "justify-content:branch:2:term:0:repeat:type:overflow-position:branch:0:keyword:unsafe",
+ "justify-content:branch:2:term:1:branch:0:type:content-position:branch:0:keyword:center",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "unsafe",
+ "--slot-2": "center",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "justify-content:branch:2:term:0:repeat:type:overflow-position:branch:0:keyword:unsafe",
+ ],
+ value: "var(--slot-1) center",
+ variables: {
+ "--slot-1": "unsafe",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "justify-content:branch:2:term:1:branch:0:type:content-position:branch:0:keyword:center",
+ ],
+ value: "unsafe var(--slot-2)",
+ variables: {
+ "--slot-2": "center",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "justify-content",
+ syntax:
+ "normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["justify-items:branch:6:keyword:anchor-center"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "anchor-center",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "justify-items",
+ syntax:
+ "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ] | anchor-center",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["justify-self:branch:5:keyword:anchor-center"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "anchor-center",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "justify-self",
+ syntax:
+ "auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | anchor-center",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "left:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "left:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "left:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "left:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "left:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "left:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "left:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "left",
+ syntax: "auto | <length-percentage> | <anchor()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["letter-spacing:branch:1:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "letter-spacing",
+ syntax: "normal | <length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "lighting-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "lighting-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["line-break:branch:3:keyword:strict"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "strict",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "line-break",
+ syntax: "auto | loose | normal | strict | anywhere",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "line-clamp:branch:1:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "line-clamp",
+ syntax: "none | <integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["line-height:branch:3:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "line-height",
+ syntax: "normal | <number> | <length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "list-style-type",
+ "list-style-position",
+ "list-style-image",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "disc",
+ "--slot-2": "inside",
+ "--slot-3": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["list-style-type"],
+ value: "var(--slot-1) inside url(hero.png)",
+ variables: {
+ "--slot-1": "disc",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["list-style-position"],
+ value: "disc var(--slot-2)url(hero.png)",
+ variables: {
+ "--slot-2": "inside",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["list-style-image"],
+ value: "disc inside var(--slot-3)",
+ variables: {
+ "--slot-3": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "list-style",
+ syntax:
+ "<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["list-style-image:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "list-style-image",
+ syntax: "<image> | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["list-style-position:branch:1:keyword:outside"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "outside",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "list-style-position",
+ syntax: "inside | outside",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["list-style-type:branch:2:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "list-style-type",
+ syntax: "<counter-style> | <string> | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "margin:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "margin",
+ syntax: "<'margin-top'>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "margin-block:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ "margin-block:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "margin-block:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "margin-block:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "margin-block",
+ syntax: "<'margin-top'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "margin-block-end:term:0:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-block-end",
+ syntax: "<'margin-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "margin-block-start:term:0:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-block-start",
+ syntax: "<'margin-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["margin-bottom:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "margin-bottom:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "margin-bottom:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "margin-bottom:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "margin-bottom:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "margin-bottom:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "margin-bottom:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-bottom",
+ syntax: "<length-percentage> | auto | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "margin-inline:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ "margin-inline:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "margin-inline:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "margin-inline:term:0:repeat:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "margin-inline",
+ syntax: "<'margin-top'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "margin-inline-end:term:0:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-inline-end",
+ syntax: "<'margin-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "margin-inline-start:term:0:property:margin-top:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-inline-start",
+ syntax: "<'margin-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["margin-left:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "margin-left:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "margin-left:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "margin-left:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "margin-left:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "margin-left:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "margin-left:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-left",
+ syntax: "<length-percentage> | auto | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["margin-right:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "margin-right:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "margin-right:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "margin-right:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "margin-right:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "margin-right:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "margin-right:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-right",
+ syntax: "<length-percentage> | auto | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["margin-top:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "margin-top:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "margin-top:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "margin-top:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "margin-top:branch:2:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "margin-top:branch:2:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "margin-top:branch:2:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "margin-top",
+ syntax: "<length-percentage> | auto | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["marker:branch:1:type:url"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "marker",
+ syntax: "none | <url>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["marker-end:branch:1:type:url"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "marker-end",
+ syntax: "none | <url>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["marker-mid:branch:1:type:url"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "marker-mid",
+ syntax: "none | <url>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["marker-start:branch:1:type:url"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "marker-start",
+ syntax: "none | <url>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:0:type:mask-reference:branch:0:keyword:none",
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ "mask:term:0:repeat:type:mask-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ "mask:term:0:repeat:type:mask-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ "mask:term:0:repeat:type:mask-layer:term:3:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "mask:term:0:repeat:type:mask-layer:term:4:branch:0:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "mask:term:0:repeat:type:mask-layer:term:5:type:compositing-operator:branch:0:keyword:add",
+ "mask:term:0:repeat:type:mask-layer:term:6:type:masking-mode:branch:0:keyword:alpha",
+ "mask:term:0:repeat:type:mask-layer:term:0:type:mask-reference:branch:0:keyword:none",
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ "mask:term:0:repeat:type:mask-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ "mask:term:0:repeat:type:mask-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ "mask:term:0:repeat:type:mask-layer:term:3:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "mask:term:0:repeat:type:mask-layer:term:4:branch:0:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "mask:term:0:repeat:type:mask-layer:term:5:type:compositing-operator:branch:0:keyword:add",
+ "mask:term:0:repeat:type:mask-layer:term:6:type:masking-mode:branch:0:keyword:alpha",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3)/var(--slot-4) var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9),var(--slot-10) var(--slot-11) var(--slot-12)/var(--slot-13) var(--slot-14) var(--slot-15) var(--slot-16) var(--slot-17) var(--slot-18)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "left",
+ "--slot-3": "top",
+ "--slot-4": "cover",
+ "--slot-5": "repeat-x",
+ "--slot-6": "content-box",
+ "--slot-7": "content-box",
+ "--slot-8": "add",
+ "--slot-9": "alpha",
+ "--slot-10": "none",
+ "--slot-11": "left",
+ "--slot-12": "top",
+ "--slot-13": "cover",
+ "--slot-14": "repeat-x",
+ "--slot-15": "content-box",
+ "--slot-16": "content-box",
+ "--slot-17": "add",
+ "--slot-18": "alpha",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:0:type:mask-reference:branch:0:keyword:none",
+ ],
+ value:
+ "var(--slot-1) left top/cover repeat-x content-box content-box add alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-10",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:0:type:mask-reference:branch:0:keyword:none",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,var(--slot-10) left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-10": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-11",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none var(--slot-11) top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-11": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-12",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none left var(--slot-12)/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-12": "top",
+ },
+ },
+ {
+ id: "pattern-1-slot-13",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none left top/var(--slot-13) repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-13": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-14",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none left top/cover var(--slot-14) content-box content-box add alpha",
+ variables: {
+ "--slot-14": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-15",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:3:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none left top/cover repeat-x var(--slot-15) content-box add alpha",
+ variables: {
+ "--slot-15": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-16",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:4:branch:0:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none left top/cover repeat-x content-box var(--slot-16) add alpha",
+ variables: {
+ "--slot-16": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-17",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:5:type:compositing-operator:branch:0:keyword:add",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none left top/cover repeat-x content-box content-box var(--slot-17) alpha",
+ variables: {
+ "--slot-17": "add",
+ },
+ },
+ {
+ id: "pattern-1-slot-18",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:6:type:masking-mode:branch:0:keyword:alpha",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add alpha,none left top/cover repeat-x content-box content-box add var(--slot-18)",
+ variables: {
+ "--slot-18": "alpha",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value:
+ "none var(--slot-2) top/cover repeat-x content-box content-box add alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-2": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:1:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value:
+ "none left var(--slot-3)/cover repeat-x content-box content-box add alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-3": "top",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:1:term:1:repeat:term:1:type:bg-size:branch:1:keyword:cover",
+ ],
+ value:
+ "none left top/var(--slot-4) repeat-x content-box content-box add alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-4": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:2:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value:
+ "none left top/cover var(--slot-5) content-box content-box add alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-5": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:3:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "none left top/cover repeat-x var(--slot-6) content-box add alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-6": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:4:branch:0:type:geometry-box:branch:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value:
+ "none left top/cover repeat-x content-box var(--slot-7) add alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-7": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:5:type:compositing-operator:branch:0:keyword:add",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box var(--slot-8) alpha,none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-8": "add",
+ },
+ },
+ {
+ id: "pattern-1-slot-9",
+ positions: [
+ "mask:term:0:repeat:type:mask-layer:term:6:type:masking-mode:branch:0:keyword:alpha",
+ ],
+ value:
+ "none left top/cover repeat-x content-box content-box add var(--slot-9),none left top/cover repeat-x content-box content-box add alpha",
+ variables: {
+ "--slot-9": "alpha",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "mask",
+ syntax: "<mask-layer>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-border:term:0:property:mask-border-source:branch:0:keyword:none",
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border:term:1:term:0:property:mask-border-slice:term:1:repeat:keyword:fill",
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ "mask-border:term:2:property:mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ "mask-border:term:2:property:mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ "mask-border:term:3:property:mask-border-mode:branch:0:keyword:luminance",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5) var(--slot-6)/var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10)/var(--slot-11) var(--slot-12) var(--slot-13) var(--slot-14) var(--slot-15) var(--slot-16) var(--slot-17)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "1",
+ "--slot-3": "1",
+ "--slot-4": "1",
+ "--slot-5": "1",
+ "--slot-6": "fill",
+ "--slot-7": "1px",
+ "--slot-8": "1px",
+ "--slot-9": "1px",
+ "--slot-10": "1px",
+ "--slot-11": "1px",
+ "--slot-12": "1px",
+ "--slot-13": "1px",
+ "--slot-14": "1px",
+ "--slot-15": "stretch",
+ "--slot-16": "stretch",
+ "--slot-17": "luminance",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-border:term:0:property:mask-border-source:branch:0:keyword:none",
+ ],
+ value:
+ "var(--slot-1)1 1 1 1 fill/1px 1px 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-10",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px var(--slot-10)/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-10": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-11",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px 1px/var(--slot-11) 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-11": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-12",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px 1px/1px var(--slot-12) 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-12": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-13",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px 1px/1px 1px var(--slot-13) 1px stretch stretch luminance",
+ variables: {
+ "--slot-13": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-14",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:2:repeat:term:1:property:mask-border-outset:term:0:repeat:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px 1px/1px 1px 1px var(--slot-14) stretch stretch luminance",
+ variables: {
+ "--slot-14": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-15",
+ positions: [
+ "mask-border:term:2:property:mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px 1px/1px 1px 1px 1px var(--slot-15) stretch luminance",
+ variables: {
+ "--slot-15": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-16",
+ positions: [
+ "mask-border:term:2:property:mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px 1px/1px 1px 1px 1px stretch var(--slot-16) luminance",
+ variables: {
+ "--slot-16": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-17",
+ positions: [
+ "mask-border:term:3:property:mask-border-mode:branch:0:keyword:luminance",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px 1px 1px/1px 1px 1px 1px stretch stretch var(--slot-17)",
+ variables: {
+ "--slot-17": "luminance",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value:
+ "none var(--slot-2)1 1 1 fill/1px 1px 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value:
+ "none 1 var(--slot-3)1 1 fill/1px 1px 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-3": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value:
+ "none 1 1 var(--slot-4)1 fill/1px 1px 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "mask-border:term:1:term:0:property:mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value:
+ "none 1 1 1 var(--slot-5) fill/1px 1px 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-5": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "mask-border:term:1:term:0:property:mask-border-slice:term:1:repeat:keyword:fill",
+ ],
+ value:
+ "none 1 1 1 1 var(--slot-6)/1px 1px 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-6": "fill",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/var(--slot-7) 1px 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-7": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px var(--slot-8) 1px 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-8": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-9",
+ positions: [
+ "mask-border:term:1:term:1:repeat:term:1:repeat:property:mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value:
+ "none 1 1 1 1 fill/1px 1px var(--slot-9) 1px/1px 1px 1px 1px stretch stretch luminance",
+ variables: {
+ "--slot-9": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "mask-border",
+ syntax:
+ "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["mask-border-mode:branch:1:keyword:alpha"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "alpha",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-border-mode",
+ syntax: "luminance | alpha",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-border-outset:term:0:repeat:branch:0:type:length",
+ "mask-border-outset:term:0:repeat:branch:0:type:length",
+ "mask-border-outset:term:0:repeat:branch:0:type:length",
+ "mask-border-outset:term:0:repeat:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["mask-border-outset:term:0:repeat:branch:0:type:length"],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["mask-border-outset:term:0:repeat:branch:0:type:length"],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["mask-border-outset:term:0:repeat:branch:0:type:length"],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["mask-border-outset:term:0:repeat:branch:0:type:length"],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-border-outset",
+ syntax: "[ <length> | <number> ]{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ "mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "stretch",
+ "--slot-2": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "var(--slot-1) stretch",
+ variables: {
+ "--slot-1": "stretch",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-border-repeat:term:0:repeat:branch:0:keyword:stretch",
+ ],
+ value: "stretch var(--slot-2)",
+ variables: {
+ "--slot-2": "stretch",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-border-repeat",
+ syntax: "[ stretch | repeat | round | space ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ "mask-border-slice:term:1:repeat:keyword:fill",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5)",
+ variables: {
+ "--slot-1": "1",
+ "--slot-2": "1",
+ "--slot-3": "1",
+ "--slot-4": "1",
+ "--slot-5": "fill",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value: "var(--slot-1)1 1 1 fill",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value: "1 var(--slot-2)1 1 fill",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value: "1 1 var(--slot-3)1 fill",
+ variables: {
+ "--slot-3": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "mask-border-slice:term:0:repeat:type:number-percentage:branch:0:type:number",
+ ],
+ value: "1 1 1 var(--slot-4) fill",
+ variables: {
+ "--slot-4": "1",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: ["mask-border-slice:term:1:repeat:keyword:fill"],
+ value: "1 1 1 1 var(--slot-5)",
+ variables: {
+ "--slot-5": "fill",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-border-slice",
+ syntax: "<number-percentage>{1,4} fill?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["mask-border-source:branch:1:type:image:branch:0:type:url"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-border-source",
+ syntax: "none | <image>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "mask-border-width:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-border-width",
+ syntax: "[ <length-percentage> | <number> | auto ]{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-clip:term:0:repeat:branch:0:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "mask-clip:term:0:repeat:branch:0:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "content-box",
+ "--slot-2": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-clip:term:0:repeat:branch:0:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),content-box",
+ variables: {
+ "--slot-1": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-clip:term:0:repeat:branch:0:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "content-box,var(--slot-2)",
+ variables: {
+ "--slot-2": "content-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-clip",
+ syntax: "[ <coord-box> | no-clip ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-composite:term:0:repeat:type:compositing-operator:branch:0:keyword:add",
+ "mask-composite:term:0:repeat:type:compositing-operator:branch:0:keyword:add",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "add",
+ "--slot-2": "add",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-composite:term:0:repeat:type:compositing-operator:branch:0:keyword:add",
+ ],
+ value: "var(--slot-1),add",
+ variables: {
+ "--slot-1": "add",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-composite:term:0:repeat:type:compositing-operator:branch:0:keyword:add",
+ ],
+ value: "add,var(--slot-2)",
+ variables: {
+ "--slot-2": "add",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-composite",
+ syntax: "<compositing-operator>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-image:term:0:repeat:type:mask-reference:branch:0:keyword:none",
+ "mask-image:term:0:repeat:type:mask-reference:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-image:term:0:repeat:type:mask-reference:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1),none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-image:term:0:repeat:type:mask-reference:branch:0:keyword:none",
+ ],
+ value: "none,var(--slot-2)",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-image",
+ syntax: "<mask-reference>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-mode:term:0:repeat:type:masking-mode:branch:0:keyword:alpha",
+ "mask-mode:term:0:repeat:type:masking-mode:branch:0:keyword:alpha",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "alpha",
+ "--slot-2": "alpha",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-mode:term:0:repeat:type:masking-mode:branch:0:keyword:alpha",
+ ],
+ value: "var(--slot-1),alpha",
+ variables: {
+ "--slot-1": "alpha",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-mode:term:0:repeat:type:masking-mode:branch:0:keyword:alpha",
+ ],
+ value: "alpha,var(--slot-2)",
+ variables: {
+ "--slot-2": "alpha",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-mode",
+ syntax: "<masking-mode>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-origin:term:0:repeat:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "mask-origin:term:0:repeat:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "content-box",
+ "--slot-2": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-origin:term:0:repeat:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1),content-box",
+ variables: {
+ "--slot-1": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-origin:term:0:repeat:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "content-box,var(--slot-2)",
+ variables: {
+ "--slot-2": "content-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-origin",
+ syntax: "<coord-box>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-position:term:0:repeat:type:position:branch:0:term:0:branch:0:keyword:left",
+ "mask-position:term:0:repeat:type:position:branch:0:term:1:branch:0:keyword:top",
+ "mask-position:term:0:repeat:type:position:branch:0:term:0:branch:0:keyword:left",
+ "mask-position:term:0:repeat:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "var(--slot-1) var(--slot-2),var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "left",
+ "--slot-2": "top",
+ "--slot-3": "left",
+ "--slot-4": "top",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-position:term:0:repeat:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1) top,left top",
+ variables: {
+ "--slot-1": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-position:term:0:repeat:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "left var(--slot-2),left top",
+ variables: {
+ "--slot-2": "top",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "mask-position:term:0:repeat:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value: "left top,var(--slot-3) top",
+ variables: {
+ "--slot-3": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "mask-position:term:0:repeat:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "left top,left var(--slot-4)",
+ variables: {
+ "--slot-4": "top",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-position",
+ syntax: "<position>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ "mask-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "repeat-x",
+ "--slot-2": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value: "var(--slot-1),repeat-x",
+ variables: {
+ "--slot-1": "repeat-x",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-repeat:term:0:repeat:type:repeat-style:branch:0:keyword:repeat-x",
+ ],
+ value: "repeat-x,var(--slot-2)",
+ variables: {
+ "--slot-2": "repeat-x",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-repeat",
+ syntax: "<repeat-style>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "mask-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ "mask-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "cover",
+ "--slot-2": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "mask-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ ],
+ value: "var(--slot-1),cover",
+ variables: {
+ "--slot-1": "cover",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "mask-size:term:0:repeat:type:bg-size:branch:1:keyword:cover",
+ ],
+ value: "cover,var(--slot-2)",
+ variables: {
+ "--slot-2": "cover",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-size",
+ syntax: "<bg-size>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["mask-type:branch:1:keyword:alpha"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "alpha",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mask-type",
+ syntax: "luminance | alpha",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "math-depth:branch:2:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "math-depth:branch:1:term:1:type:integer:term:0:type:number-token",
+ ],
+ value: "add(var(--slot-1))",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "math-depth",
+ syntax: "auto-add | add(<integer>) | <integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["math-style:branch:1:keyword:compact"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "compact",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "math-style",
+ syntax: "normal | compact",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "max-block-size:term:0:property:max-width:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "max-block-size",
+ syntax: "<'max-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["max-height:branch:3:keyword:max-content"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "max-content",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "max-height",
+ syntax:
+ "none | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "max-inline-size:term:0:property:max-width:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "max-inline-size",
+ syntax: "<'max-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["max-width:branch:3:keyword:max-content"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "max-content",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "max-width",
+ syntax:
+ "none | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "min-block-size:term:0:property:min-width:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "min-block-size",
+ syntax: "<'min-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["min-height:branch:3:keyword:max-content"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "max-content",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "min-height",
+ syntax:
+ "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "min-inline-size:term:0:property:min-width:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "min-inline-size",
+ syntax: "<'min-width'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["min-width:branch:3:keyword:max-content"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "max-content",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "min-width",
+ syntax:
+ "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["mix-blend-mode:branch:2:keyword:plus-lighter"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "plus-lighter",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "mix-blend-mode",
+ syntax: "<blend-mode> | plus-darker | plus-lighter",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["object-fit:branch:3:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "object-fit",
+ syntax: "fill | contain | cover | none | scale-down",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "object-position:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ "object-position:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "left",
+ "--slot-2": "top",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "object-position:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1) top",
+ variables: {
+ "--slot-1": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "object-position:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "left var(--slot-2)",
+ variables: {
+ "--slot-2": "top",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "object-position",
+ syntax: "<position>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "offset:term:0:term:0:repeat:property:offset-position:branch:0:keyword:normal",
+ "offset:term:0:term:1:repeat:term:0:property:offset-path:branch:0:keyword:none",
+ "offset:term:0:term:1:repeat:term:1:repeat:term:0:property:offset-distance:term:0:type:length-percentage:branch:0:type:length",
+ "offset:term:0:term:1:repeat:term:1:repeat:term:1:property:offset-rotate:term:0:branch:0:keyword:auto",
+ "offset:term:0:term:1:repeat:term:1:repeat:term:1:property:offset-rotate:term:1:type:angle",
+ "offset:term:1:repeat:term:1:property:offset-anchor:branch:0:keyword:auto",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5)/var(--slot-6)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "none",
+ "--slot-3": "1px",
+ "--slot-4": "auto",
+ "--slot-5": "1deg",
+ "--slot-6": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "offset:term:0:term:0:repeat:property:offset-position:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) none 1px auto 1deg/auto",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "offset:term:0:term:1:repeat:term:0:property:offset-path:branch:0:keyword:none",
+ ],
+ value: "normal var(--slot-2) 1px auto 1deg/auto",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "offset:term:0:term:1:repeat:term:1:repeat:term:0:property:offset-distance:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "normal none var(--slot-3) auto 1deg/auto",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "offset:term:0:term:1:repeat:term:1:repeat:term:1:property:offset-rotate:term:0:branch:0:keyword:auto",
+ ],
+ value: "normal none 1px var(--slot-4) 1deg/auto",
+ variables: {
+ "--slot-4": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "offset:term:0:term:1:repeat:term:1:repeat:term:1:property:offset-rotate:term:1:type:angle",
+ ],
+ value: "normal none 1px auto var(--slot-5)/auto",
+ variables: {
+ "--slot-5": "1deg",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "offset:term:1:repeat:term:1:property:offset-anchor:branch:0:keyword:auto",
+ ],
+ value: "normal none 1px auto 1deg/var(--slot-6)",
+ variables: {
+ "--slot-6": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "offset",
+ syntax:
+ "[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["offset-anchor:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "offset-anchor:branch:1:type:position:branch:0:term:0:branch:0:keyword:left",
+ "offset-anchor:branch:1:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "left",
+ "--slot-2": "top",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "offset-anchor:branch:1:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1) top",
+ variables: {
+ "--slot-1": "left",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "offset-anchor:branch:1:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "left var(--slot-2)",
+ variables: {
+ "--slot-2": "top",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "offset-anchor",
+ syntax: "auto | <position>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "offset-distance:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "offset-distance",
+ syntax: "<length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["offset-path:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "offset-path:branch:1:term:0:type:offset-path:branch:1:type:url",
+ "offset-path:branch:1:term:1:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ "--slot-2": "content-box",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "offset-path:branch:1:term:0:type:offset-path:branch:1:type:url",
+ ],
+ value: "var(--slot-1) content-box",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "offset-path:branch:1:term:1:type:coord-box:branch:0:type:paint-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "url(hero.png)var(--slot-2)",
+ variables: {
+ "--slot-2": "content-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "offset-path",
+ syntax: "none | <offset-path> || <coord-box>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["offset-position:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "offset-position:branch:2:type:position:branch:0:term:0:branch:0:keyword:left",
+ "offset-position:branch:2:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "left",
+ "--slot-2": "top",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "offset-position:branch:2:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1) top",
+ variables: {
+ "--slot-1": "left",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "offset-position:branch:2:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "left var(--slot-2)",
+ variables: {
+ "--slot-2": "top",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "offset-position",
+ syntax: "normal | auto | <position>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-2",
+ positions: ["offset-rotate:term:1:type:angle"],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "1deg",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "offset-rotate:term:0:branch:1:keyword:reverse",
+ "offset-rotate:term:1:type:angle",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "reverse",
+ "--slot-2": "1deg",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["offset-rotate:term:0:branch:1:keyword:reverse"],
+ value: "var(--slot-1) 1deg",
+ variables: {
+ "--slot-1": "reverse",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["offset-rotate:term:1:type:angle"],
+ value: "reverse var(--slot-2)",
+ variables: {
+ "--slot-2": "1deg",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "offset-rotate",
+ syntax: "[ auto | reverse ] || <angle>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["opacity:term:0:type:opacity-value:branch:0:type:number"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "opacity",
+ syntax: "<opacity-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["order:term:0:type:integer:term:0:type:number-token"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "order",
+ syntax: "<integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["orphans:term:0:type:integer:term:0:type:number-token"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "orphans",
+ syntax: "<integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "outline:term:0:property:outline-width:term:0:type:line-width:branch:0:type:length",
+ "outline:term:1:property:outline-style:branch:0:keyword:auto",
+ "outline:term:2:property:outline-color:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "auto",
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "outline:term:0:property:outline-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1) auto auto",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "outline:term:1:property:outline-style:branch:0:keyword:auto",
+ ],
+ value: "1px var(--slot-2) auto",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "outline:term:2:property:outline-color:branch:0:keyword:auto",
+ ],
+ value: "1px auto var(--slot-3)",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "outline",
+ syntax: "<'outline-width'> || <'outline-style'> || <'outline-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "outline-color:branch:1:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "outline-color",
+ syntax: "auto | <color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["outline-offset:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "outline-offset",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "outline-style:branch:1:type:outline-line-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "outline-style",
+ syntax: "auto | <outline-line-style>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "outline-width:term:0:type:line-width:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "outline-width",
+ syntax: "<line-width>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "overflow:term:0:repeat:branch:0:keyword:visible",
+ "overflow:term:0:repeat:branch:0:keyword:visible",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "visible",
+ "--slot-2": "visible",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["overflow:term:0:repeat:branch:0:keyword:visible"],
+ value: "var(--slot-1) visible",
+ variables: {
+ "--slot-1": "visible",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["overflow:term:0:repeat:branch:0:keyword:visible"],
+ value: "visible var(--slot-2)",
+ variables: {
+ "--slot-2": "visible",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow",
+ syntax: "[ visible | hidden | clip | scroll | auto ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["overflow-anchor:branch:1:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow-anchor",
+ syntax: "auto | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["overflow-block:branch:3:keyword:scroll"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "scroll",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow-block",
+ syntax: "visible | hidden | clip | scroll | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "overflow-clip-margin:term:0:type:visual-box:branch:0:keyword:content-box",
+ "overflow-clip-margin:term:1:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "content-box",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "overflow-clip-margin:term:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "content-box",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["overflow-clip-margin:term:1:type:length"],
+ value: "content-box var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow-clip-margin",
+ syntax: "<visual-box> || <length [0,∞]>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["overflow-inline:branch:3:keyword:scroll"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "scroll",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow-inline",
+ syntax: "visible | hidden | clip | scroll | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["overflow-wrap:branch:2:keyword:anywhere"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "anywhere",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow-wrap",
+ syntax: "normal | break-word | anywhere",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["overflow-x:branch:3:keyword:scroll"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "scroll",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow-x",
+ syntax: "visible | hidden | clip | scroll | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["overflow-y:branch:3:keyword:scroll"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "scroll",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overflow-y",
+ syntax: "visible | hidden | clip | scroll | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "overscroll-behavior:term:0:repeat:branch:0:keyword:contain",
+ "overscroll-behavior:term:0:repeat:branch:0:keyword:contain",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "contain",
+ "--slot-2": "contain",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "overscroll-behavior:term:0:repeat:branch:0:keyword:contain",
+ ],
+ value: "var(--slot-1) contain",
+ variables: {
+ "--slot-1": "contain",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "overscroll-behavior:term:0:repeat:branch:0:keyword:contain",
+ ],
+ value: "contain var(--slot-2)",
+ variables: {
+ "--slot-2": "contain",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overscroll-behavior",
+ syntax: "[ contain | none | auto ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["overscroll-behavior-block:branch:2:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overscroll-behavior-block",
+ syntax: "contain | none | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["overscroll-behavior-inline:branch:2:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overscroll-behavior-inline",
+ syntax: "contain | none | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["overscroll-behavior-x:branch:2:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overscroll-behavior-x",
+ syntax: "contain | none | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["overscroll-behavior-y:branch:2:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "overscroll-behavior-y",
+ syntax: "contain | none | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "padding:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "padding",
+ syntax: "<'padding-top'>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "padding-block:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ "padding-block:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-block:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "padding-block:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "padding-block",
+ syntax: "<'padding-top'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-block-end:term:0:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-block-end",
+ syntax: "<'padding-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-block-start:term:0:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-block-start",
+ syntax: "<'padding-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-bottom:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-bottom",
+ syntax: "<length-percentage [0,∞]>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "padding-inline:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ "padding-inline:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-inline:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "padding-inline:term:0:repeat:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "padding-inline",
+ syntax: "<'padding-top'>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-inline-end:term:0:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-inline-end",
+ syntax: "<'padding-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-inline-start:term:0:property:padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-inline-start",
+ syntax: "<'padding-top'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-left:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-left",
+ syntax: "<length-percentage [0,∞]>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-right:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-right",
+ syntax: "<length-percentage [0,∞]>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "padding-top:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "padding-top",
+ syntax: "<length-percentage [0,∞]>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["page:branch:1:type:custom-ident"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "custom-ident",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "page",
+ syntax: "auto | <custom-ident>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["paint-order:branch:0:keyword:normal"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "paint-order:branch:1:term:0:keyword:fill",
+ "paint-order:branch:1:term:1:keyword:stroke",
+ "paint-order:branch:1:term:2:keyword:markers",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "fill",
+ "--slot-2": "stroke",
+ "--slot-3": "markers",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["paint-order:branch:1:term:0:keyword:fill"],
+ value: "var(--slot-1) stroke markers",
+ variables: {
+ "--slot-1": "fill",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["paint-order:branch:1:term:1:keyword:stroke"],
+ value: "fill var(--slot-2) markers",
+ variables: {
+ "--slot-2": "stroke",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["paint-order:branch:1:term:2:keyword:markers"],
+ value: "fill stroke var(--slot-3)",
+ variables: {
+ "--slot-3": "markers",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "paint-order",
+ syntax: "normal | [ fill || stroke || markers ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["perspective:branch:1:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "perspective",
+ syntax: "none | <length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "perspective-origin:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ "perspective-origin:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "left",
+ "--slot-2": "top",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "perspective-origin:term:0:type:position:branch:0:term:0:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1) top",
+ variables: {
+ "--slot-1": "left",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "perspective-origin:term:0:type:position:branch:0:term:1:branch:0:keyword:top",
+ ],
+ value: "left var(--slot-2)",
+ variables: {
+ "--slot-2": "top",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "perspective-origin",
+ syntax: "<position>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "place-content:term:0:property:align-content:branch:0:keyword:normal",
+ "place-content:term:1:repeat:property:justify-content:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "place-content:term:0:property:align-content:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "place-content:term:1:repeat:property:justify-content:branch:0:keyword:normal",
+ ],
+ value: "normal var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "place-content",
+ syntax: "<'align-content'> <'justify-content'>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "place-items:term:0:property:align-items:branch:0:keyword:normal",
+ "place-items:term:1:repeat:property:justify-items:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "place-items:term:0:property:align-items:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1) normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "place-items:term:1:repeat:property:justify-items:branch:0:keyword:normal",
+ ],
+ value: "normal var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "place-items",
+ syntax: "<'align-items'> <'justify-items'>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "place-self:term:0:property:align-self:branch:0:keyword:auto",
+ "place-self:term:1:repeat:property:justify-self:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "place-self:term:0:property:align-self:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "place-self:term:1:repeat:property:justify-self:branch:0:keyword:auto",
+ ],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "place-self",
+ syntax: "<'align-self'> <'justify-self'>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["pointer-events:branch:3:keyword:visibleFill"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "visibleFill",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "pointer-events",
+ syntax:
+ "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["position:branch:3:keyword:sticky"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "sticky",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "position",
+ syntax: "static | relative | absolute | sticky | fixed",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["print-color-adjust:branch:1:keyword:exact"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "exact",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "print-color-adjust",
+ syntax: "economy | exact",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["quotes:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "quotes:branch:2:repeat:term:0:type:string",
+ "quotes:branch:2:repeat:term:1:type:string",
+ "quotes:branch:2:repeat:term:0:type:string",
+ "quotes:branch:2:repeat:term:1:type:string",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": '"x"',
+ "--slot-2": '"x"',
+ "--slot-3": '"x"',
+ "--slot-4": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["quotes:branch:2:repeat:term:0:type:string"],
+ value: 'var(--slot-1)"x""x""x"',
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["quotes:branch:2:repeat:term:1:type:string"],
+ value: '"x"var(--slot-2)"x""x"',
+ variables: {
+ "--slot-2": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: ["quotes:branch:2:repeat:term:0:type:string"],
+ value: '"x""x"var(--slot-3)"x"',
+ variables: {
+ "--slot-3": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-4",
+ positions: ["quotes:branch:2:repeat:term:1:type:string"],
+ value: '"x""x""x"var(--slot-4)',
+ variables: {
+ "--slot-4": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "quotes",
+ syntax: "none | auto | [ <string> <string> ]+",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["r:branch:1:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "r",
+ syntax: "<length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["reading-flow:branch:3:keyword:flex-flow"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "flex-flow",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "reading-flow",
+ syntax:
+ "normal | source-order | flex-visual | flex-flow | grid-rows | grid-columns | grid-order",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "reading-order:term:0:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "reading-order",
+ syntax: "<integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["resize:branch:3:keyword:vertical"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "vertical",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "resize",
+ syntax: "none | both | horizontal | vertical | block | inline",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "right:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "right:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "right:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "right:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "right:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "right:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "right:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "right",
+ syntax: "auto | <length-percentage> | <anchor()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["rotate:branch:1:type:angle"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1deg",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "rotate:branch:2:term:0:branch:0:keyword:x",
+ "rotate:branch:2:term:1:type:angle",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "x",
+ "--slot-2": "1deg",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["rotate:branch:2:term:0:branch:0:keyword:x"],
+ value: "var(--slot-1) 1deg",
+ variables: {
+ "--slot-1": "x",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["rotate:branch:2:term:1:type:angle"],
+ value: "x var(--slot-2)",
+ variables: {
+ "--slot-2": "1deg",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "rotate",
+ syntax: "none | <angle> | [ x | y | z | <number>{3} ] && <angle>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "row-gap:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "row-gap",
+ syntax: "normal | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["ruby-align:branch:3:keyword:space-around"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "space-around",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "ruby-align",
+ syntax: "start | center | space-between | space-around",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["ruby-position:branch:1:keyword:inter-character"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "inter-character",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "ruby-position:branch:0:term:0:keyword:alternate",
+ "ruby-position:branch:0:term:1:branch:0:keyword:over",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "alternate",
+ "--slot-2": "over",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["ruby-position:branch:0:term:0:keyword:alternate"],
+ value: "var(--slot-1) over",
+ variables: {
+ "--slot-1": "alternate",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["ruby-position:branch:0:term:1:branch:0:keyword:over"],
+ value: "alternate var(--slot-2)",
+ variables: {
+ "--slot-2": "over",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "ruby-position",
+ syntax: "[ alternate || [ over | under ] ] | inter-character",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["rx:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "rx",
+ syntax: "<length-percentage> | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["ry:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "ry",
+ syntax: "<length-percentage> | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scale:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "scale:branch:1:repeat:branch:0:type:number",
+ "scale:branch:1:repeat:branch:0:type:number",
+ "scale:branch:1:repeat:branch:0:type:number",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1",
+ "--slot-2": "1",
+ "--slot-3": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["scale:branch:1:repeat:branch:0:type:number"],
+ value: "var(--slot-1)1 1",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["scale:branch:1:repeat:branch:0:type:number"],
+ value: "1 var(--slot-2)1",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: ["scale:branch:1:repeat:branch:0:type:number"],
+ value: "1 1 var(--slot-3)",
+ variables: {
+ "--slot-3": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scale",
+ syntax: "none | [ <number> | <percentage> ]{1,3}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["scroll-behavior:branch:1:keyword:smooth"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "smooth",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-behavior",
+ syntax: "auto | smooth",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "scroll-margin:term:0:repeat:type:length",
+ "scroll-margin:term:0:repeat:type:length",
+ "scroll-margin:term:0:repeat:type:length",
+ "scroll-margin:term:0:repeat:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin:term:0:repeat:type:length"],
+ value: "var(--slot-1) 1px 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["scroll-margin:term:0:repeat:type:length"],
+ value: "1px var(--slot-2) 1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["scroll-margin:term:0:repeat:type:length"],
+ value: "1px 1px var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["scroll-margin:term:0:repeat:type:length"],
+ value: "1px 1px 1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "scroll-margin",
+ syntax: "<length>{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "scroll-margin-block:term:0:repeat:type:length",
+ "scroll-margin-block:term:0:repeat:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-block:term:0:repeat:type:length"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["scroll-margin-block:term:0:repeat:type:length"],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "scroll-margin-block",
+ syntax: "<length>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-block-end:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-block-end",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-block-start:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-block-start",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-bottom:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-bottom",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "scroll-margin-inline:term:0:repeat:type:length",
+ "scroll-margin-inline:term:0:repeat:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-inline:term:0:repeat:type:length"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["scroll-margin-inline:term:0:repeat:type:length"],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "scroll-margin-inline",
+ syntax: "<length>{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-inline-end:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-inline-end",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-inline-start:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-inline-start",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-left:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-left",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-right:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-right",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-margin-top:term:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-margin-top",
+ syntax: "<length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["scroll-marker-group:branch:2:keyword:after"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "after",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-marker-group",
+ syntax: "none | before | after",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "scroll-padding:term:0:repeat:branch:0:keyword:auto",
+ "scroll-padding:term:0:repeat:branch:0:keyword:auto",
+ "scroll-padding:term:0:repeat:branch:0:keyword:auto",
+ "scroll-padding:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ "--slot-3": "auto",
+ "--slot-4": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-padding:term:0:repeat:branch:0:keyword:auto"],
+ value: "var(--slot-1) auto auto auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["scroll-padding:term:0:repeat:branch:0:keyword:auto"],
+ value: "auto var(--slot-2) auto auto",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["scroll-padding:term:0:repeat:branch:0:keyword:auto"],
+ value: "auto auto var(--slot-3) auto",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: ["scroll-padding:term:0:repeat:branch:0:keyword:auto"],
+ value: "auto auto auto var(--slot-4)",
+ variables: {
+ "--slot-4": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "scroll-padding",
+ syntax: "[ auto | <length-percentage> ]{1,4}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "scroll-padding-block:term:0:repeat:branch:0:keyword:auto",
+ "scroll-padding-block:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-padding-block:term:0:repeat:branch:0:keyword:auto"],
+ value: "var(--slot-1) auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["scroll-padding-block:term:0:repeat:branch:0:keyword:auto"],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "scroll-padding-block",
+ syntax: "[ auto | <length-percentage> ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-block-end:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-block-end",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-block-start:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-block-start",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-bottom:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-bottom",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "scroll-padding-inline:term:0:repeat:branch:0:keyword:auto",
+ "scroll-padding-inline:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "scroll-padding-inline:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "scroll-padding-inline:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "scroll-padding-inline",
+ syntax: "[ auto | <length-percentage> ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-inline-end:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-inline-end",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-inline-start:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-inline-start",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-left:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-left",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-right:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-right",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scroll-padding-top:branch:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-padding-top",
+ syntax: "auto | <length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "scroll-snap-align:term:0:repeat:branch:0:keyword:none",
+ "scroll-snap-align:term:0:repeat:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-snap-align:term:0:repeat:branch:0:keyword:none"],
+ value: "var(--slot-1) none",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["scroll-snap-align:term:0:repeat:branch:0:keyword:none"],
+ value: "none var(--slot-2)",
+ variables: {
+ "--slot-2": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-snap-align",
+ syntax: "[ none | start | end | center ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["scroll-snap-stop:branch:1:keyword:always"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "always",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-snap-stop",
+ syntax: "normal | always",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scroll-snap-type:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "scroll-snap-type:branch:1:term:0:branch:0:keyword:x",
+ "scroll-snap-type:branch:1:term:1:repeat:branch:0:keyword:mandatory",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "x",
+ "--slot-2": "mandatory",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["scroll-snap-type:branch:1:term:0:branch:0:keyword:x"],
+ value: "var(--slot-1) mandatory",
+ variables: {
+ "--slot-1": "x",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "scroll-snap-type:branch:1:term:1:repeat:branch:0:keyword:mandatory",
+ ],
+ value: "x var(--slot-2)",
+ variables: {
+ "--slot-2": "mandatory",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-snap-type",
+ syntax:
+ "none | [ x | y | block | inline | both ] [ mandatory | proximity ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["scroll-target-group:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scroll-target-group",
+ syntax: "none | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scrollbar-color:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "scrollbar-color:branch:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "scrollbar-color:branch:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "red",
+ "--slot-2": "red",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "scrollbar-color:branch:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) red",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "scrollbar-color:branch:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "red var(--slot-2)",
+ variables: {
+ "--slot-2": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scrollbar-color",
+ syntax: "auto | <color>{2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["scrollbar-gutter:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "scrollbar-gutter:branch:1:term:0:keyword:stable",
+ "scrollbar-gutter:branch:1:term:1:repeat:keyword:both-edges",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "stable",
+ "--slot-2": "both-edges",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["scrollbar-gutter:branch:1:term:0:keyword:stable"],
+ value: "var(--slot-1) both-edges",
+ variables: {
+ "--slot-1": "stable",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "scrollbar-gutter:branch:1:term:1:repeat:keyword:both-edges",
+ ],
+ value: "stable var(--slot-2)",
+ variables: {
+ "--slot-2": "both-edges",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scrollbar-gutter",
+ syntax: "auto | stable && both-edges?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["scrollbar-width:branch:2:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "scrollbar-width",
+ syntax: "auto | thin | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "shape-image-threshold:term:0:type:opacity-value:branch:0:type:number",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "shape-image-threshold",
+ syntax: "<opacity-value>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "shape-margin:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "shape-margin",
+ syntax: "<length-percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["shape-outside:branch:2:type:image:branch:0:type:url"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "url(hero.png)",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "shape-outside:branch:1:term:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ "shape-outside:branch:1:term:1:type:basic-shape:branch:6:type:path():term:1:repeat:property:fill-rule:branch:0:keyword:nonzero",
+ "shape-outside:branch:1:term:1:type:basic-shape:branch:6:type:path():term:3:type:string",
+ ],
+ value: "var(--slot-1) path(var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "content-box",
+ "--slot-2": "nonzero",
+ "--slot-3": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "shape-outside:branch:1:term:0:type:shape-box:branch:0:type:visual-box:branch:0:keyword:content-box",
+ ],
+ value: 'var(--slot-1) path(nonzero,"x")',
+ variables: {
+ "--slot-1": "content-box",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "shape-outside:branch:1:term:1:type:basic-shape:branch:6:type:path():term:1:repeat:property:fill-rule:branch:0:keyword:nonzero",
+ ],
+ value: 'content-box path(var(--slot-2),"x")',
+ variables: {
+ "--slot-2": "nonzero",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "shape-outside:branch:1:term:1:type:basic-shape:branch:6:type:path():term:3:type:string",
+ ],
+ value: "content-box path(nonzero,var(--slot-3))",
+ variables: {
+ "--slot-3": '"x"',
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "shape-outside",
+ syntax: "none | [ <shape-box> || <basic-shape> ] | <image>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["shape-rendering:branch:3:keyword:geometricPrecision"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "geometricPrecision",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "shape-rendering",
+ syntax: "auto | optimizeSpeed | crispEdges | geometricPrecision",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "stop-color:term:0:property:color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stop-color",
+ syntax: "<'color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "stop-opacity:term:0:property:opacity:term:0:type:opacity-value:branch:0:type:number",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stop-opacity",
+ syntax: "<'opacity'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["stroke:term:0:type:paint:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "stroke",
+ syntax: "<paint>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["stroke-dasharray:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2),var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px,1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2),1px 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px,var(--slot-3) 1px",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "stroke-dasharray:branch:1:type:dasharray:term:0:repeat:term:0:repeat:branch:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px 1px,1px var(--slot-4)",
+ variables: {
+ "--slot-4": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stroke-dasharray",
+ syntax: "none | <dasharray>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["stroke-dashoffset:branch:1:type:number"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stroke-dashoffset",
+ syntax: "<length-percentage> | <number>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["stroke-linecap:branch:2:keyword:square"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "square",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stroke-linecap",
+ syntax: "butt | round | square",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["stroke-linejoin:branch:3:keyword:bevel"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "bevel",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stroke-linejoin",
+ syntax: "miter | miter-clip | round | bevel | arcs",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["stroke-miterlimit:term:0:type:number"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stroke-miterlimit",
+ syntax: "<number>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "stroke-opacity:term:0:property:opacity:term:0:type:opacity-value:branch:0:type:number",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stroke-opacity",
+ syntax: "<'opacity'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["stroke-width:branch:1:type:number"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "stroke-width",
+ syntax: "<length-percentage> | <number>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["tab-size:branch:1:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "tab-size",
+ syntax: "<integer> | <length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["table-layout:branch:1:keyword:fixed"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "fixed",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "table-layout",
+ syntax: "auto | fixed",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-align:branch:3:keyword:right"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "right",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-align",
+ syntax: "start | end | left | right | center | justify | match-parent",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-align-last:branch:3:keyword:left"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "left",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-align-last",
+ syntax: "auto | start | end | left | right | center | justify",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-anchor:branch:2:keyword:end"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "end",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-anchor",
+ syntax: "start | middle | end",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["text-autospace:branch:2:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-autospace",
+ syntax: "normal | <autospace> | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["text-combine-upright:branch:1:keyword:all"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "all",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "text-combine-upright:branch:2:term:0:keyword:digits",
+ "text-combine-upright:branch:2:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "digits",
+ "--slot-2": "1",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-combine-upright:branch:2:term:0:keyword:digits"],
+ value: "var(--slot-1)1",
+ variables: {
+ "--slot-1": "digits",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "text-combine-upright:branch:2:term:1:repeat:type:integer:term:0:type:number-token",
+ ],
+ value: "digits var(--slot-2)",
+ variables: {
+ "--slot-2": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-combine-upright",
+ syntax: "none | all | [ digits <integer>? ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "text-decoration:term:0:property:text-decoration-line:branch:0:keyword:none",
+ "text-decoration:term:1:property:text-decoration-style:branch:0:keyword:solid",
+ "text-decoration:term:2:property:text-decoration-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "text-decoration:term:3:property:text-decoration-thickness:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "solid",
+ "--slot-3": "red",
+ "--slot-4": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "text-decoration:term:0:property:text-decoration-line:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) solid red auto",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "text-decoration:term:1:property:text-decoration-style:branch:0:keyword:solid",
+ ],
+ value: "none var(--slot-2) red auto",
+ variables: {
+ "--slot-2": "solid",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "text-decoration:term:2:property:text-decoration-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "none solid var(--slot-3) auto",
+ variables: {
+ "--slot-3": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "text-decoration:term:3:property:text-decoration-thickness:branch:0:keyword:auto",
+ ],
+ value: "none solid red var(--slot-4)",
+ variables: {
+ "--slot-4": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "text-decoration",
+ syntax:
+ "<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "text-decoration-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-decoration-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["text-decoration-inset:branch:1:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "text-decoration-inset:branch:0:repeat:type:length",
+ "text-decoration-inset:branch:0:repeat:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["text-decoration-inset:branch:0:repeat:type:length"],
+ value: "var(--slot-1) 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["text-decoration-inset:branch:0:repeat:type:length"],
+ value: "1px var(--slot-2)",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-decoration-inset",
+ syntax: "<length>{1,2} | auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-decoration-line:branch:3:keyword:grammar-error"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "grammar-error",
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "text-decoration-line:branch:1:term:0:keyword:underline",
+ "text-decoration-line:branch:1:term:1:keyword:overline",
+ "text-decoration-line:branch:1:term:2:keyword:line-through",
+ "text-decoration-line:branch:1:term:3:keyword:blink",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4)",
+ variables: {
+ "--slot-1": "underline",
+ "--slot-2": "overline",
+ "--slot-3": "line-through",
+ "--slot-4": "blink",
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-decoration-line:branch:1:term:0:keyword:underline"],
+ value: "var(--slot-1) overline line-through blink",
+ variables: {
+ "--slot-1": "underline",
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: ["text-decoration-line:branch:1:term:1:keyword:overline"],
+ value: "underline var(--slot-2) line-through blink",
+ variables: {
+ "--slot-2": "overline",
+ },
+ },
+ {
+ id: "pattern-4-slot-3",
+ positions: [
+ "text-decoration-line:branch:1:term:2:keyword:line-through",
+ ],
+ value: "underline overline var(--slot-3) blink",
+ variables: {
+ "--slot-3": "line-through",
+ },
+ },
+ {
+ id: "pattern-4-slot-4",
+ positions: ["text-decoration-line:branch:1:term:3:keyword:blink"],
+ value: "underline overline line-through var(--slot-4)",
+ variables: {
+ "--slot-4": "blink",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-decoration-line",
+ syntax:
+ "none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-decoration-skip-ink:branch:2:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-decoration-skip-ink",
+ syntax: "auto | all | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-decoration-style:branch:3:keyword:dashed"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "dashed",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-decoration-style",
+ syntax: "solid | double | dotted | dashed | wavy",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-decoration-thickness:branch:3:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-decoration-thickness",
+ syntax: "auto | from-font | <length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "text-emphasis:term:0:property:text-emphasis-style:branch:0:keyword:none",
+ "text-emphasis:term:1:property:text-emphasis-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "red",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "text-emphasis:term:0:property:text-emphasis-style:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) red",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "text-emphasis:term:1:property:text-emphasis-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "none var(--slot-2)",
+ variables: {
+ "--slot-2": "red",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "text-emphasis",
+ syntax: "<'text-emphasis-style'> || <'text-emphasis-color'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "text-emphasis-color:term:0:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-emphasis-color",
+ syntax: "<color>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["text-emphasis-position:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "text-emphasis-position:branch:1:term:0:branch:0:keyword:over",
+ "text-emphasis-position:branch:1:term:1:repeat:branch:0:keyword:right",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "over",
+ "--slot-2": "right",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "text-emphasis-position:branch:1:term:0:branch:0:keyword:over",
+ ],
+ value: "var(--slot-1) right",
+ variables: {
+ "--slot-1": "over",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "text-emphasis-position:branch:1:term:1:repeat:branch:0:keyword:right",
+ ],
+ value: "over var(--slot-2)",
+ variables: {
+ "--slot-2": "right",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-emphasis-position",
+ syntax: "auto | [ over | under ] && [ right | left ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["text-emphasis-style:branch:2:type:string"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": '"x"',
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "text-emphasis-style:branch:1:term:0:branch:0:keyword:filled",
+ "text-emphasis-style:branch:1:term:1:branch:0:keyword:dot",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "filled",
+ "--slot-2": "dot",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "text-emphasis-style:branch:1:term:0:branch:0:keyword:filled",
+ ],
+ value: "var(--slot-1) dot",
+ variables: {
+ "--slot-1": "filled",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["text-emphasis-style:branch:1:term:1:branch:0:keyword:dot"],
+ value: "filled var(--slot-2)",
+ variables: {
+ "--slot-2": "dot",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-emphasis-style",
+ syntax:
+ "none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "text-indent:term:0:type:length-percentage:branch:0:type:length",
+ "text-indent:term:1:repeat:keyword:hanging",
+ "text-indent:term:2:repeat:keyword:each-line",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "hanging",
+ "--slot-3": "each-line",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "text-indent:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) hanging each-line",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["text-indent:term:1:repeat:keyword:hanging"],
+ value: "1px var(--slot-2) each-line",
+ variables: {
+ "--slot-2": "hanging",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: ["text-indent:term:2:repeat:keyword:each-line"],
+ value: "1px hanging var(--slot-3)",
+ variables: {
+ "--slot-3": "each-line",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-indent",
+ syntax: "<length-percentage> && hanging? && each-line?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-justify:branch:3:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-justify",
+ syntax: "auto | inter-character | inter-word | none",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-orientation:branch:2:keyword:sideways"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "sideways",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-orientation",
+ syntax: "mixed | upright | sideways",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "text-overflow:term:0:repeat:branch:0:keyword:clip",
+ "text-overflow:term:0:repeat:branch:0:keyword:clip",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "clip",
+ "--slot-2": "clip",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["text-overflow:term:0:repeat:branch:0:keyword:clip"],
+ value: "var(--slot-1) clip",
+ variables: {
+ "--slot-1": "clip",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["text-overflow:term:0:repeat:branch:0:keyword:clip"],
+ value: "clip var(--slot-2)",
+ variables: {
+ "--slot-2": "clip",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-overflow",
+ syntax: "[ clip | ellipsis | <string> ]{1,2}",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-rendering:branch:3:keyword:geometricPrecision"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "geometricPrecision",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-rendering",
+ syntax: "auto | optimizeSpeed | optimizeLegibility | geometricPrecision",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["text-shadow:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ "text-shadow:branch:1:repeat:type:shadow-t:term:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ "text-shadow:branch:1:repeat:type:shadow-t:term:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4),var(--slot-5) var(--slot-6) var(--slot-7) var(--slot-8)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ "--slot-4": "red",
+ "--slot-5": "1px",
+ "--slot-6": "1px",
+ "--slot-7": "1px",
+ "--slot-8": "red",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px red,1px 1px 1px red",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ ],
+ value: "1px var(--slot-2) 1px red,1px 1px 1px red",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ ],
+ value: "1px 1px var(--slot-3) red,1px 1px 1px red",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px 1px 1px var(--slot-4),1px 1px 1px red",
+ variables: {
+ "--slot-4": "red",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ ],
+ value: "1px 1px 1px red,var(--slot-5) 1px 1px red",
+ variables: {
+ "--slot-5": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-6",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ ],
+ value: "1px 1px 1px red,1px var(--slot-6) 1px red",
+ variables: {
+ "--slot-6": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-7",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:0:repeat:type:length",
+ ],
+ value: "1px 1px 1px red,1px 1px var(--slot-7) red",
+ variables: {
+ "--slot-7": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-8",
+ positions: [
+ "text-shadow:branch:1:repeat:type:shadow-t:term:1:repeat:type:color:branch:0:type:color-base:branch:0:type:hex-color",
+ ],
+ value: "1px 1px 1px red,1px 1px 1px var(--slot-8)",
+ variables: {
+ "--slot-8": "red",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-shadow",
+ syntax: "none | <shadow-t>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-size-adjust:branch:2:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-size-adjust",
+ syntax: "none | auto | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["text-transform:branch:2:keyword:math-auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "math-auto",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "text-transform:branch:1:term:0:branch:0:keyword:capitalize",
+ "text-transform:branch:1:term:1:keyword:full-width",
+ "text-transform:branch:1:term:2:keyword:full-size-kana",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "capitalize",
+ "--slot-2": "full-width",
+ "--slot-3": "full-size-kana",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "text-transform:branch:1:term:0:branch:0:keyword:capitalize",
+ ],
+ value: "var(--slot-1) full-width full-size-kana",
+ variables: {
+ "--slot-1": "capitalize",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["text-transform:branch:1:term:1:keyword:full-width"],
+ value: "capitalize var(--slot-2) full-size-kana",
+ variables: {
+ "--slot-2": "full-width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: ["text-transform:branch:1:term:2:keyword:full-size-kana"],
+ value: "capitalize full-width var(--slot-3)",
+ variables: {
+ "--slot-3": "full-size-kana",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-transform",
+ syntax:
+ "none | [ capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-underline-offset:branch:2:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-underline-offset",
+ syntax: "auto | <length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["text-underline-position:branch:1:keyword:from-font"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "from-font",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "text-underline-position:branch:2:term:0:keyword:under",
+ "text-underline-position:branch:2:term:1:branch:0:keyword:left",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "under",
+ "--slot-2": "left",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["text-underline-position:branch:2:term:0:keyword:under"],
+ value: "var(--slot-1) left",
+ variables: {
+ "--slot-1": "under",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "text-underline-position:branch:2:term:1:branch:0:keyword:left",
+ ],
+ value: "under var(--slot-2)",
+ variables: {
+ "--slot-2": "left",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-underline-position",
+ syntax: "auto | from-font | [ under || [ left | right ] ]",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "text-wrap:term:0:property:text-wrap-mode:branch:0:keyword:wrap",
+ "text-wrap:term:1:property:text-wrap-style:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "wrap",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "text-wrap:term:0:property:text-wrap-mode:branch:0:keyword:wrap",
+ ],
+ value: "var(--slot-1) auto",
+ variables: {
+ "--slot-1": "wrap",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "text-wrap:term:1:property:text-wrap-style:branch:0:keyword:auto",
+ ],
+ value: "wrap var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-wrap",
+ syntax: "<'text-wrap-mode'> || <'text-wrap-style'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["text-wrap-mode:branch:1:keyword:nowrap"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "nowrap",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-wrap-mode",
+ syntax: "wrap | nowrap",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["text-wrap-style:branch:3:keyword:pretty"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "pretty",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "text-wrap-style",
+ syntax: "auto | balance | stable | pretty",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["timeline-trigger:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:0:property:timeline-trigger-name:branch:0:keyword:none",
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:0:string",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:0:property:timeline-trigger-name:branch:0:keyword:none",
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:0:string",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2),var(--slot-3) var(--slot-4),var(--slot-5) var(--slot-6),var(--slot-7),var(--slot-8),var(--slot-9) var(--slot-10),var(--slot-11) var(--slot-12) var(--slot-13),var(--slot-14) var(--slot-15),var(--slot-16),var(--slot-17),var(--slot-18) var(--slot-19),var(--slot-20),var(--slot-21) var(--slot-22),var(--slot-23) var(--slot-24),var(--slot-25) var(--slot-26),var(--slot-27),var(--slot-28),var(--slot-29) var(--slot-30),var(--slot-31) var(--slot-32) var(--slot-33),var(--slot-34) var(--slot-35),var(--slot-36),var(--slot-37),var(--slot-38) var(--slot-39),var(--slot-40)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "auto",
+ "--slot-3": "auto",
+ "--slot-4": "normal",
+ "--slot-5": "normal",
+ "--slot-6": "normal",
+ "--slot-7": "normal",
+ "--slot-8": "normal",
+ "--slot-9": "normal",
+ "--slot-10": "normal",
+ "--slot-11": "normal",
+ "--slot-12": '"x"',
+ "--slot-13": "auto",
+ "--slot-14": "auto",
+ "--slot-15": "auto",
+ "--slot-16": "auto",
+ "--slot-17": "auto",
+ "--slot-18": "auto",
+ "--slot-19": "auto",
+ "--slot-20": "auto",
+ "--slot-21": "none",
+ "--slot-22": "auto",
+ "--slot-23": "auto",
+ "--slot-24": "normal",
+ "--slot-25": "normal",
+ "--slot-26": "normal",
+ "--slot-27": "normal",
+ "--slot-28": "normal",
+ "--slot-29": "normal",
+ "--slot-30": "normal",
+ "--slot-31": "normal",
+ "--slot-32": '"x"',
+ "--slot-33": "auto",
+ "--slot-34": "auto",
+ "--slot-35": "auto",
+ "--slot-36": "auto",
+ "--slot-37": "auto",
+ "--slot-38": "auto",
+ "--slot-39": "auto",
+ "--slot-40": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:0:property:timeline-trigger-name:branch:0:keyword:none",
+ ],
+ value:
+ 'var(--slot-1) auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-slot-10",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal var(--slot-10),normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-10": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-11",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,var(--slot-11)"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-11": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-12",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:0:string",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal var(--slot-12) auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-12": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-13",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"var(--slot-13),auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-13": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-14",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,var(--slot-14) auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-14": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-15",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto var(--slot-15),auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-15": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-16",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,var(--slot-16),auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-16": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-17",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,var(--slot-17),auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-17": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-18",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,var(--slot-18) auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-18": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-19",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto var(--slot-19),auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-19": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value:
+ 'none var(--slot-2),auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-20",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,var(--slot-20),none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-20": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-21",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:0:property:timeline-trigger-name:branch:0:keyword:none",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,var(--slot-21) auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-21": "none",
+ },
+ },
+ {
+ id: "pattern-2-slot-22",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none var(--slot-22),auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-22": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-23",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,var(--slot-23) normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-23": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-24",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto var(--slot-24),normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-24": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-25",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,var(--slot-25) normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-25": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-26",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal var(--slot-26),normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-26": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-27",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,var(--slot-27),normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-27": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-28",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,var(--slot-28),normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-28": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-29",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,var(--slot-29) normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-29": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:1:property:timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,var(--slot-3) normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-30",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal var(--slot-30),normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-30": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-31",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,var(--slot-31)"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-31": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-32",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:0:string",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal var(--slot-32) auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-32": '"x"',
+ },
+ },
+ {
+ id: "pattern-2-slot-33",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"var(--slot-33),auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-33": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-34",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,var(--slot-34) auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-34": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-35",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto var(--slot-35),auto,auto,auto auto,auto',
+ variables: {
+ "--slot-35": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-36",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,var(--slot-36),auto,auto auto,auto',
+ variables: {
+ "--slot-36": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-37",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,var(--slot-37),auto auto,auto',
+ variables: {
+ "--slot-37": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-38",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,var(--slot-38) auto,auto',
+ variables: {
+ "--slot-38": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-39",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto var(--slot-39),auto',
+ variables: {
+ "--slot-39": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-4",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto var(--slot-4),normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-4": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-40",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:3:repeat:term:1:property:timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,var(--slot-40)',
+ variables: {
+ "--slot-40": "auto",
+ },
+ },
+ {
+ id: "pattern-2-slot-5",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,var(--slot-5) normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-5": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-6",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal var(--slot-6),normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-6": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-7",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,var(--slot-7),normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-7": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-8",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,var(--slot-8),normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-8": "normal",
+ },
+ },
+ {
+ id: "pattern-2-slot-9",
+ positions: [
+ "timeline-trigger:branch:1:repeat:term:2:property:timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ 'none auto,auto normal,normal normal,normal,normal,var(--slot-9) normal,normal"x"auto,auto auto,auto,auto,auto auto,auto,none auto,auto normal,normal normal,normal,normal,normal normal,normal"x"auto,auto auto,auto,auto,auto auto,auto',
+ variables: {
+ "--slot-9": "normal",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "timeline-trigger",
+ syntax:
+ "none | [ <'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-activation-range'> [ '/' <'timeline-trigger-active-range'> ]? ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value:
+ "var(--slot-1),var(--slot-2) var(--slot-3),var(--slot-4),var(--slot-5),var(--slot-6) var(--slot-7),var(--slot-8)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ "--slot-3": "normal",
+ "--slot-4": "normal",
+ "--slot-5": "normal",
+ "--slot-6": "normal",
+ "--slot-7": "normal",
+ "--slot-8": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),normal normal,normal,normal,normal normal,normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,var(--slot-2) normal,normal,normal,normal normal,normal",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,normal var(--slot-3),normal,normal,normal normal,normal",
+ variables: {
+ "--slot-3": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,normal normal,var(--slot-4),normal,normal normal,normal",
+ variables: {
+ "--slot-4": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,normal normal,normal,var(--slot-5),normal normal,normal",
+ variables: {
+ "--slot-5": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:0:property:timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,normal normal,normal,normal,var(--slot-6) normal,normal",
+ variables: {
+ "--slot-6": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,normal normal,normal,normal,normal var(--slot-7),normal",
+ variables: {
+ "--slot-7": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "timeline-trigger-activation-range:term:0:repeat:term:1:repeat:property:timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,normal normal,normal,normal,normal normal,var(--slot-8)",
+ variables: {
+ "--slot-8": "normal",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "timeline-trigger-activation-range",
+ syntax:
+ "[ <'timeline-trigger-activation-range-start'> <'timeline-trigger-activation-range-end'>? ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "timeline-trigger-activation-range-end:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "timeline-trigger-activation-range-end",
+ syntax:
+ "[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ "timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "timeline-trigger-activation-range-start:term:0:repeat:branch:0:keyword:normal",
+ ],
+ value: "normal,var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "timeline-trigger-activation-range-start",
+ syntax:
+ "[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value:
+ "var(--slot-1),var(--slot-2) var(--slot-3),var(--slot-4),var(--slot-5),var(--slot-6) var(--slot-7),var(--slot-8)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ "--slot-3": "auto",
+ "--slot-4": "auto",
+ "--slot-5": "auto",
+ "--slot-6": "auto",
+ "--slot-7": "auto",
+ "--slot-8": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),auto auto,auto,auto,auto auto,auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,var(--slot-2) auto,auto,auto,auto auto,auto",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,auto var(--slot-3),auto,auto,auto auto,auto",
+ variables: {
+ "--slot-3": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,auto auto,var(--slot-4),auto,auto auto,auto",
+ variables: {
+ "--slot-4": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,auto auto,auto,var(--slot-5),auto auto,auto",
+ variables: {
+ "--slot-5": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:0:property:timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,auto auto,auto,auto,var(--slot-6) auto,auto",
+ variables: {
+ "--slot-6": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,auto auto,auto,auto,auto var(--slot-7),auto",
+ variables: {
+ "--slot-7": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "timeline-trigger-active-range:term:0:repeat:term:1:repeat:property:timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,auto auto,auto,auto,auto auto,var(--slot-8)",
+ variables: {
+ "--slot-8": "auto",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "timeline-trigger-active-range",
+ syntax:
+ "[ <'timeline-trigger-active-range-start'> <'timeline-trigger-active-range-end'>? ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "timeline-trigger-active-range-end:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "timeline-trigger-active-range-end",
+ syntax:
+ "[ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ "timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "timeline-trigger-active-range-start:term:0:repeat:branch:0:keyword:auto",
+ ],
+ value: "auto,var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "timeline-trigger-active-range-start",
+ syntax:
+ "[ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["timeline-trigger-name:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "timeline-trigger-name:branch:1:repeat:type:dashed-ident",
+ "timeline-trigger-name:branch:1:repeat:type:dashed-ident",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: ["timeline-trigger-name:branch:1:repeat:type:dashed-ident"],
+ value: "var(--slot-1),--custom-ident",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: ["timeline-trigger-name:branch:1:repeat:type:dashed-ident"],
+ value: "--custom-ident,var(--slot-2)",
+ variables: {
+ "--slot-2": "--custom-ident",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "timeline-trigger-name",
+ syntax: "none | <dashed-ident>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ "timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "auto",
+ "--slot-2": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value: "var(--slot-1),auto",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "timeline-trigger-source:term:0:repeat:type:single-animation-timeline:branch:0:keyword:auto",
+ ],
+ value: "auto,var(--slot-2)",
+ variables: {
+ "--slot-2": "auto",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "timeline-trigger-source",
+ syntax: "<single-animation-timeline>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["top:branch:1:type:length-percentage:branch:0:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "top:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ "top:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ "top:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(var(--slot-1) var(--slot-2),var(--slot-3))",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "width",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: [
+ "top:branch:3:type:anchor-size():term:1:repeat:term:0:type:anchor-name:term:0:type:dashed-ident",
+ ],
+ value: "anchor-size(var(--slot-1) width,1px)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: [
+ "top:branch:3:type:anchor-size():term:1:repeat:term:1:type:anchor-size:branch:0:keyword:width",
+ ],
+ value: "anchor-size(--custom-ident var(--slot-2),1px)",
+ variables: {
+ "--slot-2": "width",
+ },
+ },
+ {
+ id: "pattern-3-slot-3",
+ positions: [
+ "top:branch:3:type:anchor-size():term:3:repeat:type:length-percentage:branch:0:type:length",
+ ],
+ value: "anchor-size(--custom-ident width,var(--slot-3))",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "top",
+ syntax: "auto | <length-percentage> | <anchor()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["touch-action:branch:3:keyword:manipulation"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "manipulation",
+ },
+ },
+ {
+ id: "pattern-4-all-slots",
+ positions: [
+ "touch-action:branch:2:term:0:branch:0:keyword:pan-x",
+ "touch-action:branch:2:term:1:branch:0:keyword:pan-y",
+ "touch-action:branch:2:term:2:keyword:pinch-zoom",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "pan-x",
+ "--slot-2": "pan-y",
+ "--slot-3": "pinch-zoom",
+ },
+ },
+ {
+ id: "pattern-4-slot-1",
+ positions: ["touch-action:branch:2:term:0:branch:0:keyword:pan-x"],
+ value: "var(--slot-1) pan-y pinch-zoom",
+ variables: {
+ "--slot-1": "pan-x",
+ },
+ },
+ {
+ id: "pattern-4-slot-2",
+ positions: ["touch-action:branch:2:term:1:branch:0:keyword:pan-y"],
+ value: "pan-x var(--slot-2) pinch-zoom",
+ variables: {
+ "--slot-2": "pan-y",
+ },
+ },
+ {
+ id: "pattern-4-slot-3",
+ positions: ["touch-action:branch:2:term:2:keyword:pinch-zoom"],
+ value: "pan-x pan-y var(--slot-3)",
+ variables: {
+ "--slot-3": "pinch-zoom",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "touch-action",
+ syntax:
+ "auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["transform:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "transform:branch:1:type:transform-list:term:0:repeat:type:transform-function:branch:2:type:translateX():term:1:type:length-percentage:branch:0:type:length",
+ "transform:branch:1:type:transform-list:term:0:repeat:type:transform-function:branch:2:type:translateX():term:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "translateX(var(--slot-1)) translateX(var(--slot-2))",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "transform:branch:1:type:transform-list:term:0:repeat:type:transform-function:branch:2:type:translateX():term:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "translateX(var(--slot-1)) translateX(1px)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "transform:branch:1:type:transform-list:term:0:repeat:type:transform-function:branch:2:type:translateX():term:1:type:length-percentage:branch:0:type:length",
+ ],
+ value: "translateX(1px) translateX(var(--slot-2))",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transform",
+ syntax: "none | <transform-list>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["transform-box:branch:3:keyword:stroke-box"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "stroke-box",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transform-box",
+ syntax: "content-box | border-box | fill-box | stroke-box | view-box",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["transform-origin:branch:0:branch:3:keyword:right"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "right",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transform-origin",
+ syntax:
+ "[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["transform-style:branch:1:keyword:preserve-3d"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "preserve-3d",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transform-style",
+ syntax: "flat | preserve-3d",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:0:branch:0:keyword:none",
+ "transition:term:0:repeat:type:single-transition:term:1:type:time",
+ "transition:term:0:repeat:type:single-transition:term:2:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ "transition:term:0:repeat:type:single-transition:term:3:type:time",
+ "transition:term:0:repeat:type:single-transition:term:4:type:transition-behavior-value:branch:0:keyword:normal",
+ "transition:term:0:repeat:type:single-transition:term:0:branch:0:keyword:none",
+ "transition:term:0:repeat:type:single-transition:term:1:type:time",
+ "transition:term:0:repeat:type:single-transition:term:2:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ "transition:term:0:repeat:type:single-transition:term:3:type:time",
+ "transition:term:0:repeat:type:single-transition:term:4:type:transition-behavior-value:branch:0:keyword:normal",
+ ],
+ value:
+ "var(--slot-1) var(--slot-2) var(--slot-3) var(--slot-4) var(--slot-5),var(--slot-6) var(--slot-7) var(--slot-8) var(--slot-9) var(--slot-10)",
+ variables: {
+ "--slot-1": "none",
+ "--slot-2": "1s",
+ "--slot-3": "linear",
+ "--slot-4": "1s",
+ "--slot-5": "normal",
+ "--slot-6": "none",
+ "--slot-7": "1s",
+ "--slot-8": "linear",
+ "--slot-9": "1s",
+ "--slot-10": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:0:branch:0:keyword:none",
+ ],
+ value: "var(--slot-1) 1s linear 1s normal,none 1s linear 1s normal",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-10",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:4:type:transition-behavior-value:branch:0:keyword:normal",
+ ],
+ value: "none 1s linear 1s normal,none 1s linear 1s var(--slot-10)",
+ variables: {
+ "--slot-10": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:1:type:time",
+ ],
+ value: "none var(--slot-2) linear 1s normal,none 1s linear 1s normal",
+ variables: {
+ "--slot-2": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-3",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:2:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "none 1s var(--slot-3) 1s normal,none 1s linear 1s normal",
+ variables: {
+ "--slot-3": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-4",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:3:type:time",
+ ],
+ value: "none 1s linear var(--slot-4) normal,none 1s linear 1s normal",
+ variables: {
+ "--slot-4": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-5",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:4:type:transition-behavior-value:branch:0:keyword:normal",
+ ],
+ value: "none 1s linear 1s var(--slot-5),none 1s linear 1s normal",
+ variables: {
+ "--slot-5": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-6",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:0:branch:0:keyword:none",
+ ],
+ value: "none 1s linear 1s normal,var(--slot-6) 1s linear 1s normal",
+ variables: {
+ "--slot-6": "none",
+ },
+ },
+ {
+ id: "pattern-1-slot-7",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:1:type:time",
+ ],
+ value: "none 1s linear 1s normal,none var(--slot-7) linear 1s normal",
+ variables: {
+ "--slot-7": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-8",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:2:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "none 1s linear 1s normal,none 1s var(--slot-8) 1s normal",
+ variables: {
+ "--slot-8": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-9",
+ positions: [
+ "transition:term:0:repeat:type:single-transition:term:3:type:time",
+ ],
+ value: "none 1s linear 1s normal,none 1s linear var(--slot-9) normal",
+ variables: {
+ "--slot-9": "1s",
+ },
+ },
+ ],
+ kind: "shorthand",
+ property: "transition",
+ syntax: "<single-transition>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "transition-behavior:term:0:repeat:type:transition-behavior-value:branch:0:keyword:normal",
+ "transition-behavior:term:0:repeat:type:transition-behavior-value:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "normal",
+ "--slot-2": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "transition-behavior:term:0:repeat:type:transition-behavior-value:branch:0:keyword:normal",
+ ],
+ value: "var(--slot-1),normal",
+ variables: {
+ "--slot-1": "normal",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "transition-behavior:term:0:repeat:type:transition-behavior-value:branch:0:keyword:normal",
+ ],
+ value: "normal,var(--slot-2)",
+ variables: {
+ "--slot-2": "normal",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transition-behavior",
+ syntax: "<transition-behavior-value>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "transition-delay:term:0:repeat:type:time",
+ "transition-delay:term:0:repeat:type:time",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "1s",
+ "--slot-2": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["transition-delay:term:0:repeat:type:time"],
+ value: "var(--slot-1),1s",
+ variables: {
+ "--slot-1": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["transition-delay:term:0:repeat:type:time"],
+ value: "1s,var(--slot-2)",
+ variables: {
+ "--slot-2": "1s",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transition-delay",
+ syntax: "<time>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "transition-duration:term:0:repeat:type:time",
+ "transition-duration:term:0:repeat:type:time",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "1s",
+ "--slot-2": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: ["transition-duration:term:0:repeat:type:time"],
+ value: "var(--slot-1),1s",
+ variables: {
+ "--slot-1": "1s",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: ["transition-duration:term:0:repeat:type:time"],
+ value: "1s,var(--slot-2)",
+ variables: {
+ "--slot-2": "1s",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transition-duration",
+ syntax: "<time>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["transition-property:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "transition-property:branch:1:repeat:type:single-transition-property:branch:0:keyword:all",
+ "transition-property:branch:1:repeat:type:single-transition-property:branch:0:keyword:all",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "all",
+ "--slot-2": "all",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "transition-property:branch:1:repeat:type:single-transition-property:branch:0:keyword:all",
+ ],
+ value: "var(--slot-1),all",
+ variables: {
+ "--slot-1": "all",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "transition-property:branch:1:repeat:type:single-transition-property:branch:0:keyword:all",
+ ],
+ value: "all,var(--slot-2)",
+ variables: {
+ "--slot-2": "all",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transition-property",
+ syntax: "none | <single-transition-property>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-all-slots",
+ positions: [
+ "transition-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ "transition-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "linear",
+ "--slot-2": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-1",
+ positions: [
+ "transition-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "var(--slot-1),linear",
+ variables: {
+ "--slot-1": "linear",
+ },
+ },
+ {
+ id: "pattern-1-slot-2",
+ positions: [
+ "transition-timing-function:term:0:repeat:type:easing-function:branch:0:type:linear-easing-function:branch:0:keyword:linear",
+ ],
+ value: "linear,var(--slot-2)",
+ variables: {
+ "--slot-2": "linear",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "transition-timing-function",
+ syntax: "<easing-function>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["translate:branch:0:keyword:none"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "none",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "translate:branch:1:term:0:type:length-percentage:branch:0:type:length",
+ "translate:branch:1:term:1:repeat:term:0:type:length-percentage:branch:0:type:length",
+ "translate:branch:1:term:1:repeat:term:1:repeat:type:length",
+ ],
+ value: "var(--slot-1) var(--slot-2) var(--slot-3)",
+ variables: {
+ "--slot-1": "1px",
+ "--slot-2": "1px",
+ "--slot-3": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "translate:branch:1:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "var(--slot-1) 1px 1px",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "translate:branch:1:term:1:repeat:term:0:type:length-percentage:branch:0:type:length",
+ ],
+ value: "1px var(--slot-2) 1px",
+ variables: {
+ "--slot-2": "1px",
+ },
+ },
+ {
+ id: "pattern-2-slot-3",
+ positions: [
+ "translate:branch:1:term:1:repeat:term:1:repeat:type:length",
+ ],
+ value: "1px 1px var(--slot-3)",
+ variables: {
+ "--slot-3": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "translate",
+ syntax: "none | <length-percentage> [ <length-percentage> <length>? ]?",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["trigger-scope:branch:1:keyword:all"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "all",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "trigger-scope:branch:2:repeat:type:dashed-ident",
+ "trigger-scope:branch:2:repeat:type:dashed-ident",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "--custom-ident",
+ "--slot-2": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["trigger-scope:branch:2:repeat:type:dashed-ident"],
+ value: "var(--slot-1),--custom-ident",
+ variables: {
+ "--slot-1": "--custom-ident",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["trigger-scope:branch:2:repeat:type:dashed-ident"],
+ value: "--custom-ident,var(--slot-2)",
+ variables: {
+ "--slot-2": "--custom-ident",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "trigger-scope",
+ syntax: "none | all | <dashed-ident>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["unicode-bidi:branch:3:keyword:bidi-override"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "bidi-override",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "unicode-bidi",
+ syntax:
+ "normal | embed | isolate | bidi-override | isolate-override | plaintext",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["user-select:branch:3:keyword:all"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "all",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "user-select",
+ syntax: "auto | text | none | all",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["vector-effect:branch:3:keyword:non-rotation"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "non-rotation",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "vector-effect",
+ syntax:
+ "none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["vertical-align:branch:3:keyword:text-top"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "text-top",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "vertical-align",
+ syntax:
+ "baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["view-transition-name:branch:2:keyword:match-element"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "match-element",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "view-transition-name",
+ syntax: "none | <custom-ident> | match-element",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-3-slot-1",
+ positions: ["visibility:branch:2:keyword:collapse"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "collapse",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "visibility",
+ syntax: "visible | hidden | collapse",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["white-space:branch:3:keyword:pre-line"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "pre-line",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "white-space",
+ syntax:
+ "normal | pre | pre-wrap | pre-line | <'white-space-collapse'> || <'text-wrap-mode'>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["white-space-collapse:branch:3:keyword:preserve-spaces"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "preserve-spaces",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "white-space-collapse",
+ syntax:
+ "collapse | preserve | preserve-breaks | preserve-spaces | break-spaces",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["widows:term:0:type:integer:term:0:type:number-token"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "widows",
+ syntax: "<integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["width:branch:3:keyword:max-content"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "max-content",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "width",
+ syntax:
+ "auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-1-slot-1",
+ positions: ["will-change:branch:0:keyword:auto"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "auto",
+ },
+ },
+ {
+ id: "pattern-2-all-slots",
+ positions: [
+ "will-change:branch:1:repeat:type:animateable-feature:branch:0:keyword:scroll-position",
+ "will-change:branch:1:repeat:type:animateable-feature:branch:0:keyword:scroll-position",
+ ],
+ value: "var(--slot-1),var(--slot-2)",
+ variables: {
+ "--slot-1": "scroll-position",
+ "--slot-2": "scroll-position",
+ },
+ },
+ {
+ id: "pattern-2-slot-1",
+ positions: [
+ "will-change:branch:1:repeat:type:animateable-feature:branch:0:keyword:scroll-position",
+ ],
+ value: "var(--slot-1),scroll-position",
+ variables: {
+ "--slot-1": "scroll-position",
+ },
+ },
+ {
+ id: "pattern-2-slot-2",
+ positions: [
+ "will-change:branch:1:repeat:type:animateable-feature:branch:0:keyword:scroll-position",
+ ],
+ value: "scroll-position,var(--slot-2)",
+ variables: {
+ "--slot-2": "scroll-position",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "will-change",
+ syntax: "auto | <animateable-feature>#",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["word-break:branch:3:keyword:break-word"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "break-word",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "word-break",
+ syntax: "normal | break-all | keep-all | break-word | auto-phrase",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["word-spacing:branch:1:type:length"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1px",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "word-spacing",
+ syntax: "normal | <length>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["word-wrap:branch:1:keyword:break-word"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "break-word",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "word-wrap",
+ syntax: "normal | break-word",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-4-slot-1",
+ positions: ["writing-mode:branch:3:keyword:sideways-rl"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "sideways-rl",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "writing-mode",
+ syntax:
+ "horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["x:branch:1:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "x",
+ syntax: "<length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["y:branch:1:type:percentage"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "y",
+ syntax: "<length> | <percentage>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["z-index:branch:1:type:integer:term:0:type:number-token"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "z-index",
+ syntax: "auto | <integer>",
+ },
+ {
+ cases: [
+ {
+ id: "pattern-2-slot-1",
+ positions: ["zoom:branch:1:keyword:reset"],
+ value: "var(--slot-1)",
+ variables: {
+ "--slot-1": "reset",
+ },
+ },
+ {
+ id: "pattern-3-all-slots",
+ positions: [
+ "zoom:branch:2:term:0:type:number",
+ "zoom:branch:2:term:1:type:percentage",
+ ],
+ value: "var(--slot-1) var(--slot-2)",
+ variables: {
+ "--slot-1": "1",
+ "--slot-2": "10%",
+ },
+ },
+ {
+ id: "pattern-3-slot-1",
+ positions: ["zoom:branch:2:term:0:type:number"],
+ value: "var(--slot-1) 10%",
+ variables: {
+ "--slot-1": "1",
+ },
+ },
+ {
+ id: "pattern-3-slot-2",
+ positions: ["zoom:branch:2:term:1:type:percentage"],
+ value: "1 var(--slot-2)",
+ variables: {
+ "--slot-2": "10%",
+ },
+ },
+ ],
+ kind: "longhand",
+ property: "zoom",
+ syntax: "normal | reset | <number [0,∞]> || <percentage [0,∞]>",
+ },
+] as const;
diff --git a/packages/css-data/src/__generated__/shorthand-properties.ts b/packages/css-data/src/__generated__/shorthand-properties.ts
index 8ccfdc5b36..c440832789 100644
--- a/packages/css-data/src/__generated__/shorthand-properties.ts
+++ b/packages/css-data/src/__generated__/shorthand-properties.ts
@@ -35,6 +35,8 @@ export const shorthandProperties = [
"flex",
"flex-flow",
"font",
+ "font-synthesis",
+ "font-variant",
"gap",
"grid",
"grid-area",
@@ -69,8 +71,10 @@ export const shorthandProperties = [
"stroke",
"text-decoration",
"text-emphasis",
+ "text-wrap",
"timeline-trigger",
"timeline-trigger-activation-range",
"timeline-trigger-active-range",
"transition",
+ "white-space",
] as const;
diff --git a/packages/css-data/src/__generated__/shorthand-test-fixtures.ts b/packages/css-data/src/__generated__/shorthand-test-fixtures.ts
deleted file mode 100644
index 52f98bb476..0000000000
--- a/packages/css-data/src/__generated__/shorthand-test-fixtures.ts
+++ /dev/null
@@ -1,619 +0,0 @@
-// This file was generated by pnpm build:shorthand-fixtures
-
-export type ShorthandFixture = {
- property: string;
- singleToken: string;
- multiToken: string;
- longhands: string[];
-};
-
-export const shorthandTestFixtures: ShorthandFixture[] = [
- {
- property: "-webkit-text-stroke",
- singleToken: "red",
- multiToken: "1px red",
- longhands: ["-webkit-text-stroke-width", "-webkit-text-stroke-color"],
- },
- {
- property: "animation",
- singleToken: "0s",
- multiToken: "0s ease 1 normal none running",
- longhands: [
- "animation-duration",
- "animation-timing-function",
- "animation-delay",
- "animation-iteration-count",
- "animation-direction",
- "animation-fill-mode",
- "animation-play-state",
- "animation-name",
- "animation-timeline",
- "animation-range-start",
- "animation-range-end",
- ],
- },
- {
- property: "background",
- singleToken: "none",
- multiToken: "none 0% auto repeat scroll padding-box border-box transparent",
- longhands: [
- "background-image",
- "background-position-x",
- "background-position-y",
- "background-size",
- "background-repeat",
- "background-attachment",
- "background-origin",
- "background-clip",
- "background-color",
- ],
- },
- {
- property: "border",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-top-width",
- "border-right-width",
- "border-bottom-width",
- "border-left-width",
- "border-top-style",
- "border-right-style",
- "border-bottom-style",
- "border-left-style",
- "border-top-color",
- "border-right-color",
- "border-bottom-color",
- "border-left-color",
- ],
- },
- {
- property: "border-block",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-block-start-width",
- "border-block-end-width",
- "border-block-start-style",
- "border-block-end-style",
- "border-block-start-color",
- "border-block-end-color",
- ],
- },
- {
- property: "border-block-end",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-block-end-width",
- "border-block-end-style",
- "border-block-end-color",
- ],
- },
- {
- property: "border-block-start",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-block-start-width",
- "border-block-start-style",
- "border-block-start-color",
- ],
- },
- {
- property: "border-bottom",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-bottom-width",
- "border-bottom-style",
- "border-bottom-color",
- ],
- },
- {
- property: "border-color",
- singleToken: "currentColor",
- multiToken: "currentColor 16px",
- longhands: [
- "border-top-color",
- "border-right-color",
- "border-bottom-color",
- "border-left-color",
- ],
- },
- {
- property: "border-image",
- singleToken: "none",
- multiToken: "none 100% 1 0 stretch",
- longhands: [
- "border-image-source",
- "border-image-slice",
- "border-image-width",
- "border-image-outset",
- "border-image-repeat",
- ],
- },
- {
- property: "border-inline",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-inline-start-width",
- "border-inline-end-width",
- "border-inline-start-style",
- "border-inline-end-style",
- "border-inline-start-color",
- "border-inline-end-color",
- ],
- },
- {
- property: "border-inline-end",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-inline-end-width",
- "border-inline-end-style",
- "border-inline-end-color",
- ],
- },
- {
- property: "border-inline-start",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-inline-start-width",
- "border-inline-start-style",
- "border-inline-start-color",
- ],
- },
- {
- property: "border-left",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: ["border-left-width", "border-left-style", "border-left-color"],
- },
- {
- property: "border-radius",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: [
- "border-top-left-radius",
- "border-top-right-radius",
- "border-bottom-right-radius",
- "border-bottom-left-radius",
- ],
- },
- {
- property: "border-right",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: [
- "border-right-width",
- "border-right-style",
- "border-right-color",
- ],
- },
- {
- property: "border-style",
- singleToken: "none",
- multiToken: "none url(#x)",
- longhands: [
- "border-top-style",
- "border-right-style",
- "border-bottom-style",
- "border-left-style",
- ],
- },
- {
- property: "border-top",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: ["border-top-width", "border-top-style", "border-top-color"],
- },
- {
- property: "border-width",
- singleToken: "medium",
- multiToken: "medium 16px",
- longhands: [
- "border-top-width",
- "border-right-width",
- "border-bottom-width",
- "border-left-width",
- ],
- },
- {
- property: "column-rule",
- singleToken: "medium",
- multiToken: "medium none currentColor",
- longhands: ["column-rule-width", "column-rule-style", "column-rule-color"],
- },
- {
- property: "columns",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: ["column-width", "column-count"],
- },
- {
- property: "contain-intrinsic-size",
- singleToken: "none",
- multiToken: "none url(#x)",
- longhands: ["contain-intrinsic-width", "contain-intrinsic-height"],
- },
- {
- property: "container",
- singleToken: "none",
- multiToken: "main / inline-size",
- longhands: ["container-name", "container-type"],
- },
- {
- property: "corner-block-end-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-block-start-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-bottom-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-inline-end-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-inline-start-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-left-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-right-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "corner-top-shape",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "flex",
- singleToken: "0",
- multiToken: "0 1 auto",
- longhands: ["flex-grow", "flex-shrink", "flex-basis"],
- },
- {
- property: "flex-flow",
- singleToken: "row",
- multiToken: "row nowrap",
- longhands: ["flex-direction", "flex-wrap"],
- },
- {
- property: "font",
- singleToken: "16px serif",
- multiToken: "bold 18px/1.5 sans-serif",
- longhands: [
- "font-style",
- "font-variant-caps",
- "font-weight",
- "font-stretch",
- "font-size",
- "line-height",
- "font-family",
- ],
- },
- {
- property: "gap",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["row-gap", "column-gap"],
- },
- {
- property: "grid",
- singleToken: "none",
- multiToken: "none auto",
- longhands: [
- "grid-template-areas",
- "grid-template-rows",
- "grid-template-columns",
- "grid-auto-flow.",
- "grid-auto-rows",
- "grid-auto-columns",
- ],
- },
- {
- property: "grid-area",
- singleToken: "auto",
- multiToken: "1 / 2 / 3 / 4",
- longhands: [
- "grid-row-start",
- "grid-column-start",
- "grid-row-end",
- "grid-column-end",
- ],
- },
- {
- property: "grid-column",
- singleToken: "auto",
- multiToken: "1 / 3",
- longhands: ["grid-column-start", "grid-column-end"],
- },
- {
- property: "grid-row",
- singleToken: "auto",
- multiToken: "1 / 3",
- longhands: ["grid-row-start", "grid-row-end"],
- },
- {
- property: "grid-template",
- singleToken: "none",
- multiToken: "none / 1fr",
- longhands: [
- "grid-template-areas",
- "grid-template-rows",
- "grid-template-columns",
- ],
- },
- {
- property: "inset",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: ["top", "right", "bottom", "left"],
- },
- {
- property: "inset-block",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: ["inset-block-start", "inset-block-end"],
- },
- {
- property: "inset-inline",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: ["inset-inline-start", "inset-inline-end"],
- },
- {
- property: "interest-delay",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "list-style",
- singleToken: "outside",
- multiToken: "outside none disc",
- longhands: ["list-style-position", "list-style-image", "list-style-type"],
- },
- {
- property: "margin",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["margin-top", "margin-right", "margin-bottom", "margin-left"],
- },
- {
- property: "margin-block",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["margin-block-start", "margin-block-end"],
- },
- {
- property: "margin-inline",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["margin-inline-start", "margin-inline-end"],
- },
- {
- property: "marker",
- singleToken: "none",
- multiToken: "none url(#x)",
- longhands: ["marker-start", "marker-mid", "marker-end"],
- },
- {
- property: "mask",
- singleToken: "none",
- multiToken: "none 0% 0% auto repeat border-box add match-source",
- longhands: [
- "mask-image",
- "mask-position",
- "mask-size",
- "mask-repeat",
- "mask-origin",
- "mask-clip",
- "mask-composite",
- "mask-mode",
- ],
- },
- {
- property: "mask-border",
- singleToken: "none",
- multiToken: "none 0 auto stretch alpha",
- longhands: [
- "mask-border-source",
- "mask-border-slice",
- "mask-border-width",
- "mask-border-outset",
- "mask-border-repeat",
- "mask-border-mode",
- ],
- },
- {
- property: "offset",
- singleToken: "normal",
- multiToken: "normal none 0px auto",
- longhands: [
- "offset-position",
- "offset-path",
- "offset-distance",
- "offset-rotate",
- "offset-anchor",
- ],
- },
- {
- property: "outline",
- singleToken: "medium",
- multiToken: "medium none auto",
- longhands: ["outline-width", "outline-style", "outline-color"],
- },
- {
- property: "padding",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: [
- "padding-top",
- "padding-right",
- "padding-bottom",
- "padding-left",
- ],
- },
- {
- property: "padding-block",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["padding-block-start", "padding-block-end"],
- },
- {
- property: "padding-inline",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["padding-inline-start", "padding-inline-end"],
- },
- {
- property: "place-content",
- singleToken: "normal",
- multiToken: "normal 16px",
- longhands: ["align-content", "justify-content"],
- },
- {
- property: "place-items",
- singleToken: "normal",
- multiToken: "normal legacy",
- longhands: ["align-items", "justify-items"],
- },
- {
- property: "place-self",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: ["align-self", "justify-self"],
- },
- {
- property: "scroll-margin",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: [
- "scroll-margin-top",
- "scroll-margin-right",
- "scroll-margin-bottom",
- "scroll-margin-left",
- ],
- },
- {
- property: "scroll-margin-block",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["scroll-margin-block-start", "scroll-margin-block-end"],
- },
- {
- property: "scroll-margin-inline",
- singleToken: "0px",
- multiToken: "0px 8px",
- longhands: ["scroll-margin-inline-start", "scroll-margin-inline-end"],
- },
- {
- property: "scroll-padding",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: [
- "scroll-padding-top",
- "scroll-padding-right",
- "scroll-padding-bottom",
- "scroll-padding-left",
- ],
- },
- {
- property: "scroll-padding-block",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: ["scroll-padding-block-start", "scroll-padding-block-end"],
- },
- {
- property: "scroll-padding-inline",
- singleToken: "auto",
- multiToken: "auto 0px",
- longhands: ["scroll-padding-inline-start", "scroll-padding-inline-end"],
- },
- {
- property: "stroke",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "text-decoration",
- singleToken: "none",
- multiToken: "none solid currentColor",
- longhands: [
- "text-decoration-line",
- "text-decoration-style",
- "text-decoration-color",
- ],
- },
- {
- property: "text-emphasis",
- singleToken: "none",
- multiToken: "none currentColor",
- longhands: ["text-emphasis-style", "text-emphasis-color"],
- },
- {
- property: "timeline-trigger",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "timeline-trigger-activation-range",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "timeline-trigger-active-range",
- singleToken: "",
- multiToken: "",
- longhands: [],
- },
- {
- property: "transition",
- singleToken: "all",
- multiToken: "all 0s ease normal",
- longhands: [
- "transition-property",
- "transition-duration",
- "transition-timing-function",
- "transition-delay",
- "transition-behavior",
- ],
- },
-] as const;
diff --git a/packages/css-data/src/parse-css.test.ts b/packages/css-data/src/parse-css.test.ts
index f3009729f3..bc1014e2e9 100644
--- a/packages/css-data/src/parse-css.test.ts
+++ b/packages/css-data/src/parse-css.test.ts
@@ -5,7 +5,7 @@ import {
parseCss,
parseMediaQuery,
} from "./parse-css";
-import { shorthandTestFixtures } from "./__generated__/shorthand-test-fixtures";
+import { propertyVarTestFixtures } from "./__generated__/property-var-test-fixtures";
describe("Parse CSS", () => {
test("longhand property name with keyword value", () => {
@@ -1871,6 +1871,11 @@ const layers = (...items: unknown[]) =>
const prop = (property: string, value: unknown) =>
expect.objectContaining({ property, value });
+const valueContainsVarReference = (value: unknown): boolean => {
+ const serialized = JSON.stringify(value);
+ return serialized.includes('"type":"var"') || serialized.includes("var(");
+};
+
const decls = (css: string) =>
parseCss(`.x { ${css} }`, new Map()).styles.filter(
(d) => d.selector === ".x"
@@ -1890,6 +1895,63 @@ describe("var() substitution — background", () => {
);
});
+ test("gradient var() references are preserved in background-image", () => {
+ const result = decls(`
+ background: linear-gradient(38deg, var(--aurora-clr1), var(--aurora-clr2), var(--aurora-clr3));
+ `);
+ expect(result).toEqual(
+ expect.arrayContaining([
+ prop(
+ "background-image",
+ layers(
+ expect.objectContaining({
+ type: "unparsed",
+ value:
+ "linear-gradient(38deg,var(--aurora-clr1),var(--aurora-clr2),var(--aurora-clr3))",
+ })
+ )
+ ),
+ ])
+ );
+ });
+
+ test("cross-selector background gradients keep authored var() references", () => {
+ const result = parseCss(
+ `
+ .scope {
+ --tone-1: #ff0000;
+ --tone-2: #00ff00;
+ --tone-3: #0000ff;
+ }
+
+ .panel {
+ background: linear-gradient(38deg, var(--tone-1), var(--tone-2), var(--tone-3));
+ }
+ `,
+ new Map([
+ ["--tone-1", "#ff0000"],
+ ["--tone-2", "#00ff00"],
+ ["--tone-3", "#0000ff"],
+ ])
+ ).styles;
+ const backgroundImage = result.find(
+ (decl) =>
+ decl.selector === ".panel" && decl.property === "background-image"
+ );
+ expect(backgroundImage?.value).toEqual(
+ expect.objectContaining({
+ type: "layers",
+ value: [
+ expect.objectContaining({
+ type: "unparsed",
+ value:
+ "linear-gradient(38deg,var(--tone-1),var(--tone-2),var(--tone-3))",
+ }),
+ ],
+ })
+ );
+ });
+
test("multiple vars for image and repeat parts", () => {
const result = decls(`
--img: url("hero.png");
@@ -2036,85 +2098,87 @@ describe("var() substitution — CSS var() inline fallback", () => {
`"border" was not applied because --clr could not be resolved`,
]);
});
-});
-describe("var() substitution — border", () => {
- test("var() for border width", () => {
- const result = decls(`--w: 3px; border: var(--w) solid red;`);
+ test("border shorthand with unresolved var is preserved as var() value", () => {
+ const result = decls(`border: 1px solid var(--border-color);`);
expect(result).toEqual(
expect.arrayContaining([
- prop("border-top-width", u(3, "px")),
- prop("border-right-width", u(3, "px")),
- prop("border-bottom-width", u(3, "px")),
- prop("border-left-width", u(3, "px")),
+ prop(
+ "border-top-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
+ prop(
+ "border-right-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
+ prop(
+ "border-bottom-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
+ prop(
+ "border-left-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
])
);
});
- test("var() for border color", () => {
- const result = decls(`--clr: red; border: 1px solid var(--clr);`);
+ test("border-color longhand with unresolved var is preserved", () => {
+ const result = decls(`border-color: var(--border-color);`);
expect(result).toEqual(
expect.arrayContaining([
- prop("border-top-color", kw("red")),
- prop("border-bottom-color", kw("red")),
+ prop(
+ "border-top-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
])
);
});
- test("var() for both border width and color", () => {
- const result = decls(
- `--w: 2px; --clr: blue; border: var(--w) dashed var(--clr);`
- );
+ test("outline shorthand does not leak unresolved width var into color", () => {
+ const result = decls(`outline: var(--outline-width) solid;`);
+
expect(result).toEqual(
expect.arrayContaining([
- prop("border-top-width", u(2, "px")),
- prop("border-top-color", kw("blue")),
+ prop(
+ "outline-width",
+ expect.objectContaining({ type: "var", value: "outline-width" })
+ ),
])
);
- });
- test("var() for border-top color", () => {
- const result = decls(`--clr: orange; border-top: 1px solid var(--clr);`);
- expect(result).toEqual(
- expect.arrayContaining([prop("border-top-color", kw("orange"))])
+ const outlineColor = result.find(
+ (decl) => decl.property === "outline-color"
);
- });
-
- test("var() for border-bottom width", () => {
- const result = decls(`--w: 4px; border-bottom: var(--w) solid black;`);
- expect(result).toEqual(
- expect.arrayContaining([prop("border-bottom-width", u(4, "px"))])
+ expect(outlineColor).toBeDefined();
+ expect(outlineColor?.value).not.toEqual(
+ expect.objectContaining({ type: "var" })
);
});
- test("var() for border-left width and color", () => {
+ test("border shorthand with repeated unresolved var preserves color var", () => {
const result = decls(
- `--w: 1px; --clr: purple; border-left: var(--w) solid var(--clr);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("border-left-width", u(1, "px")),
- prop("border-left-color", kw("purple")),
- ])
- );
- });
-
- test("var() for border-block color", () => {
- const result = decls(`--clr: teal; border-block: 2px solid var(--clr);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("border-block-start-color", kw("teal")),
- prop("border-block-end-color", kw("teal")),
- ])
+ `border: var(--border-color) solid var(--border-color);`
);
- });
- test("var() for border-inline width", () => {
- const result = decls(`--w: 3px; border-inline: var(--w) solid black;`);
expect(result).toEqual(
expect.arrayContaining([
- prop("border-inline-start-width", u(3, "px")),
- prop("border-inline-end-width", u(3, "px")),
+ prop(
+ "border-top-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
+ prop(
+ "border-right-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
+ prop(
+ "border-bottom-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
+ prop(
+ "border-left-color",
+ expect.objectContaining({ type: "var", value: "border-color" })
+ ),
])
);
});
@@ -2209,500 +2273,6 @@ describe("var() substitution — transitive (nested) var() resolution", () => {
});
});
-describe("var() substitution — outline", () => {
- test("var() for outline color", () => {
- const result = decls(`--clr: red; outline: 2px solid var(--clr);`);
- expect(result).toEqual(
- expect.arrayContaining([prop("outline-color", kw("red"))])
- );
- });
-
- test("var() for outline width", () => {
- const result = decls(`--w: 3px; outline: var(--w) dotted black;`);
- expect(result).toEqual(
- expect.arrayContaining([prop("outline-width", u(3, "px"))])
- );
- });
-
- test("var() for both outline width and color", () => {
- const result = decls(
- `--w: 1px; --clr: navy; outline: var(--w) solid var(--clr);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("outline-width", u(1, "px")),
- prop("outline-color", kw("navy")),
- ])
- );
- });
-});
-
-describe("var() substitution — text-decoration", () => {
- test("var() for text-decoration color", () => {
- const result = decls(`--clr: red; text-decoration: underline var(--clr);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("text-decoration-line", kw("underline")),
- prop("text-decoration-color", kw("red")),
- ])
- );
- });
-
- test("var() for text-decoration style", () => {
- const result = decls(
- `--sty: dashed; text-decoration: underline var(--sty) red;`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("text-decoration-style", kw("dashed")),
- prop("text-decoration-color", kw("red")),
- ])
- );
- });
-});
-
-describe("var() substitution — text-emphasis", () => {
- test("var() for text-emphasis color", () => {
- const result = decls(`--clr: hotpink; text-emphasis: filled var(--clr);`);
- expect(result).toEqual(
- expect.arrayContaining([prop("text-emphasis-color", kw("hotpink"))])
- );
- });
-});
-
-describe("var() substitution — margin / padding", () => {
- test("var() for all sides of margin", () => {
- const result = decls(`--sp: 16px; margin: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("margin-top", u(16, "px")),
- prop("margin-right", u(16, "px")),
- prop("margin-bottom", u(16, "px")),
- prop("margin-left", u(16, "px")),
- ])
- );
- });
-
- test("var() for vertical/horizontal margin", () => {
- const result = decls(`--v: 8px; --h: 16px; margin: var(--v) var(--h);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("margin-top", u(8, "px")),
- prop("margin-right", u(16, "px")),
- prop("margin-bottom", u(8, "px")),
- prop("margin-left", u(16, "px")),
- ])
- );
- });
-
- test("var() for all sides of padding", () => {
- const result = decls(`--sp: 12px; padding: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("padding-top", u(12, "px")),
- prop("padding-right", u(12, "px")),
- prop("padding-bottom", u(12, "px")),
- prop("padding-left", u(12, "px")),
- ])
- );
- });
-
- test("var() for padding four-side notation", () => {
- const result = decls(
- `--a: 4px; --b: 8px; --c: 12px; --d: 16px; padding: var(--a) var(--b) var(--c) var(--d);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("padding-top", u(4, "px")),
- prop("padding-right", u(8, "px")),
- prop("padding-bottom", u(12, "px")),
- prop("padding-left", u(16, "px")),
- ])
- );
- });
-
- test("var() for margin-inline", () => {
- const result = decls(`--sp: 10px; margin-inline: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("margin-inline-start", u(10, "px")),
- prop("margin-inline-end", u(10, "px")),
- ])
- );
- });
-
- test("var() for margin-block start and end", () => {
- const result = decls(
- `--s: 8px; --e: 16px; margin-block: var(--s) var(--e);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("margin-block-start", u(8, "px")),
- prop("margin-block-end", u(16, "px")),
- ])
- );
- });
-
- test("var() for padding-inline", () => {
- const result = decls(`--sp: 20px; padding-inline: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("padding-inline-start", u(20, "px")),
- prop("padding-inline-end", u(20, "px")),
- ])
- );
- });
-
- test("var() for padding-block start and end", () => {
- const result = decls(
- `--s: 5px; --e: 10px; padding-block: var(--s) var(--e);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("padding-block-start", u(5, "px")),
- prop("padding-block-end", u(10, "px")),
- ])
- );
- });
-});
-
-describe("var() substitution — inset", () => {
- test("var() for all inset sides", () => {
- const result = decls(`--sp: 0px; inset: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("top", u(0, "px")),
- prop("right", u(0, "px")),
- prop("bottom", u(0, "px")),
- prop("left", u(0, "px")),
- ])
- );
- });
-
- test("var() for inset two-value notation", () => {
- const result = decls(`--v: 10px; --h: 20px; inset: var(--v) var(--h);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("top", u(10, "px")),
- prop("right", u(20, "px")),
- prop("bottom", u(10, "px")),
- prop("left", u(20, "px")),
- ])
- );
- });
-
- test("var() for inset-inline", () => {
- const result = decls(
- `--s: 5px; --e: 15px; inset-inline: var(--s) var(--e);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("inset-inline-start", u(5, "px")),
- prop("inset-inline-end", u(15, "px")),
- ])
- );
- });
-
- test("var() for inset-block", () => {
- const result = decls(`--sp: 8px; inset-block: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("inset-block-start", u(8, "px")),
- prop("inset-block-end", u(8, "px")),
- ])
- );
- });
-});
-
-describe("var() substitution — gap", () => {
- test("var() for both row and column gap", () => {
- const result = decls(`--sp: 24px; gap: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("row-gap", u(24, "px")),
- prop("column-gap", u(24, "px")),
- ])
- );
- });
-
- test("var() for row and column gap separately", () => {
- const result = decls(`--rg: 16px; --cg: 32px; gap: var(--rg) var(--cg);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("row-gap", u(16, "px")),
- prop("column-gap", u(32, "px")),
- ])
- );
- });
-});
-
-describe("var() substitution — flex", () => {
- test("var() for flex-basis", () => {
- const result = decls(`--basis: 200px; flex: 1 1 var(--basis);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("flex-grow", num(1)),
- prop("flex-shrink", num(1)),
- prop("flex-basis", u(200, "px")),
- ])
- );
- });
-
- test("var() for flex-grow and flex-shrink", () => {
- const result = decls(`--g: 2; --s: 0; flex: var(--g) var(--s) auto;`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("flex-grow", num(2)),
- prop("flex-shrink", num(0)),
- prop("flex-basis", kw("auto")),
- ])
- );
- });
-});
-
-describe("var() substitution — column-rule", () => {
- test("var() for column-rule color", () => {
- const result = decls(`--clr: silver; column-rule: 1px solid var(--clr);`);
- expect(result).toEqual(
- expect.arrayContaining([prop("column-rule-color", kw("silver"))])
- );
- });
-
- test("var() for column-rule width", () => {
- const result = decls(`--w: 2px; column-rule: var(--w) solid black;`);
- expect(result).toEqual(
- expect.arrayContaining([prop("column-rule-width", u(2, "px"))])
- );
- });
-});
-
-describe("var() substitution — animation", () => {
- test("var() for animation duration", () => {
- const result = decls(
- `--dur: 0.5s; animation: slide var(--dur) ease infinite;`
- );
- const duration = result.find((d) => d.property === "animation-duration");
- expect(duration?.value).toEqual(u(0.5, "s"));
- });
-
- test("var() for animation duration and delay", () => {
- const result = decls(
- `--dur: 1s; --del: 200ms; animation: bounce var(--dur) ease var(--del);`
- );
- const duration = result.find((d) => d.property === "animation-duration");
- const delay = result.find((d) => d.property === "animation-delay");
- expect(duration?.value).toEqual(u(1, "s"));
- expect(delay?.value).toEqual(u(200, "ms"));
- });
-});
-
-describe("var() substitution — transition", () => {
- test("var() for transition duration", () => {
- const result = decls(`--dur: 300ms; transition: opacity var(--dur) ease;`);
- const duration = result.find((d) => d.property === "transition-duration");
- expect(duration?.value).toEqual(
- layers(expect.objectContaining({ type: "unit", value: 300, unit: "ms" }))
- );
- });
-
- test("var() for transition duration and delay", () => {
- const result = decls(
- `--dur: 200ms; --del: 50ms; transition: color var(--dur) linear var(--del);`
- );
- const duration = result.find((d) => d.property === "transition-duration");
- const delay = result.find((d) => d.property === "transition-delay");
- expect(duration?.value).toEqual(
- layers(expect.objectContaining({ type: "unit", value: 200, unit: "ms" }))
- );
- expect(delay?.value).toEqual(
- layers(expect.objectContaining({ type: "unit", value: 50, unit: "ms" }))
- );
- });
-
- test("var() for transition-property name", () => {
- // transition-property stores property names as unparsed (not keyword)
- const result = decls(`--prop: opacity; transition: var(--prop) 300ms;`);
- const property = result.find((d) => d.property === "transition-property");
- expect(property?.value).toEqual(
- layers(expect.objectContaining({ type: "unparsed", value: "opacity" }))
- );
- });
-});
-
-describe("var() substitution — grid-row / grid-column / grid-area", () => {
- test("var() for grid-row start", () => {
- const result = decls(`--start: 2; grid-row: var(--start) / 4;`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("grid-row-start", num(2)),
- prop("grid-row-end", num(4)),
- ])
- );
- });
-
- test("var() for grid-column end", () => {
- const result = decls(`--end: 3; grid-column: 1 / var(--end);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("grid-column-start", num(1)),
- prop("grid-column-end", num(3)),
- ])
- );
- });
-});
-
-describe("var() substitution — columns", () => {
- test("var() for column-width", () => {
- const result = decls(`--w: 200px; columns: var(--w) auto;`);
- expect(result).toEqual(
- expect.arrayContaining([prop("column-width", u(200, "px"))])
- );
- });
-
- test("var() for column-count", () => {
- const result = decls(`--n: 3; columns: auto var(--n);`);
- expect(result).toEqual(
- expect.arrayContaining([prop("column-count", num(3))])
- );
- });
-});
-
-describe("var() substitution — list-style", () => {
- test("var() for list-style-type", () => {
- const result = decls(`--type: square; list-style: var(--type);`);
- expect(result).toEqual(
- expect.arrayContaining([prop("list-style-type", kw("square"))])
- );
- });
-});
-
-describe("var() substitution — place-content / place-items / place-self", () => {
- test("var() for place-content align and justify", () => {
- const result = decls(
- `--a: center; --j: start; place-content: var(--a) var(--j);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("align-content", kw("center")),
- prop("justify-content", kw("start")),
- ])
- );
- });
-
- test("var() for place-items align", () => {
- const result = decls(`--a: end; place-items: var(--a) center;`);
- expect(result).toEqual(
- expect.arrayContaining([prop("align-items", kw("end"))])
- );
- });
-
- test("var() for place-self justify", () => {
- const result = decls(`--j: stretch; place-self: auto var(--j);`);
- expect(result).toEqual(
- expect.arrayContaining([prop("justify-self", kw("stretch"))])
- );
- });
-});
-
-describe("var() substitution — contain-intrinsic-size", () => {
- test("var() for both intrinsic dimensions", () => {
- const result = decls(
- `--w: 300px; --h: 200px; contain-intrinsic-size: var(--w) var(--h);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("contain-intrinsic-width", u(300, "px")),
- prop("contain-intrinsic-height", u(200, "px")),
- ])
- );
- });
-});
-
-describe("var() substitution — scroll-margin / scroll-padding", () => {
- test("var() for all scroll-margin sides", () => {
- const result = decls(`--sp: 8px; scroll-margin: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("scroll-margin-top", u(8, "px")),
- prop("scroll-margin-right", u(8, "px")),
- prop("scroll-margin-bottom", u(8, "px")),
- prop("scroll-margin-left", u(8, "px")),
- ])
- );
- });
-
- test("var() for scroll-padding vertical/horizontal", () => {
- const result = decls(
- `--v: 4px; --h: 8px; scroll-padding: var(--v) var(--h);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("scroll-padding-top", u(4, "px")),
- prop("scroll-padding-right", u(8, "px")),
- prop("scroll-padding-bottom", u(4, "px")),
- prop("scroll-padding-left", u(8, "px")),
- ])
- );
- });
-
- test("var() for scroll-padding-inline", () => {
- const result = decls(`--sp: 12px; scroll-padding-inline: var(--sp);`);
- expect(result).toEqual(
- expect.arrayContaining([
- prop("scroll-padding-inline-start", u(12, "px")),
- prop("scroll-padding-inline-end", u(12, "px")),
- ])
- );
- });
-
- test("var() for scroll-margin-block", () => {
- const result = decls(
- `--s: 6px; --e: 10px; scroll-margin-block: var(--s) var(--e);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("scroll-margin-block-start", u(6, "px")),
- prop("scroll-margin-block-end", u(10, "px")),
- ])
- );
- });
-});
-
-describe("var() substitution — font", () => {
- test("var() for font-size", () => {
- const result = decls(`--sz: 18px; font: var(--sz) Arial;`);
- expect(result).toEqual(
- expect.arrayContaining([prop("font-size", u(18, "px"))])
- );
- });
-
- test("var() for font-weight and font-size", () => {
- const result = decls(
- `--w: 700; --sz: 16px; font: var(--w) var(--sz) sans-serif;`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("font-weight", num(700)),
- prop("font-size", u(16, "px")),
- ])
- );
- });
-});
-
-describe("var() substitution — -webkit-text-stroke", () => {
- test("var() for stroke width and color", () => {
- const result = decls(
- `--w: 1px; --clr: black; -webkit-text-stroke: var(--w) var(--clr);`
- );
- expect(result).toEqual(
- expect.arrayContaining([
- prop("-webkit-text-stroke-width", u(1, "px")),
- prop("-webkit-text-stroke-color", kw("black")),
- ])
- );
- });
-});
-
describe("parseCss — external cssVars parameter", () => {
// Helper that passes an external var map
const declsWithVars = (css: string, vars: Record<string, string>) =>
@@ -3020,69 +2590,76 @@ describe("parseCss — external cssVars parameter", () => {
);
});
- // ── comprehensive shorthand coverage ─────────────────────────────────────
- //
- // Test cases are driven entirely by the generated fixture:
- // src/__generated__/shorthand-test-fixtures.ts
- //
- // Regenerate with: pnpm build:shorthand-fixtures
- //
- // For every shorthand that expandShorthands() handles we run two cases:
- // • singleToken – a value matching exactly a single longhand: at least
- // one longhand must have type:"var", none may be type:"invalid".
- // • multiToken – a value spanning *all* longhands differently: every
- // longhand must have type:"var".
- //
- // Shorthands whose longhands[] is empty are not handled by expandShorthands
- // (they pass through), so no cross-rule substitution is expected from them.
-
- const expandableFixtures = shorthandTestFixtures.filter(
- (f) => f.longhands.length > 0
+ const unsupportedFixtures = propertyVarTestFixtures.filter(
+ (fixture) => fixture.cases.length === 0
);
- test.each(expandableFixtures)(
- "cross-rule single-token var: $property — at least one var longhand, no invalids",
- ({ property, singleToken }) => {
- const result = declsWithVars(`${property}: var(--v);`, {
- "--v": singleToken,
- });
+ test("grammar var fixture covers every supported property", () => {
+ expect(unsupportedFixtures).toEqual([]);
+ });
+
+ const generatedCases = propertyVarTestFixtures.flatMap((fixture) => {
+ return fixture.cases.map((testCase) => ({
+ caseId: testCase.id,
+ kind: fixture.kind,
+ positions: testCase.positions,
+ property: fixture.property,
+ syntax: fixture.syntax,
+ value: testCase.value,
+ variables: testCase.variables,
+ }));
+ });
+
+ const knownResolvedGapCases = new Set([
+ "font/pattern-1-slot-1",
+ "list-style/pattern-1-slot-2",
+ ]);
+
+ const resolvableGeneratedCases = generatedCases.filter((testCase) => {
+ return (
+ knownResolvedGapCases.has(`${testCase.property}/${testCase.caseId}`) ===
+ false
+ );
+ });
+
+ test.each(resolvableGeneratedCases)(
+ "grammar var case: $property / $caseId — cssVars resolve without invalid values",
+ ({ property, value, variables }) => {
+ const result = declsWithVars(`${property}: ${value};`, variables);
expect(result.length).toBeGreaterThan(0);
- const invalids = result.filter((d) => d.value.type === "invalid");
- const vars = result.filter((d) => d.value.type === "var");
+ const invalids = result.filter((decl) => decl.value.type === "invalid");
expect(invalids).toHaveLength(0);
- expect(vars.length).toBeGreaterThan(0);
}
);
- test.each(expandableFixtures)(
- "cross-rule multi-token var: $property — all longhands are var(), no invalids",
- ({ property, multiToken }) => {
- const result = declsWithVars(`${property}: var(--v);`, {
- "--v": multiToken,
- });
- expect(result.length).toBeGreaterThan(0);
- const invalids = result.filter((d) => d.value.type === "invalid");
- const vars = result.filter((d) => d.value.type === "var");
- expect(invalids).toHaveLength(0);
- expect(vars).toHaveLength(result.length);
+ const unresolvedGeneratedGapCases = generatedCases.filter((testCase) => {
+ return knownResolvedGapCases.has(`${testCase.property}/${testCase.caseId}`);
+ });
+
+ test.each(unresolvedGeneratedGapCases)(
+ "grammar var case: $property / $caseId — current parser gap is explicit",
+ ({ property, value, variables }) => {
+ const result = declsWithVars(`${property}: ${value};`, variables);
+ const invalids = result.filter((decl) => decl.value.type === "invalid");
+ expect(result.length === 0 || invalids.length > 0).toBe(true);
}
);
- // Shorthands not handled by expandShorthands (passthrough): verify they
- // produce no invalid values when a cross-rule var is used as the value.
- const passthroughFixtures = shorthandTestFixtures.filter(
- (f) => f.longhands.length === 0
+ const longhandGeneratedCases = generatedCases.filter(
+ (testCase) => testCase.kind === "longhand"
);
- test.each(passthroughFixtures)(
- "cross-rule passthrough shorthand: $property — no invalid values",
- ({ property }) => {
- const result = declsWithVars(`${property}: var(--v);`, {
- "--v": "none",
- });
+ test.each(longhandGeneratedCases)(
+ "grammar var case: $property / $caseId — authored var references stay parseable",
+ ({ property, value }) => {
+ const result = decls(`${property}: ${value};`);
expect(result.length).toBeGreaterThan(0);
- const invalids = result.filter((d) => d.value.type === "invalid");
+ const invalids = result.filter((decl) => decl.value.type === "invalid");
expect(invalids).toHaveLength(0);
+ const preserved = result.some((decl) =>
+ valueContainsVarReference(decl.value)
+ );
+ expect(preserved).toBe(true);
}
);
});
diff --git a/packages/css-data/src/parse-css.ts b/packages/css-data/src/parse-css.ts
index 769b1b92f8..ebbae28f66 100644
--- a/packages/css-data/src/parse-css.ts
+++ b/packages/css-data/src/parse-css.ts
@@ -109,7 +109,9 @@ const resolveVars = (
customProperties: Map<string, string>,
cssVars: Map<string, string> | undefined,
depth = 0
-): { resolved: string; dropped: string[] } | undefined => {
+):
+ | { resolved: string; dropped: string[]; usedCssVarsSubstitution: boolean }
+ | undefined => {
if (!value.includes("var(") || depth > 8) {
return;
}
@@ -123,6 +125,7 @@ const resolveVars = (
const subs: Array<{ start: number; end: number; text: string }> = [];
const dropped: string[] = [];
+ let usedCssVarsSubstitution = false;
csstree.walk(ast, {
visit: "Function",
@@ -141,6 +144,9 @@ const resolveVars = (
cssVars?.get(`--${varRef.value}`);
if (direct !== undefined) {
+ if (!customProperties.has(`--${varRef.value}`)) {
+ usedCssVarsSubstitution = true;
+ }
subs.push({
start: fnNode.loc.start.offset,
end: fnNode.loc.end.offset,
@@ -187,12 +193,272 @@ const resolveVars = (
return {
resolved: deeper.resolved,
dropped: [...new Set([...dropped, ...deeper.dropped])],
+ usedCssVarsSubstitution:
+ usedCssVarsSubstitution || deeper.usedCssVarsSubstitution,
};
}
}
- return { resolved, dropped };
+ return { resolved, dropped, usedCssVarsSubstitution };
+};
+
+const preserveOriginalVarLonghands = (
+ property: string,
+ value: string,
+ parsedCss: Map<CssProperty, StyleValue>
+) => {
+ const originalExpanded = new Map(expandShorthands([[property, value]]));
+ const wholeValueVarText = getWholeValueFallbacklessVarText(value);
+
+ for (const [prop, expandedValue] of originalExpanded) {
+ if (!expandedValue.includes("var(")) {
+ continue;
+ }
+ parsedCss.set(
+ prop as CssProperty,
+ parseCssValueLonghand(prop as CssProperty, expandedValue)
+ );
+ }
+
+ // Recover unresolved var()->longhand mapping when shorthand expansion drops
+ // the var() token (e.g. outline/border cases that default to currentcolor).
+ for (const varText of getFallbacklessVarTexts(value)) {
+ const varName = getVarNameFromVarText(varText);
+ if (varName === undefined) {
+ continue;
+ }
+
+ const placeholder = inferVarPlaceholder(varName);
+ if (placeholder === undefined) {
+ continue;
+ }
+
+ const substituted = value.split(varText).join(placeholder);
+ const expandedWithPlaceholder = new Map(
+ expandShorthands([[property, substituted]])
+ );
+ const normalizedPlaceholder = normalizeCssValueText(placeholder);
+
+ for (const [prop, expandedValue] of expandedWithPlaceholder) {
+ if (normalizeCssValueText(expandedValue) !== normalizedPlaceholder) {
+ continue;
+ }
+
+ parsedCss.set(
+ prop as CssProperty,
+ parseCssValueLonghand(prop as CssProperty, varText)
+ );
+ }
+ }
+
+ if (wholeValueVarText !== undefined) {
+ const preservedVarLonghands = new Map<CssProperty, StyleValue>();
+
+ for (const prop of parsedCss.keys()) {
+ preservedVarLonghands.set(
+ prop,
+ parseCssValueLonghand(prop, wholeValueVarText)
+ );
+ }
+
+ if (preservedVarLonghands.size > 0) {
+ return preservedVarLonghands;
+ }
+ }
+
+ // css-tree shorthand expansion doesn't currently recover background-image
+ // from authored gradient shorthands that still contain var() references.
+ if (
+ property === "background" &&
+ value.includes("gradient(") &&
+ value.includes("var(")
+ ) {
+ parsedCss.set(
+ "background-image",
+ parseCssValueLonghand("background-image", value)
+ );
+ }
+
+ return parsedCss;
+};
+
+const preserveOriginalBackgroundImageVars = (
+ property: string,
+ value: string,
+ parsedCss: Map<CssProperty, StyleValue>
+) => {
+ if (
+ property === "background" &&
+ value.includes("gradient(") &&
+ value.includes("var(")
+ ) {
+ parsedCss.set(
+ "background-image",
+ parseCssValueLonghand("background-image", value)
+ );
+ }
+
+ return parsedCss;
+};
+
+const getSingleFallbacklessVarText = (value: string): string | undefined => {
+ try {
+ const ast = csstree.parse(value, { context: "value" });
+ const vars: string[] = [];
+ let hasFallback = false;
+
+ csstree.walk(ast, {
+ visit: "Function",
+ enter(node) {
+ const fnNode = node as csstree.FunctionNode;
+ if (fnNode.name !== "var") {
+ return;
+ }
+ const parsedVar = parseCssVar(fnNode);
+ if (!parsedVar || parsedVar.fallback !== undefined) {
+ hasFallback = true;
+ return walkSkip;
+ }
+ vars.push(csstree.generate(fnNode));
+ },
+ });
+
+ if (hasFallback || vars.length !== 1) {
+ return;
+ }
+
+ return vars[0];
+ } catch {
+ return;
+ }
+};
+
+const getFallbacklessVarTexts = (value: string): string[] => {
+ try {
+ const ast = csstree.parse(value, { context: "value" });
+ const vars: string[] = [];
+
+ csstree.walk(ast, {
+ visit: "Function",
+ enter(node) {
+ const fnNode = node as csstree.FunctionNode;
+ if (fnNode.name !== "var") {
+ return;
+ }
+ const parsedVar = parseCssVar(fnNode);
+ if (!parsedVar || parsedVar.fallback !== undefined) {
+ return;
+ }
+ vars.push(csstree.generate(fnNode));
+ },
+ });
+
+ return [...new Set(vars)];
+ } catch {
+ return [];
+ }
+};
+
+const getVarNameFromVarText = (varText: string): string | undefined => {
+ const match = varText.trim().match(/^var\(\s*(--[\w-]+)\s*\)$/);
+ return match?.[1];
+};
+
+const normalizeCssValueText = (value: string): string => {
+ try {
+ return csstree.generate(csstree.parse(value, { context: "value" }));
+ } catch {
+ return value;
+ }
+};
+
+const inferVarPlaceholder = (varName: string): string | undefined => {
+ if (/(^|-)color(s)?($|-)|(^|-)fill($|-)|(^|-)stroke($|-)/.test(varName)) {
+ return "rgb(1,2,3)";
+ }
+ if (/(^|-)style($|-)|(^|-)line($|-)/.test(varName)) {
+ return "solid";
+ }
+ if (
+ /(^|-)(width|height|size|radius|thickness|offset|gap|inset|spacing|margin|padding)($|-)/.test(
+ varName
+ )
+ ) {
+ return "1px";
+ }
+ if (/(^|-)opacity($|-)/.test(varName)) {
+ return "0.5";
+ }
+ return;
+};
+
+const getWholeValueFallbacklessVarText = (
+ value: string
+): string | undefined => {
+ const singleVarText = getSingleFallbacklessVarText(value);
+ if (singleVarText === undefined) {
+ return;
+ }
+
+ try {
+ const normalizedValue = csstree.generate(
+ csstree.parse(value, { context: "value" })
+ );
+ if (normalizedValue !== singleVarText) {
+ return;
+ }
+ return singleVarText;
+ } catch {
+ return;
+ }
+};
+
+const hasOnlyFallbacklessVars = (value: string): boolean => {
+ let hasVar = false;
+
+ try {
+ const ast = csstree.parse(value, { context: "value" });
+ let allFallbackless = true;
+
+ csstree.walk(ast, {
+ visit: "Function",
+ enter(node) {
+ const fnNode = node as csstree.FunctionNode;
+ if (fnNode.name !== "var") {
+ return;
+ }
+ const parsedVar = parseCssVar(fnNode);
+ if (!parsedVar) {
+ allFallbackless = false;
+ return walkSkip;
+ }
+ hasVar = true;
+ if (parsedVar.fallback !== undefined) {
+ allFallbackless = false;
+ return walkSkip;
+ }
+ },
+ });
+
+ return hasVar && allFallbackless;
+ } catch {
+ return false;
+ }
};
+// css-tree keeps escaped selector identifiers as-is.
+// Example: `.border-\[color\:var\(--border-color\)\]` is parsed with
+// node.name = "border-\\[color\\:var\\(--border-color\\)\\]".
+// We unescape it so class names match authored HTML class attributes.
+const unescapeCssIdentifier = (value: string): string =>
+ value.replace(/\\([0-9a-fA-F]{1,6}\s?|.)/g, (_match, escaped: string) => {
+ const hexMatch = escaped.match(/^([0-9a-fA-F]{1,6})\s?$/);
+ if (hexMatch) {
+ const codePoint = Number.parseInt(hexMatch[1], 16);
+ return String.fromCodePoint(codePoint);
+ }
+ return escaped;
+ });
+
/**
* Substitute var() references in a shorthand value then expand the result.
* Works for any shorthand (background, border, transition, font…).
@@ -288,6 +554,7 @@ const substituteVarsInShorthand = (
}
const { resolved, dropped } = resolution;
+ const { usedCssVarsSubstitution } = resolution;
if (resolved === value) {
// No substitution happened.
@@ -295,12 +562,31 @@ const substituteVarsInShorthand = (
// No recognizable var() nodes — let caller fall through to default.
return;
}
+ if (hasOnlyFallbacklessVars(value)) {
+ const parsed = preserveOriginalVarLonghands(
+ property,
+ value,
+ parseCssValue(property as CssProperty, value)
+ );
+ if (parsed.size > 0) {
+ return {
+ result: parsed,
+ droppedVars: dropped,
+ };
+ }
+ }
// All vars were unresolvable — signal that the property will be dropped.
return { result: new Map(), droppedVars: dropped };
}
+ let parsed = parseCssValue(property as CssProperty, resolved);
+
+ if (value.includes("var(") && usedCssVarsSubstitution) {
+ parsed = preserveOriginalBackgroundImageVars(property, value, parsed);
+ }
+
return {
- result: parseCssValue(property as CssProperty, resolved),
+ result: parsed,
droppedVars: dropped,
};
};
@@ -701,7 +987,7 @@ export const parseClassBasedSelector = (
const segClassNames: string[] = [];
for (const node of segment.nodes) {
if (node.type === "ClassSelector") {
- segClassNames.push(node.name);
+ segClassNames.push(unescapeCssIdentifier(node.name));
} else {
// Non-class node in an ancestor segment — reject
return undefined;
@@ -724,7 +1010,7 @@ export const parseClassBasedSelector = (
for (const node of lastSegment.nodes) {
switch (node.type) {
case "ClassSelector":
- classNames.push(node.name);
+ classNames.push(unescapeCssIdentifier(node.name));
break;
case "AttributeSelector":
case "PseudoClassSelector":
diff --git a/packages/css-data/src/property-parsers/conic-gradient.ts b/packages/css-data/src/property-parsers/conic-gradient.ts
index a94ca9199e..5f649822a9 100644
--- a/packages/css-data/src/property-parsers/conic-gradient.ts
+++ b/packages/css-data/src/property-parsers/conic-gradient.ts
@@ -6,13 +6,14 @@ import {
type VarValue,
} from "@webstudio-is/css-engine";
import {
- getColor,
isAngleUnit,
- isColorStop,
- mapLengthPercentageOrVar,
formatGradientStops,
+ mapLengthPercentageOrVar,
normalizeRepeatingGradient,
+ parseGradientHintFromParts,
+ parseGradientStopFromParts,
forEachGradientParts,
+ withoutWhitespaceNodes,
} from "./gradient-utils";
import type { GradientStop, ParsedConicGradient } from "./types";
@@ -28,7 +29,7 @@ const isIdentifier = (node: csstree.CssNode, value: string) =>
const parseGradientPart = (
nodes: csstree.CssNode[]
): GradientPartResult | undefined => {
- const filtered = nodes.filter((node) => node.type !== "WhiteSpace");
+ const filtered = withoutWhitespaceNodes(nodes);
if (filtered.length === 0) {
return;
}
@@ -58,23 +59,12 @@ const parseGradientPart = (
return;
}
- const colorNode = filtered.find(isColorStop);
- if (colorNode !== undefined) {
- const color = getColor(colorNode);
- const colorIndex = filtered.indexOf(colorNode);
- const positionNode = filtered[colorIndex + 1];
- const hintNode = filtered[colorIndex + 2];
-
- const stop: GradientStop = {
- color,
- position: mapLengthPercentageOrVar(positionNode),
- hint: mapLengthPercentageOrVar(hintNode),
- };
-
+ const stop = parseGradientStopFromParts(filtered);
+ if (stop !== undefined) {
return { type: "stop", value: stop };
}
- const hint = mapLengthPercentageOrVar(filtered[0]);
+ const hint = parseGradientHintFromParts(filtered);
if (hint !== undefined) {
return { type: "hint", value: hint };
}
@@ -107,10 +97,9 @@ export const parseConicGradient = (
const stops: GradientStop[] = [];
forEachGradientParts(ast, "conic-gradient", (gradientParts) => {
- const filteredParts = gradientParts.filter(
- (node) => node.type !== "WhiteSpace"
- );
- const containsStop = filteredParts.some(isColorStop);
+ const filteredParts = withoutWhitespaceNodes(gradientParts);
+ const containsStop =
+ parseGradientStopFromParts(filteredParts) !== undefined;
let handledDirective = false;
const fromIndex = filteredParts.findIndex((node) =>
diff --git a/packages/css-data/src/property-parsers/gradient-utils.test.ts b/packages/css-data/src/property-parsers/gradient-utils.test.ts
new file mode 100644
index 0000000000..0e10a5e9dc
--- /dev/null
+++ b/packages/css-data/src/property-parsers/gradient-utils.test.ts
@@ -0,0 +1,192 @@
+import * as csstree from "css-tree";
+import { describe, expect, test } from "vitest";
+import {
+ forEachGradientParts,
+ formatGradientStops,
+ getColor,
+ isAngleDimension,
+ isAngleLikeFallback,
+ isAngleUnit,
+ isColorStop,
+ isVarAngle,
+ mapLengthPercentageOrVar,
+ normalizeRepeatingGradient,
+ parseGradientHintFromParts,
+ parseGradientStopFromParts,
+ withoutWhitespaceNodes,
+} from "./gradient-utils";
+
+const parseValue = (value: string) => {
+ return csstree.parse(value, { context: "value" });
+};
+
+const firstValueNode = (value: string) => {
+ const ast = parseValue(value);
+ if (ast.type !== "Value") {
+ throw new Error("Expected Value AST");
+ }
+ const first = ast.children.first;
+ if (!first) {
+ throw new Error("Expected first child node");
+ }
+ return first;
+};
+
+describe("gradient utils", () => {
+ test("detects angle units and dimensions", () => {
+ expect(isAngleUnit("deg")).toBe(true);
+ expect(isAngleUnit("rad")).toBe(true);
+ expect(isAngleUnit("px")).toBe(false);
+
+ const angleNode = firstValueNode("45deg");
+ expect(isAngleDimension(angleNode)).toBe(true);
+
+ const lengthNode = firstValueNode("10px");
+ expect(isAngleDimension(lengthNode)).toBe(false);
+ });
+
+ test("detects angle-like var fallbacks", () => {
+ expect(isAngleLikeFallback({ type: "unit", unit: "turn", value: 1 })).toBe(
+ true
+ );
+ expect(isAngleLikeFallback({ type: "keyword", value: "to left" })).toBe(
+ true
+ );
+ expect(isAngleLikeFallback({ type: "unparsed", value: "10grad" })).toBe(
+ true
+ );
+ expect(isAngleLikeFallback(undefined)).toBe(false);
+ expect(isAngleLikeFallback({ type: "keyword", value: "auto" })).toBe(false);
+ });
+
+ test("detects angle-like vars by fallback or name", () => {
+ expect(isVarAngle({ type: "var", value: "angle" })).toBe(true);
+ expect(
+ isVarAngle({
+ type: "var",
+ value: "custom-direction",
+ fallback: { type: "keyword", value: "to right" },
+ })
+ ).toBe(true);
+ expect(isVarAngle({ type: "var", value: "color" })).toBe(false);
+ });
+
+ test("maps units and vars", () => {
+ expect(mapLengthPercentageOrVar(firstValueNode("50%"))).toEqual({
+ type: "unit",
+ unit: "%",
+ value: 50,
+ });
+ expect(mapLengthPercentageOrVar(firstValueNode("12px"))).toEqual({
+ type: "unit",
+ unit: "px",
+ value: 12,
+ });
+ expect(mapLengthPercentageOrVar(firstValueNode("2"))).toEqual({
+ type: "unit",
+ unit: "number",
+ value: 2,
+ });
+
+ const varNode = firstValueNode("var(--stop)");
+ expect(mapLengthPercentageOrVar(varNode)).toEqual({
+ type: "var",
+ value: "stop",
+ });
+ });
+
+ test("reads color values and color-stop detection", () => {
+ const colorNode = firstValueNode("red");
+ expect(getColor(colorNode)).toEqual(
+ expect.objectContaining({ type: "color" })
+ );
+ expect(isColorStop(colorNode)).toBe(true);
+
+ const nonColorNode = firstValueNode("20px");
+ expect(getColor(nonColorNode)).toBeUndefined();
+ expect(isColorStop(nonColorNode)).toBe(false);
+ });
+
+ test("filters whitespace nodes", () => {
+ let nodes: csstree.CssNode[] = [];
+ const gradientAst = parseValue("linear-gradient(red 10% 20%, blue)");
+ forEachGradientParts(gradientAst, "linear-gradient", (parts) => {
+ if (nodes.length === 0) {
+ nodes = parts;
+ }
+ });
+
+ const filtered = withoutWhitespaceNodes(nodes);
+
+ expect(nodes.length).toBeGreaterThan(0);
+ expect(filtered.every((node) => node.type !== "WhiteSpace")).toBe(true);
+ expect(filtered.map((node) => node.type)).toEqual(
+ expect.arrayContaining(["Identifier", "Percentage", "Percentage"])
+ );
+ });
+
+ test("parses a gradient stop and a hint from parts", () => {
+ const stopAst = parseValue("red 10% 20%");
+ if (stopAst.type !== "Value") {
+ throw new Error("Expected Value AST");
+ }
+ const stop = parseGradientStopFromParts(
+ withoutWhitespaceNodes(stopAst.children.toArray())
+ );
+ expect(stop).toEqual({
+ color: expect.objectContaining({ type: "color" }),
+ position: { type: "unit", unit: "%", value: 10 },
+ hint: { type: "unit", unit: "%", value: 20 },
+ });
+
+ const hintAst = parseValue("30%");
+ if (hintAst.type !== "Value") {
+ throw new Error("Expected Value AST");
+ }
+ const hint = parseGradientHintFromParts(
+ withoutWhitespaceNodes(hintAst.children.toArray())
+ );
+ expect(hint).toEqual({ type: "unit", unit: "%", value: 30 });
+ });
+
+ test("formats stops and normalizes repeating gradient name", () => {
+ const formatted = formatGradientStops([
+ {
+ color: { type: "keyword", value: "red" },
+ position: { type: "unit", unit: "%", value: 0 },
+ },
+ {
+ color: { type: "keyword", value: "blue" },
+ position: { type: "unit", unit: "%", value: 100 },
+ },
+ ]);
+ expect(formatted).toBe("red 0%, blue 100%");
+
+ expect(
+ normalizeRepeatingGradient(
+ "repeating-linear-gradient(red, blue)",
+ "repeating-linear-gradient",
+ "linear-gradient"
+ )
+ ).toEqual({
+ normalized: "linear-gradient(red, blue)",
+ isRepeating: true,
+ });
+ });
+
+ test("iterates gradient parts split by commas", () => {
+ const ast = parseValue("linear-gradient(45deg, red 0%, blue 100%)");
+ const parts: string[] = [];
+ forEachGradientParts(ast, "linear-gradient", (nodes) => {
+ parts.push(
+ nodes
+ .map((node) => csstree.generate(node))
+ .join(" ")
+ .replace(/\s+/g, " ")
+ .trim()
+ );
+ });
+
+ expect(parts).toEqual(["45deg", "red 0%", "blue 100%"]);
+ });
+});
diff --git a/packages/css-data/src/property-parsers/gradient-utils.ts b/packages/css-data/src/property-parsers/gradient-utils.ts
index 3285d4394e..ea6e0282a0 100644
--- a/packages/css-data/src/property-parsers/gradient-utils.ts
+++ b/packages/css-data/src/property-parsers/gradient-utils.ts
@@ -122,6 +122,42 @@ export const getColor = (
export const isColorStop = (node: csstree.CssNode): boolean =>
getColor(node) !== undefined;
+export const withoutWhitespaceNodes = (
+ nodes: csstree.CssNode[]
+): csstree.CssNode[] => {
+ return nodes.filter((node) => node.type !== "WhiteSpace");
+};
+
+export const parseGradientStopFromParts = (
+ nodes: csstree.CssNode[]
+): GradientStop | undefined => {
+ const colorNode = nodes.find(isColorStop);
+ if (colorNode === undefined) {
+ return;
+ }
+
+ const color = getColor(colorNode);
+ if (color === undefined) {
+ return;
+ }
+
+ const colorIndex = nodes.indexOf(colorNode);
+ const positionNode = nodes[colorIndex + 1];
+ const hintNode = nodes[colorIndex + 2];
+
+ return {
+ color,
+ position: mapLengthPercentageOrVar(positionNode),
+ hint: mapLengthPercentageOrVar(hintNode),
+ };
+};
+
+export const parseGradientHintFromParts = (
+ nodes: csstree.CssNode[]
+): GradientStop["hint"] | undefined => {
+ return mapLengthPercentageOrVar(nodes[0]);
+};
+
export const formatGradientStops = (stops: GradientStop[]): string =>
stops
.map((stop) => {
diff --git a/packages/css-data/src/property-parsers/linear-gradient.ts b/packages/css-data/src/property-parsers/linear-gradient.ts
index bae8046b0e..59ccf6e630 100644
--- a/packages/css-data/src/property-parsers/linear-gradient.ts
+++ b/packages/css-data/src/property-parsers/linear-gradient.ts
@@ -7,12 +7,12 @@ import {
type VarValue,
} from "@webstudio-is/css-engine";
import {
- getColor,
isAngleDimension,
isAngleUnit,
isColorStop,
isVarAngle,
mapLengthPercentageOrVar,
+ parseGradientStopFromParts,
formatGradientStops,
normalizeRepeatingGradient,
forEachGradientParts,
@@ -102,18 +102,8 @@ export const parseLinearGradient = (
}
if (handledAsAngle === false) {
- const colorStop = gradientParts.find(isColorStop);
- if (colorStop !== undefined) {
- const colorIndex = gradientParts.indexOf(colorStop);
- const position = gradientParts[colorIndex + 1];
- const hint = gradientParts[colorIndex + 2];
-
- const stop: GradientStop = {
- color: getColor(colorStop),
- position: mapLengthPercentageOrVar(position),
- hint: mapLengthPercentageOrVar(hint),
- };
-
+ const stop = parseGradientStopFromParts(gradientParts);
+ if (stop !== undefined) {
stops.push(stop);
}
}
diff --git a/packages/css-data/src/property-parsers/radial-gradient.ts b/packages/css-data/src/property-parsers/radial-gradient.ts
index c8ba153a7a..940e1a4a78 100644
--- a/packages/css-data/src/property-parsers/radial-gradient.ts
+++ b/packages/css-data/src/property-parsers/radial-gradient.ts
@@ -2,12 +2,12 @@ import * as csstree from "css-tree";
import { cssTryParseValue } from "../parse-css-value";
import { toValue, type KeywordValue } from "@webstudio-is/css-engine";
import {
- getColor,
- isColorStop,
- mapLengthPercentageOrVar,
formatGradientStops,
normalizeRepeatingGradient,
+ parseGradientHintFromParts,
+ parseGradientStopFromParts,
forEachGradientParts,
+ withoutWhitespaceNodes,
} from "./gradient-utils";
import type { GradientStop, ParsedRadialGradient } from "./types";
@@ -64,22 +64,13 @@ export const parseRadialGradient = (
const stops: GradientStop[] = [];
forEachGradientParts(ast, "radial-gradient", (gradientParts) => {
- const filtered = gradientParts.filter((node) => node.type !== "WhiteSpace");
+ const filtered = withoutWhitespaceNodes(gradientParts);
if (filtered.length === 0) {
return;
}
- const colorStopNode = filtered.find(isColorStop);
- if (colorStopNode !== undefined) {
- const color = getColor(colorStopNode);
- const colorIndex = filtered.indexOf(colorStopNode);
- const positionNode = filtered[colorIndex + 1];
- const hintNode = filtered[colorIndex + 2];
- const stop: GradientStop = {
- color,
- position: mapLengthPercentageOrVar(positionNode),
- hint: mapLengthPercentageOrVar(hintNode),
- };
+ const stop = parseGradientStopFromParts(filtered);
+ if (stop !== undefined) {
stops.push(stop);
return;
}
@@ -120,7 +111,7 @@ export const parseRadialGradient = (
return;
}
- const hint = mapLengthPercentageOrVar(directiveTokens[0]);
+ const hint = parseGradientHintFromParts(directiveTokens);
if (hint !== undefined) {
stops.push({ hint });
}
diff --git a/packages/css-data/src/shorthands.ts b/packages/css-data/src/shorthands.ts
index a31b73af15..a63b221ea0 100644
--- a/packages/css-data/src/shorthands.ts
+++ b/packages/css-data/src/shorthands.ts
@@ -157,6 +157,39 @@ const parseUnordered = (syntaxes: string[], value: CssNode) => {
];
};
+const assignUnorderedNodes = (syntaxes: string[], value: CssNode) => {
+ const assigned = syntaxes.map(() => new List<CssNode>());
+ const unresolved = new List<CssNode>();
+
+ for (const node of getValueList(value)) {
+ const matchingIndexes: number[] = [];
+
+ syntaxes.forEach((syntax, index) => {
+ if (lexer.match(syntax, createValueNode([node])).matched) {
+ matchingIndexes.push(index);
+ }
+ });
+
+ if (matchingIndexes.length === 1) {
+ assigned[matchingIndexes[0]].appendData(node);
+ continue;
+ }
+
+ unresolved.appendData(node);
+ }
+
+ return {
+ assigned: assigned.map((list) => {
+ const nodes = list.toArray();
+ return nodes.length === 0 ? undefined : createValueNode(nodes);
+ }),
+ unresolved:
+ unresolved.isEmpty === false
+ ? createValueNode(unresolved.toArray())
+ : undefined,
+ };
+};
+
/**
*
* border = <line-width> || <line-style> || <color>
@@ -346,16 +379,28 @@ const expandFont = function* (value: CssNode) {
*
*/
const expandFontSynthesis = function* (value: CssNode) {
- const [weight, style, smallCaps, position] = parseUnordered(
+ const {
+ assigned: [weight, style, smallCaps, position],
+ unresolved,
+ } = assignUnorderedNodes(
["weight", "style", "small-caps", "position"],
value
);
const auto = createIdentifier("auto");
const none = createIdentifier("none");
- yield ["font-synthesis-weight", weight ? auto : none] as const;
- yield ["font-synthesis-style", style ? auto : none] as const;
- yield ["font-synthesis-small-caps", smallCaps ? auto : none] as const;
- yield ["font-synthesis-position", position ? auto : none] as const;
+ yield [
+ "font-synthesis-weight",
+ weight ? auto : (unresolved ?? none),
+ ] as const;
+ yield ["font-synthesis-style", style ? auto : (unresolved ?? none)] as const;
+ yield [
+ "font-synthesis-small-caps",
+ smallCaps ? auto : (unresolved ?? none),
+ ] as const;
+ yield [
+ "font-synthesis-position",
+ position ? auto : (unresolved ?? none),
+ ] as const;
};
/**
@@ -374,27 +419,40 @@ const expandFontSynthesis = function* (value: CssNode) {
*
*/
const expandFontVariant = function* (value: CssNode) {
- const [ligatures, caps, alternates, numeric, eastAsian, position, emoji] =
- parseUnordered(
- [
- "[ normal | none | <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",
- "[ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ]",
- "[ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",
- "[ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",
- "[ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",
- "[ sub | super ]",
- "[ text | emoji | unicode ]",
- ],
- value
- );
+ const {
+ assigned: [
+ ligatures,
+ caps,
+ alternates,
+ numeric,
+ eastAsian,
+ position,
+ emoji,
+ ],
+ unresolved,
+ } = assignUnorderedNodes(
+ [
+ "[ normal | none | <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",
+ "[ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ]",
+ "[ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",
+ "[ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",
+ "[ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",
+ "[ sub | super ]",
+ "[ text | emoji | unicode ]",
+ ],
+ value
+ );
const normal = createIdentifier("normal");
- yield ["font-variant-ligatures", ligatures ?? normal] as const;
- yield ["font-variant-caps", caps ?? normal] as const;
- yield ["font-variant-alternates", alternates ?? normal] as const;
- yield ["font-variant-numeric", numeric ?? normal] as const;
- yield ["font-variant-east-asian", eastAsian ?? normal] as const;
- yield ["font-variant-position", position ?? normal] as const;
- yield ["font-variant-emoji", emoji ?? normal] as const;
+ yield ["font-variant-ligatures", ligatures ?? unresolved ?? normal] as const;
+ yield ["font-variant-caps", caps ?? unresolved ?? normal] as const;
+ yield [
+ "font-variant-alternates",
+ alternates ?? unresolved ?? normal,
+ ] as const;
+ yield ["font-variant-numeric", numeric ?? unresolved ?? normal] as const;
+ yield ["font-variant-east-asian", eastAsian ?? unresolved ?? normal] as const;
+ yield ["font-variant-position", position ?? unresolved ?? normal] as const;
+ yield ["font-variant-emoji", emoji ?? unresolved ?? normal] as const;
};
const expandFlex = function* (value: CssNode) {
@@ -860,26 +918,41 @@ const expandWhiteSpace = function* (value: CssNode) {
const preserveKeyword = createIdentifier("preserve");
const wrapKeyword = createIdentifier("wrap");
const nowrapKeyword = createIdentifier("nowrap");
- let collapse = collapseKeyword;
- let wrapMode = wrapKeyword;
- [collapse = collapseKeyword, wrapMode = wrapKeyword] = parseUnordered(
- ["<'white-space-collapse'>", "<'text-wrap-mode'>"],
- value
- );
if (lexer.match("normal", value).matched) {
- [collapse, wrapMode] = [collapseKeyword, wrapKeyword];
+ yield ["white-space-collapse", collapseKeyword] as const;
+ yield ["text-wrap-mode", wrapKeyword] as const;
+ return;
}
if (lexer.match("pre", value).matched) {
- [collapse, wrapMode] = [preserveKeyword, nowrapKeyword];
+ yield ["white-space-collapse", preserveKeyword] as const;
+ yield ["text-wrap-mode", nowrapKeyword] as const;
+ return;
}
if (lexer.match("pre-wrap", value).matched) {
- [collapse, wrapMode] = [preserveKeyword, wrapKeyword];
+ yield ["white-space-collapse", preserveKeyword] as const;
+ yield ["text-wrap-mode", wrapKeyword] as const;
+ return;
}
if (lexer.match("pre-line", value).matched) {
- [collapse, wrapMode] = [createIdentifier("preserve-breaks"), wrapKeyword];
+ yield [
+ "white-space-collapse",
+ createIdentifier("preserve-breaks"),
+ ] as const;
+ yield ["text-wrap-mode", wrapKeyword] as const;
+ return;
}
- yield ["white-space-collapse", collapse] as const;
- yield ["text-wrap-mode", wrapMode] as const;
+ const {
+ assigned: [collapse, wrapMode],
+ unresolved,
+ } = assignUnorderedNodes(
+ ["<'white-space-collapse'>", "<'text-wrap-mode'>"],
+ value
+ );
+ yield [
+ "white-space-collapse",
+ collapse ?? unresolved ?? collapseKeyword,
+ ] as const;
+ yield ["text-wrap-mode", wrapMode ?? unresolved ?? wrapKeyword] as const;
};
/**
@@ -1360,12 +1433,21 @@ const expandShorthand = function* (property: string, value: CssNode) {
break;
case "text-wrap": {
- const [
- mode = createIdentifier("wrap"),
- style = createIdentifier("auto"),
- ] = parseUnordered(["<'text-wrap-mode'>", "<'text-wrap-style'>"], value);
- yield ["text-wrap-mode", mode] as const;
- yield ["text-wrap-style", style] as const;
+ const {
+ assigned: [mode, style],
+ unresolved,
+ } = assignUnorderedNodes(
+ ["<'text-wrap-mode'>", "<'text-wrap-style'>"],
+ value
+ );
+ yield [
+ "text-wrap-mode",
+ mode ?? unresolved ?? createIdentifier("wrap"),
+ ] as const;
+ yield [
+ "text-wrap-style",
+ style ?? unresolved ?? createIdentifier("auto"),
+ ] as const;
break;
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c1a56af613..79cf655de7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -212,14 +212,8 @@ importers:
specifier: ^2.5.3
version: 2.5.3
'@unocss/core':
- specifier: 66.1.2
- version: 66.1.2
- '@unocss/preset-legacy-compat':
- specifier: 66.1.2
- version: 66.1.2
- '@unocss/preset-wind3':
- specifier: 66.1.2
- version: 66.1.2
+ specifier: 66.6.8
+ version: 66.6.8
'@vercel/remix':
specifier: 2.15.3
@@ -443,6 +437,9 @@ importers:
'@types/react-dom':
specifier: ^18.2.25
version: 18.2.25
+ '@unocss/preset-wind4':
+ specifier: ^66.6.8
+ version: 66.6.8
'@vitest/coverage-v8':
specifier: 3.1.2
version: 3.1.2(@vitest/[email protected])([email protected])
@@ -3793,6 +3790,9 @@ packages:
'@jridgewell/[email protected]':
resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
+
'@jridgewell/[email protected]':
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
@@ -5634,23 +5634,17 @@ packages:
resolution: {integrity: sha512-nnEf37C9ue7OBRnF2zmV/OCBmV5Y7T/K4mCHa+nxgiXcF/1w8sA0cgdFl+gHQ0mysqUJ+Bu5btAMeWgpLyjrgg==}
hasBin: true
- '@unocss/[email protected]':
- resolution: {integrity: sha512-mN9h1hHEuhDcdbI4z74o7UnxlBZYVsJpYcdC1YLWBKROcLYTkuyZ7hgBzpo1FBNox2Bt3JnrSinVDmc44Bxjow==}
-
- '@unocss/[email protected]':
- resolution: {integrity: sha512-F570wH9VYeFTb4r8qgcbN5QpEVIAvFC1zOnrAPUr6B6kbU2YChMXxHP7PHK0AzLHnEr458Pwpzl6hmP6bzxZ8g==}
+ '@unocss/[email protected]':
+ resolution: {integrity: sha512-P9IlQfgms+8/nka7fBhiiWU4SPwrTNKbTdK0z1SLnttXMHHjsB2zpG+Vi1JQDpICfY9Y1/2pWtguPE+zeOVu9Q==}
- '@unocss/[email protected]':
- resolution: {integrity: sha512-s1SnCXm9ywmp0plWQsXr8APxRhQEeblF7E6UmanFMj012/DU0bxWVUafnXBbeYUjtfBKCFlDvbW2pm30UGNQOw==}
+ '@unocss/[email protected]':
+ resolution: {integrity: sha512-cOXstpPTOLt/HYcL0OsqFkNau0e8ktZ5Q8fgnXBZjmLGmi+VzdESNlwxZyCXLuamZGnbrZ8lDsKdsGG7P1pMKQ==}
- '@unocss/[email protected]':
- resolution: {integrity: sha512-oiDe+VhwZ8B5Z0UGfggtOwgpRZMLtH1RTDFvmJmJEXYYX5BPWknS6wYcQzxy0i/y9ym0xp2QnEaTpGmR7LKdkg==}
+ '@unocss/[email protected]':
+ resolution: {integrity: sha512-CheOm7KXOsTI5t4RXgeYz95CO5p589F6jsyYp+inOCk4N0/d+DWiDHrQ+V0x0HWs3JXWlD+/Va/yXjlc3o2sIw==}
- '@unocss/[email protected]':
- resolution: {integrity: sha512-S09imGOngAAOXCBCHb3JAtxD1/L7nDWrgEeX6NT0ElDp3X1T6XxUXYJlpjCfcqV/klMoXyYouKvp0YuG9QSgVg==}
-
- '@unocss/[email protected]':
- resolution: {integrity: sha512-nn0ehvDh7yyWq2mcBDLVpmMAivjRATUroZ8ETinyN1rmfsGesm71R0d1gV3K+Z6YC7a3+dMLc+/qzI7VK3AG/Q==}
+ '@unocss/[email protected]':
+ resolution: {integrity: sha512-WR35L07mLP6PElD4hlUHo5KbQ48uz2HT/XCuJyAsHP+15Gv6539hPWA5SresPuva9r8rl+PeGIgMSIKf4A5Ihw==}
engines: {node: '>=14'}
'@vanilla-extract/[email protected]':
@@ -6936,6 +6930,10 @@ packages:
resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==}
+ engines: {node: '>= 0.4'}
+
resolution: {integrity: sha512-kiGD9WIW3gRKK8Gao3n1f+ahUeTMeJUJILnIT2QNrPigDNdH7rJxzhEbh81UajGeAdAHFecT1a+fLVOCTq9B4Q==}
@@ -7356,6 +7354,9 @@ packages:
resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==}
@@ -8640,10 +8641,6 @@ packages:
resolution: {integrity: sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==}
engines: {node: '>=8.0.0'}
- resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
- engines: {node: '>=0.10.0'}
-
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
@@ -10783,6 +10780,8 @@ snapshots:
'@jridgewell/[email protected]': {}
+ '@jridgewell/[email protected]': {}
+
'@jridgewell/[email protected]':
dependencies:
'@jridgewell/resolve-uri': 3.1.0
@@ -12865,32 +12864,22 @@ snapshots:
'@typescript/native-preview-win32-arm64': 7.0.0-dev.20260120.1
'@typescript/native-preview-win32-x64': 7.0.0-dev.20260120.1
- '@unocss/[email protected]': {}
-
- '@unocss/[email protected]':
- dependencies:
- '@unocss/core': 66.1.2
+ '@unocss/[email protected]': {}
- '@unocss/[email protected]':
+ '@unocss/[email protected]':
dependencies:
- '@unocss/core': 66.1.2
+ '@unocss/core': 66.6.8
- '@unocss/[email protected]':
+ '@unocss/[email protected]':
dependencies:
- '@unocss/core': 66.1.2
- '@unocss/extractor-arbitrary-variants': 66.1.2
- '@unocss/rule-utils': 66.1.2
+ '@unocss/core': 66.6.8
+ '@unocss/extractor-arbitrary-variants': 66.6.8
+ '@unocss/rule-utils': 66.6.8
- '@unocss/[email protected]':
+ '@unocss/[email protected]':
dependencies:
- '@unocss/core': 66.1.2
- '@unocss/preset-mini': 66.1.2
- '@unocss/rule-utils': 66.1.2
-
- '@unocss/[email protected]':
- dependencies:
- '@unocss/core': 66.1.2
- magic-string: 0.30.17
+ '@unocss/core': 66.6.8
+ magic-string: 0.30.21
'@vanilla-extract/[email protected]':
dependencies:
@@ -13582,7 +13571,7 @@ snapshots:
dependencies:
mdn-data: 2.0.30
- source-map-js: 1.2.0
+ source-map-js: 1.2.1
dependencies:
@@ -13808,7 +13797,7 @@ snapshots:
es-errors: 1.3.0
get-intrinsic: 1.3.0
has-tostringtag: 1.0.2
- hasown: 2.0.2
+ hasown: 2.0.3
optional: true
@@ -14218,7 +14207,7 @@ snapshots:
asynckit: 0.4.0
combined-stream: 1.0.8
es-set-tostringtag: 2.1.0
- hasown: 2.0.2
+ hasown: 2.0.3
mime-types: 2.1.35
optional: true
@@ -14294,7 +14283,7 @@ snapshots:
get-proto: 1.0.1
gopd: 1.2.0
has-symbols: 1.1.0
- hasown: 2.0.2
+ hasown: 2.0.3
math-intrinsics: 1.1.0
optional: true
@@ -14432,6 +14421,11 @@ snapshots:
dependencies:
function-bind: 1.1.2
+ dependencies:
+ function-bind: 1.1.2
+ optional: true
+
dependencies:
'@types/estree': 1.0.7
@@ -14882,6 +14876,10 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+
dependencies:
'@babel/parser': 7.27.0
@@ -16513,8 +16511,6 @@ snapshots:
-