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.

refactor: migrate properties data to hyphen case (#4970)

Bogdan Chadkin3c8ac56c39a8
diff --git a/apps/builder/app/builder/features/style-panel/property-label.tsx b/apps/builder/app/builder/features/style-panel/property-label.tsx
index 453a8dcaa1..647d951ce2 100644
--- a/apps/builder/app/builder/features/style-panel/property-label.tsx
+++ b/apps/builder/app/builder/features/style-panel/property-label.tsx
@@ -8,6 +8,7 @@ import {
type CssProperty,
type StyleProperty,
} from "@webstudio-is/css-engine";
+import { propertiesData } from "@webstudio-is/css-data";
import {
Button,
Flex,
@@ -36,7 +37,6 @@ import { useComputedStyles } from "./shared/model";
import { StyleSourceBadge } from "./style-source";
import { createBatchUpdate } from "./shared/use-style-data";
import { $virtualInstances } from "~/shared/awareness";
-import { styleConfigByName } from "./shared/configs";
const $isAltPressed = atom(false);
if (typeof window !== "undefined") {
@@ -251,7 +251,6 @@ export const PropertyLabel = ({
}
batch.publish();
};
- const styleConfig = styleConfigByName(properties[0]);
return (
<Flex align="center">
@@ -281,7 +280,7 @@ export const PropertyLabel = ({
resetProperty();
setIsOpen(false);
}}
- link={styleConfig?.mdnUrl}
+ link={propertiesData[hyphenateProperty(properties[0])]?.mdnUrl}
/>
}
>
@@ -314,7 +313,6 @@ export const PropertySectionLabel = ({
}
batch.publish();
};
- const styleConfig = styleConfigByName(properties[0]);
return (
<Flex align="center">
@@ -342,7 +340,7 @@ export const PropertySectionLabel = ({
resetProperty();
setIsOpen(false);
}}
- link={styleConfig?.mdnUrl}
+ link={propertiesData[hyphenateProperty(properties[0])]?.mdnUrl}
/>
}
>
@@ -444,7 +442,6 @@ export const PropertyValueTooltip = ({
}
batch.publish();
};
- const styleConfig = styleConfigByName(properties[0]);
return (
<Tooltip
@@ -480,7 +477,7 @@ export const PropertyValueTooltip = ({
resetProperty();
setIsOpen(false);
}}
- link={styleConfig?.mdnUrl}
+ link={propertiesData[hyphenateProperty(properties[0])]?.mdnUrl}
/>
}
>
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx
index ad3756a040..4e5e6eed06 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx
@@ -17,7 +17,7 @@ import {
Grid,
} from "@webstudio-is/design-system";
import { InfoCircleIcon } from "@webstudio-is/icons";
-import { properties, propertyDescriptions } from "@webstudio-is/css-data";
+import { propertiesData, propertyDescriptions } from "@webstudio-is/css-data";
import { type IntermediateStyleValue } from "../../shared/css-value-input";
import { CssValueInputContainer } from "../../shared/css-value-input";
import { parseCssFragment } from "../../shared/css-fragment";
@@ -128,7 +128,7 @@ export const TransitionContent = ({ index }: { index: number }) => {
properties={["transitionProperty"]}
/>
<TransitionProperty
- value={property ?? properties.transitionProperty.initial}
+ value={property ?? propertiesData["transition-property"].initial}
onChange={(value) => {
updateIntermediateValue({ property: value });
setRepeatedStyleItem(transitionProperty, index, value);
@@ -144,7 +144,7 @@ export const TransitionContent = ({ index }: { index: number }) => {
property="transitionDuration"
styleSource="local"
getOptions={() => $availableUnitVariables.get()}
- value={duration ?? properties.transitionDuration.initial}
+ value={duration ?? propertiesData["transition-duration"].initial}
deleteProperty={() => {}}
setValue={(value, options) => {
if (value === undefined) {
@@ -169,7 +169,7 @@ export const TransitionContent = ({ index }: { index: number }) => {
property="transitionDelay"
styleSource="local"
getOptions={() => $availableUnitVariables.get()}
- value={delay ?? properties.transitionDelay.initial}
+ value={delay ?? propertiesData["transition-delay"].initial}
deleteProperty={() => {}}
setValue={(value, options) => {
if (value === undefined) {
@@ -203,7 +203,10 @@ export const TransitionContent = ({ index }: { index: number }) => {
{ type: "keyword", value: "step-end" },
...$availableVariables.get(),
]}
- value={timingFunction ?? properties.transitionTimingFunction.initial}
+ value={
+ timingFunction ??
+ propertiesData["transition-timing-function"].initial
+ }
deleteProperty={() => {}}
setValue={(value, options) => {
if (value === undefined) {
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsx
index 45516aacf6..d09ce809e1 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsx
@@ -5,11 +5,12 @@ import {
SectionTitleButton,
Tooltip,
} from "@webstudio-is/design-system";
-import { properties } from "@webstudio-is/css-data";
+import { propertiesData } from "@webstudio-is/css-data";
import {
+ hyphenateProperty,
toValue,
+ type CssProperty,
type LayerValueItem,
- type StyleProperty,
} from "@webstudio-is/css-engine";
import {
CollapsibleSectionRoot,
@@ -30,12 +31,12 @@ import { TransitionContent } from "./transition-content";
import { parseCssFragment } from "../../shared/css-fragment";
const transitionLongHandProperties = [
- "transitionProperty",
- "transitionTimingFunction",
- "transitionDelay",
- "transitionDuration",
- "transitionBehavior",
-] as const satisfies StyleProperty[];
+ "transition-property",
+ "transition-timing-function",
+ "transition-delay",
+ "transition-duration",
+ "transition-behavior",
+] as const satisfies CssProperty[];
export { transitionLongHandProperties as properties };
@@ -47,7 +48,7 @@ const getTransitionLayers = (
) => {
const transitionPropertyValue = styles[0].cascadedValue;
const currentPropertyValue = styles.find(
- (styleDecl) => styleDecl.property === property
+ (styleDecl) => hyphenateProperty(styleDecl.property) === property
)?.cascadedValue;
const transitionPropertiesCount =
transitionPropertyValue.type === "layers"
@@ -56,7 +57,7 @@ const getTransitionLayers = (
const definedLayers: LayerValueItem[] =
currentPropertyValue?.type === "layers"
? currentPropertyValue.value
- : [properties[property].initial];
+ : [propertiesData[property].initial as LayerValueItem];
return repeatUntil(definedLayers, transitionPropertiesCount);
};
@@ -68,19 +69,19 @@ const getLayerLabel = ({
index: number;
}) => {
// show label without hidden replacement
- const propertyLayer = getTransitionLayers(styles, "transitionProperty")[
+ const propertyLayer = getTransitionLayers(styles, "transition-property")[
index
];
const property = humanizeString(toValue({ ...propertyLayer, hidden: false }));
const duration = toValue(
- getTransitionLayers(styles, "transitionDuration")[index]
+ getTransitionLayers(styles, "transition-duration")[index]
);
const timingFunctionLayer = getTransitionLayers(
styles,
- "transitionTimingFunction"
+ "transition-timing-function"
)[index];
const timingFunction = toValue({ ...timingFunctionLayer, hidden: false });
- const delay = toValue(getTransitionLayers(styles, "transitionDelay")[index]);
+ const delay = toValue(getTransitionLayers(styles, "transition-delay")[index]);
return `${property}: ${duration} ${timingFunction} ${delay}`;
};
diff --git a/apps/builder/app/builder/features/style-panel/shared/configs.ts b/apps/builder/app/builder/features/style-panel/shared/configs.ts
index 456efda312..ff0e08c0cc 100644
--- a/apps/builder/app/builder/features/style-panel/shared/configs.ts
+++ b/apps/builder/app/builder/features/style-panel/shared/configs.ts
@@ -1,16 +1,11 @@
import type { CssProperty, StyleProperty } from "@webstudio-is/css-engine";
-import {
- camelCaseProperty,
- keywordValues,
- properties,
-} from "@webstudio-is/css-data";
+import { camelCaseProperty, keywordValues } from "@webstudio-is/css-data";
import { humanizeString } from "~/shared/string-utils";
import type * as Controls from "../controls";
type BaseStyleConfig = {
label: string;
property: StyleProperty;
- mdnUrl?: string;
};
export type Control = keyof typeof Controls;
@@ -59,15 +54,12 @@ export const styleConfigByName = (
const keywords = keywordValues[property] || [];
const label = humanizeString(property);
- // property data does not exist for css custom properties
- const propertyData = properties[property] ?? {};
const result = {
label,
property,
control: getControl(property),
items: keywords.map((keyword) => ({ label: keyword, name: keyword })),
- ...("mdnUrl" in propertyData && { mdnUrl: propertyData.mdnUrl }),
};
styleConfigCache.set(property, result);
diff --git a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx
index 553f01d9de..a261d7acaf 100644
--- a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx
@@ -40,12 +40,12 @@ import {
} from "react";
import { useUnitSelect, type UnitOption } from "./unit-select";
import { parseIntermediateOrInvalidValue } from "./parse-intermediate-or-invalid-value";
-import { toValue } from "@webstudio-is/css-engine";
+import { hyphenateProperty, toValue } from "@webstudio-is/css-engine";
import {
camelCaseProperty,
declarationDescriptions,
isValidDeclaration,
- properties,
+ propertiesData,
} from "@webstudio-is/css-data";
import {
$selectedInstanceBrowserStyle,
@@ -66,7 +66,7 @@ import { useEffectEvent } from "~/shared/hook-utils/effect-event";
// We need to enable scrub on properties that can have numeric value.
const canBeNumber = (property: StyleProperty, value: CssValueInputValue) => {
const unitGroups =
- properties[property as keyof typeof properties]?.unitGroups ?? [];
+ propertiesData[hyphenateProperty(property)]?.unitGroups ?? [];
// allow scrubbing css variables with unit value
return unitGroups.length !== 0 || value.type === "unit";
};
@@ -610,7 +610,7 @@ export const CssValueInput = ({
const [isUnitsOpen, unitSelectElement] = useUnitSelect({
options: unitOptions,
- property,
+ property: hyphenateProperty(multiCaseProperty),
value,
onChange: (unitOrKeyword) => {
if (unitOrKeyword.type === "keyword") {
diff --git a/apps/builder/app/builder/features/style-panel/shared/css-value-input/parse-intermediate-or-invalid-value.ts b/apps/builder/app/builder/features/style-panel/shared/css-value-input/parse-intermediate-or-invalid-value.ts
index 0b64d4c05f..88e0239166 100644
--- a/apps/builder/app/builder/features/style-panel/shared/css-value-input/parse-intermediate-or-invalid-value.ts
+++ b/apps/builder/app/builder/features/style-panel/shared/css-value-input/parse-intermediate-or-invalid-value.ts
@@ -1,14 +1,15 @@
-import type {
- StyleProperty,
- StyleValue,
- InvalidValue,
- Unit,
+import {
+ type StyleProperty,
+ type StyleValue,
+ type InvalidValue,
+ type Unit,
+ hyphenateProperty,
} from "@webstudio-is/css-engine";
import {
units,
parseCssValue,
cssTryParseValue,
- properties,
+ propertiesData,
} from "@webstudio-is/css-data";
import type { IntermediateStyleValue } from "./css-value-input";
import { evaluateMath } from "./evaluate-math";
@@ -18,7 +19,7 @@ const unitsList = Object.values(units).flat();
const getDefaultUnit = (property: StyleProperty): Unit => {
const unitGroups =
- properties[property as keyof typeof properties]?.unitGroups ?? [];
+ propertiesData[hyphenateProperty(property)]?.unitGroups ?? [];
for (const unitGroup of unitGroups) {
if (unitGroup === "number") {
diff --git a/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select-options.ts b/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select-options.ts
index 5ea73d49bd..c1eef84ec1 100644
--- a/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select-options.ts
+++ b/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select-options.ts
@@ -1,6 +1,11 @@
import type { CssValueInputValue } from "./css-value-input";
-import { properties, units, isValidDeclaration } from "@webstudio-is/css-data";
+import {
+ propertiesData,
+ units,
+ isValidDeclaration,
+} from "@webstudio-is/css-data";
import type { UnitOption } from "./unit-select";
+import type { CssProperty } from "@webstudio-is/css-engine";
// To make sorting stable
const preferedSorting = [
@@ -37,7 +42,7 @@ const initialLengthUnits = [
] as const;
export const buildOptions = (
- property: string,
+ property: CssProperty,
value: CssValueInputValue,
nestedSelectButtonUnitless: string
) => {
@@ -50,8 +55,7 @@ export const buildOptions = (
// show at least current unit when no property meta is available
// for example in custom properties
- const unitGroups =
- properties[property as keyof typeof properties]?.unitGroups ?? [];
+ const unitGroups = propertiesData[property]?.unitGroups ?? [];
for (const unitGroup of unitGroups) {
if (unitGroup === "number") {
diff --git a/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select.tsx b/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select.tsx
index 2fd279b4c5..ee1ba89e40 100644
--- a/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/css-value-input/unit-select.tsx
@@ -1,6 +1,6 @@
import { useState, useMemo, type JSX } from "react";
import * as SelectPrimitive from "@radix-ui/react-select";
-import type { Unit } from "@webstudio-is/css-engine";
+import type { CssProperty, Unit } from "@webstudio-is/css-engine";
import {
SelectScrollUpButton,
SelectScrollDownButton,
@@ -23,7 +23,7 @@ export type UnitOption =
| { id: string; label: string; type: "keyword" };
type UseUnitSelectType = {
- property: string;
+ property: CssProperty;
value: CssValueInputValue;
onChange: (
value: { type: "unit"; value: Unit } | { type: "keyword"; value: string }
diff --git a/apps/builder/app/builder/features/style-panel/shared/model.tsx b/apps/builder/app/builder/features/style-panel/shared/model.tsx
index fb68f408bf..0e9d44ebae 100644
--- a/apps/builder/app/builder/features/style-panel/shared/model.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/model.tsx
@@ -2,9 +2,10 @@ import { useMemo, useRef } from "react";
import type { HtmlTags } from "html-tags";
import { computed, type ReadableAtom } from "nanostores";
import { useStore } from "@nanostores/react";
-import { camelCaseProperty, properties } from "@webstudio-is/css-data";
+import { camelCaseProperty, propertiesData } from "@webstudio-is/css-data";
import {
compareMedia,
+ hyphenateProperty,
toVarFallback,
type CssProperty,
type StyleProperty,
@@ -181,7 +182,7 @@ export const getDefinedStyles = ({
instanceStyles.add(styleDecl);
}
const inherited =
- properties[styleDecl.property as keyof typeof properties]?.inherited ??
+ propertiesData[hyphenateProperty(styleDecl.property)]?.inherited ??
// custom properties are always inherited
true;
if (
diff --git a/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx b/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx
index 9299868ceb..9ba80437e6 100644
--- a/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx
@@ -1,6 +1,7 @@
import { useMemo, type ComponentProps, type JSX } from "react";
import type { RgbaColor } from "colord";
import {
+ hyphenateProperty,
toValue,
type CssProperty,
type LayersValue,
@@ -8,6 +9,11 @@ import {
type TupleValue,
type UnparsedValue,
} from "@webstudio-is/css-engine";
+import {
+ camelCaseProperty,
+ parseCssValue,
+ propertiesData,
+} from "@webstudio-is/css-data";
import { EyeClosedIcon, EyeOpenIcon, MinusIcon } from "@webstudio-is/icons";
import {
CssValueListArrowFocus,
@@ -24,11 +30,6 @@ import { repeatUntil } from "~/shared/array-utils";
import type { ComputedStyleDecl } from "~/shared/style-object-model";
import { createBatchUpdate, type StyleUpdateOptions } from "./use-style-data";
import { ColorThumb } from "./color-thumb";
-import {
- camelCaseProperty,
- parseCssValue,
- properties,
-} from "@webstudio-is/css-data";
const isRepeatedValue = (
styleValue: StyleValue
@@ -105,8 +106,10 @@ const normalizeStyleValue = (
const items = value.type === itemType ? value.value : [];
// prefill initial value when no items to repeated
if (items.length === 0 && primaryItemsCount > 0) {
- const meta = properties[styleDecl.property as keyof typeof properties];
- items.push(meta.initial as unknown as UnparsedValue);
+ const meta = propertiesData[hyphenateProperty(styleDecl.property)];
+ if (meta) {
+ items.push(meta.initial as unknown as UnparsedValue);
+ }
}
return {
type: itemType,
@@ -155,8 +158,10 @@ export const addRepeatedStyleItem = (
} else if (styleDecl.cascadedValue.type === valueType) {
oldItems = repeatUntil(styleDecl.cascadedValue.value, primaryCount);
} else if (primaryCount > 0) {
- const meta = properties[property as keyof typeof properties];
- oldItems = repeatUntil([meta.initial], primaryCount);
+ const meta = propertiesData[hyphenatedProperty];
+ if (meta) {
+ oldItems = repeatUntil([meta.initial], primaryCount);
+ }
}
batch.setProperty(property)({
type: valueType,
diff --git a/apps/builder/app/builder/shared/css-editor/add-style-input.tsx b/apps/builder/app/builder/shared/css-editor/add-style-input.tsx
index 0a118a2809..ece493abc9 100644
--- a/apps/builder/app/builder/shared/css-editor/add-style-input.tsx
+++ b/apps/builder/app/builder/shared/css-editor/add-style-input.tsx
@@ -16,7 +16,7 @@ import {
useCombobox,
} from "@webstudio-is/design-system";
import {
- properties as propertiesData,
+ propertiesData,
shorthandProperties,
keywordValues,
propertyDescriptions,
diff --git a/apps/builder/app/builder/shared/css-editor/css-editor.tsx b/apps/builder/app/builder/shared/css-editor/css-editor.tsx
index ea74860877..ef36439c62 100644
--- a/apps/builder/app/builder/shared/css-editor/css-editor.tsx
+++ b/apps/builder/app/builder/shared/css-editor/css-editor.tsx
@@ -24,6 +24,7 @@ import {
} from "@webstudio-is/design-system";
import {
camelCaseProperty,
+ propertiesData,
propertyDescriptions,
} from "@webstudio-is/css-data";
import {
@@ -66,7 +67,6 @@ const AdvancedPropertyLabel = ({
const [isOpen, setIsOpen] = useState(false);
const description = propertyDescriptions[camelCaseProperty(property)];
- const styleConfig = styleConfigByName(property);
return (
<Tooltip
@@ -96,7 +96,7 @@ const AdvancedPropertyLabel = ({
onReset?.();
}}
resetType="delete"
- link={styleConfig?.mdnUrl}
+ link={propertiesData[property]?.mdnUrl}
/>
}
>
diff --git a/apps/builder/app/builder/shared/css-editor/parse-style-input.ts b/apps/builder/app/builder/shared/css-editor/parse-style-input.ts
index 196372beb3..4266fcc4fe 100644
--- a/apps/builder/app/builder/shared/css-editor/parse-style-input.ts
+++ b/apps/builder/app/builder/shared/css-editor/parse-style-input.ts
@@ -1,7 +1,6 @@
import {
- properties,
+ propertiesData,
parseCss,
- camelCaseProperty,
shorthandProperties,
} from "@webstudio-is/css-data";
import { type CssProperty, type CssStyleMap } from "@webstudio-is/css-engine";
@@ -16,7 +15,7 @@ const ensureValue = (css: string) => {
return `${css}:;`;
}
// Is it a known longhand property?
- if (camelCaseProperty(css as CssProperty) in properties) {
+ if (propertiesData[css as CssProperty]) {
return `${css}:;`;
}
// Is it a known shorthand property?
diff --git a/apps/builder/app/canvas/features/webstudio-component/get-browser-style.ts b/apps/builder/app/canvas/features/webstudio-component/get-browser-style.ts
index 7106e5f669..b61864f60b 100644
--- a/apps/builder/app/canvas/features/webstudio-component/get-browser-style.ts
+++ b/apps/builder/app/canvas/features/webstudio-component/get-browser-style.ts
@@ -1,15 +1,17 @@
-import type { Style, StyleValue, Unit } from "@webstudio-is/css-engine";
-import { keywordValues } from "@webstudio-is/css-data";
-import { properties, units } from "@webstudio-is/css-data";
+import type {
+ CssProperty,
+ Style,
+ StyleValue,
+ Unit,
+} from "@webstudio-is/css-engine";
+import { camelCaseProperty, keywordValues } from "@webstudio-is/css-data";
+import { propertiesData, units } from "@webstudio-is/css-data";
const unitsList = Object.values(units).flat();
const unitRegex = new RegExp(`${unitsList.join("|")}`);
// @todo use a parser
-const parseValue = (
- property: keyof typeof properties,
- value: string
-): StyleValue => {
+const parseValue = (property: CssProperty, value: string): StyleValue => {
const number = Number.parseFloat(value);
const parsedUnit = unitRegex.exec(value);
if (value === "rgba(0, 0, 0, 0)") {
@@ -17,7 +19,7 @@ const parseValue = (
}
if (Number.isNaN(number)) {
const values = keywordValues[
- property as keyof typeof keywordValues
+ camelCaseProperty(property) as keyof typeof keywordValues
] as ReadonlyArray<string>;
if (values?.includes(value)) {
@@ -33,8 +35,8 @@ const parseValue = (
};
}
- if (number === 0 && property in properties) {
- return properties[property].initial;
+ if (number === 0 && propertiesData[property]) {
+ return propertiesData[property].initial;
}
if (parsedUnit === null) {
@@ -57,15 +59,18 @@ export const getBrowserStyle = (element?: Element): Style => {
if (element === undefined) {
return browserStyle;
}
- let knownProperty: keyof typeof properties;
+ let knownProperty: CssProperty;
const computedStyle = getComputedStyle(element);
- for (knownProperty in properties) {
+ for (knownProperty in propertiesData) {
if (knownProperty in computedStyle === false) {
continue;
}
// Typescript doesn't know we can access CSSStyleDeclaration properties by keys
- const computedValue = computedStyle[knownProperty as unknown as number];
- browserStyle[knownProperty] = parseValue(knownProperty, computedValue);
+ const computedValue = computedStyle.getPropertyValue(knownProperty);
+ browserStyle[camelCaseProperty(knownProperty)] = parseValue(
+ knownProperty,
+ computedValue
+ );
}
return browserStyle;
};
diff --git a/apps/builder/app/shared/style-object-model.ts b/apps/builder/app/shared/style-object-model.ts
index 83e8f5e587..866d3b5bc1 100644
--- a/apps/builder/app/shared/style-object-model.ts
+++ b/apps/builder/app/shared/style-object-model.ts
@@ -1,5 +1,5 @@
import type { HtmlTags } from "html-tags";
-import { html, properties } from "@webstudio-is/css-data";
+import { html, propertiesData } from "@webstudio-is/css-data";
import {
type StyleValue,
type StyleProperty,
@@ -312,7 +312,7 @@ export const getComputedStyleDecl = ({
const isCustomProperty = property.startsWith("--");
const propertyData = isCustomProperty
? customPropertyData
- : (properties[property as keyof typeof properties] ?? invalidPropertyData);
+ : (propertiesData[hyphenateProperty(property)] ?? invalidPropertyData);
const inherited = propertyData.inherited;
const initialValue: StyleValue = propertyData.initial;
let computedValue: StyleValue = initialValue;
diff --git a/packages/css-data/bin/mdn-data.ts b/packages/css-data/bin/mdn-data.ts
index b28f2477e4..eefdeffdd2 100755
--- a/packages/css-data/bin/mdn-data.ts
+++ b/packages/css-data/bin/mdn-data.ts
@@ -449,7 +449,29 @@ const longhandPropertiesData = getPropertiesData(
const targetDir = join(process.cwd(), process.argv.slice(2).pop() as string);
mkdirSync(targetDir, { recursive: true });
writeToFile("units.ts", "units", units);
-writeToFile("properties.ts", "properties", longhandPropertiesData);
+
+const propertiesData = Object.fromEntries(
+ Object.entries(longhandPropertiesData).map(([property, data]) => [
+ hyphenateProperty(property),
+ data,
+ ])
+);
+const propertiesContent = `${autogeneratedHint}
+import type { __HyphenatedProperty, StyleValue } from "@webstudio-is/css-engine"
+type UnitGroup = ${Object.keys(units)
+ .map((item) => JSON.stringify(item))
+ .join(" | ")}
+type PropertyData = {
+ unitGroups: UnitGroup[],
+ inherited: boolean,
+ initial: StyleValue,
+ mdnUrl?: string
+}
+type Properties = Record<__HyphenatedProperty, PropertyData> & Record<\`--\${string}\`, undefined>
+export const properties: Properties = ${JSON.stringify(propertiesData, null, 2)}
+`;
+writeFileSync(join(targetDir, "properties.ts"), propertiesContent);
+
writeToFile(
"shorthand-properties.ts",
"shorthandProperties",
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index d495c8a6d5..a08f2cd5c1 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -20,7 +20,6 @@
"@webstudio-is/tsconfig": "workspace:*",
"html-tags": "^4.0.0",
"mdn-data": "2.8.0",
- "type-fest": "^4.32.0",
"vitest": "^3.0.4",
"zod": "^3.22.4"
},
diff --git a/packages/css-data/src/__generated__/properties.ts b/packages/css-data/src/__generated__/properties.ts
index 20c5ab46b0..a49048cbe7 100644
--- a/packages/css-data/src/__generated__/properties.ts
+++ b/packages/css-data/src/__generated__/properties.ts
@@ -1,6 +1,30 @@
// This file was generated by pnpm mdn-data
-export const properties = {
- WebkitFontSmoothing: {
+
+import type {
+ __HyphenatedProperty,
+ StyleValue,
+} from "@webstudio-is/css-engine";
+type UnitGroup =
+ | "number"
+ | "percentage"
+ | "angle"
+ | "decibel"
+ | "flex"
+ | "frequency"
+ | "length"
+ | "resolution"
+ | "semitones"
+ | "time";
+type PropertyData = {
+ unitGroups: UnitGroup[];
+ inherited: boolean;
+ initial: StyleValue;
+ mdnUrl?: string;
+};
+type Properties = Record<__HyphenatedProperty, PropertyData> &
+ Record<`--${string}`, undefined>;
+export const properties: Properties = {
+ "-webkit-font-smoothing": {
unitGroups: [],
inherited: true,
initial: {
@@ -9,7 +33,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",
},
- MozOsxFontSmoothing: {
+ "-moz-osx-font-smoothing": {
unitGroups: [],
inherited: true,
initial: {
@@ -27,7 +51,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/en-US/docs/Web/CSS/box-orient",
},
- viewTimelineName: {
+ "view-timeline-name": {
unitGroups: [],
inherited: false,
initial: {
@@ -37,7 +61,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/en-US/docs/Web/CSS/view-timeline-name",
},
- scrollTimelineName: {
+ "scroll-timeline-name": {
unitGroups: [],
inherited: false,
initial: {
@@ -47,7 +71,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-timeline-name",
},
- viewTimelineInset: {
+ "view-timeline-inset": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -86,7 +110,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color",
},
- accentColor: {
+ "accent-color": {
unitGroups: [],
inherited: true,
initial: {
@@ -95,7 +119,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/accent-color",
},
- alignContent: {
+ "align-content": {
unitGroups: [],
inherited: false,
initial: {
@@ -104,7 +128,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/align-content",
},
- alignItems: {
+ "align-items": {
unitGroups: [],
inherited: false,
initial: {
@@ -113,7 +137,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/align-items",
},
- alignSelf: {
+ "align-self": {
unitGroups: [],
inherited: false,
initial: {
@@ -122,7 +146,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/align-self",
},
- animationDelay: {
+ "animation-delay": {
unitGroups: ["time"],
inherited: false,
initial: {
@@ -132,7 +156,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/animation-delay",
},
- animationDirection: {
+ "animation-direction": {
unitGroups: [],
inherited: false,
initial: {
@@ -141,7 +165,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/animation-direction",
},
- animationDuration: {
+ "animation-duration": {
unitGroups: ["time"],
inherited: false,
initial: {
@@ -151,7 +175,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/animation-duration",
},
- animationFillMode: {
+ "animation-fill-mode": {
unitGroups: [],
inherited: false,
initial: {
@@ -160,7 +184,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode",
},
- animationIterationCount: {
+ "animation-iteration-count": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -171,7 +195,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count",
},
- animationName: {
+ "animation-name": {
unitGroups: [],
inherited: false,
initial: {
@@ -180,7 +204,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/animation-name",
},
- animationPlayState: {
+ "animation-play-state": {
unitGroups: [],
inherited: false,
initial: {
@@ -189,7 +213,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/animation-play-state",
},
- animationTimingFunction: {
+ "animation-timing-function": {
unitGroups: [],
inherited: false,
initial: {
@@ -208,7 +232,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/appearance",
},
- aspectRatio: {
+ "aspect-ratio": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -217,7 +241,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/aspect-ratio",
},
- backdropFilter: {
+ "backdrop-filter": {
unitGroups: [],
inherited: false,
initial: {
@@ -226,7 +250,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/backdrop-filter",
},
- backfaceVisibility: {
+ "backface-visibility": {
unitGroups: [],
inherited: false,
initial: {
@@ -235,7 +259,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/backface-visibility",
},
- backgroundAttachment: {
+ "background-attachment": {
unitGroups: [],
inherited: false,
initial: {
@@ -244,7 +268,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-attachment",
},
- backgroundBlendMode: {
+ "background-blend-mode": {
unitGroups: [],
inherited: false,
initial: {
@@ -253,7 +277,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-blend-mode",
},
- backgroundClip: {
+ "background-clip": {
unitGroups: [],
inherited: false,
initial: {
@@ -262,7 +286,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-clip",
},
- backgroundColor: {
+ "background-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -271,7 +295,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-color",
},
- backgroundImage: {
+ "background-image": {
unitGroups: [],
inherited: false,
initial: {
@@ -280,7 +304,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-image",
},
- backgroundOrigin: {
+ "background-origin": {
unitGroups: [],
inherited: false,
initial: {
@@ -289,7 +313,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-origin",
},
- backgroundPositionX: {
+ "background-position-x": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -299,7 +323,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-position-x",
},
- backgroundPositionY: {
+ "background-position-y": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -309,7 +333,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-position-y",
},
- backgroundRepeat: {
+ "background-repeat": {
unitGroups: [],
inherited: false,
initial: {
@@ -318,7 +342,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-repeat",
},
- backgroundSize: {
+ "background-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -327,7 +351,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/background-size",
},
- blockSize: {
+ "block-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -336,7 +360,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/block-size",
},
- borderBlockColor: {
+ "border-block-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -345,7 +369,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-block-color",
},
- borderBlockStyle: {
+ "border-block-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -354,7 +378,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-block-style",
},
- borderBlockWidth: {
+ "border-block-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -363,7 +387,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-block-width",
},
- borderBlockEndColor: {
+ "border-block-end-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -372,7 +396,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-color",
},
- borderBlockEndStyle: {
+ "border-block-end-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -381,7 +405,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-style",
},
- borderBlockEndWidth: {
+ "border-block-end-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -390,7 +414,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-block-end-width",
},
- borderBlockStartColor: {
+ "border-block-start-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -400,7 +424,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color",
},
- borderBlockStartStyle: {
+ "border-block-start-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -410,7 +434,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style",
},
- borderBlockStartWidth: {
+ "border-block-start-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -420,7 +444,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width",
},
- borderBottomColor: {
+ "border-bottom-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -429,7 +453,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-color",
},
- borderBottomLeftRadius: {
+ "border-bottom-left-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -440,7 +464,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius",
},
- borderBottomRightRadius: {
+ "border-bottom-right-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -451,7 +475,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius",
},
- borderBottomStyle: {
+ "border-bottom-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -460,7 +484,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-style",
},
- borderBottomWidth: {
+ "border-bottom-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -469,7 +493,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-bottom-width",
},
- borderCollapse: {
+ "border-collapse": {
unitGroups: [],
inherited: true,
initial: {
@@ -478,7 +502,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-collapse",
},
- borderEndEndRadius: {
+ "border-end-end-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -488,7 +512,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius",
},
- borderEndStartRadius: {
+ "border-end-start-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -499,7 +523,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius",
},
- borderImageOutset: {
+ "border-image-outset": {
unitGroups: ["length", "number"],
inherited: false,
initial: {
@@ -509,7 +533,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-image-outset",
},
- borderImageRepeat: {
+ "border-image-repeat": {
unitGroups: [],
inherited: false,
initial: {
@@ -518,7 +542,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-image-repeat",
},
- borderImageSlice: {
+ "border-image-slice": {
unitGroups: ["number", "percentage"],
inherited: false,
initial: {
@@ -528,7 +552,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-image-slice",
},
- borderImageSource: {
+ "border-image-source": {
unitGroups: [],
inherited: false,
initial: {
@@ -537,7 +561,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-image-source",
},
- borderImageWidth: {
+ "border-image-width": {
unitGroups: ["length", "percentage", "number"],
inherited: false,
initial: {
@@ -547,7 +571,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-image-width",
},
- borderInlineColor: {
+ "border-inline-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -556,7 +580,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-inline-color",
},
- borderInlineStyle: {
+ "border-inline-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -565,7 +589,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-inline-style",
},
- borderInlineWidth: {
+ "border-inline-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -574,7 +598,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-inline-width",
},
- borderInlineEndColor: {
+ "border-inline-end-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -584,7 +608,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color",
},
- borderInlineEndStyle: {
+ "border-inline-end-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -594,7 +618,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style",
},
- borderInlineEndWidth: {
+ "border-inline-end-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -604,7 +628,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width",
},
- borderInlineStartColor: {
+ "border-inline-start-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -614,7 +638,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color",
},
- borderInlineStartStyle: {
+ "border-inline-start-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -624,7 +648,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style",
},
- borderInlineStartWidth: {
+ "border-inline-start-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -634,7 +658,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width",
},
- borderLeftColor: {
+ "border-left-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -643,7 +667,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-left-color",
},
- borderLeftStyle: {
+ "border-left-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -652,7 +676,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-left-style",
},
- borderLeftWidth: {
+ "border-left-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -661,7 +685,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-left-width",
},
- borderRightColor: {
+ "border-right-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -670,7 +694,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-right-color",
},
- borderRightStyle: {
+ "border-right-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -679,7 +703,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-right-style",
},
- borderRightWidth: {
+ "border-right-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -688,7 +712,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-right-width",
},
- borderSpacing: {
+ "border-spacing": {
unitGroups: ["length"],
inherited: true,
initial: {
@@ -698,7 +722,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-spacing",
},
- borderStartEndRadius: {
+ "border-start-end-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -709,7 +733,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius",
},
- borderStartStartRadius: {
+ "border-start-start-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -720,7 +744,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius",
},
- borderTopColor: {
+ "border-top-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -729,7 +753,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-top-color",
},
- borderTopLeftRadius: {
+ "border-top-left-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -739,7 +763,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius",
},
- borderTopRightRadius: {
+ "border-top-right-radius": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -750,7 +774,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius",
},
- borderTopStyle: {
+ "border-top-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -759,7 +783,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/border-top-style",
},
- borderTopWidth: {
+ "border-top-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -777,7 +801,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/bottom",
},
- boxDecorationBreak: {
+ "box-decoration-break": {
unitGroups: [],
inherited: false,
initial: {
@@ -786,7 +810,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/box-decoration-break",
},
- boxShadow: {
+ "box-shadow": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -795,7 +819,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/box-shadow",
},
- boxSizing: {
+ "box-sizing": {
unitGroups: [],
inherited: false,
initial: {
@@ -804,7 +828,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/box-sizing",
},
- breakAfter: {
+ "break-after": {
unitGroups: [],
inherited: false,
initial: {
@@ -813,7 +837,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/break-after",
},
- breakBefore: {
+ "break-before": {
unitGroups: [],
inherited: false,
initial: {
@@ -822,7 +846,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/break-before",
},
- breakInside: {
+ "break-inside": {
unitGroups: [],
inherited: false,
initial: {
@@ -831,7 +855,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/break-inside",
},
- captionSide: {
+ "caption-side": {
unitGroups: [],
inherited: true,
initial: {
@@ -840,7 +864,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/caption-side",
},
- caretColor: {
+ "caret-color": {
unitGroups: [],
inherited: true,
initial: {
@@ -867,7 +891,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/clip",
},
- clipPath: {
+ "clip-path": {
unitGroups: [],
inherited: false,
initial: {
@@ -885,7 +909,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/color",
},
- colorScheme: {
+ "color-scheme": {
unitGroups: [],
inherited: true,
initial: {
@@ -894,7 +918,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/color-scheme",
},
- columnCount: {
+ "column-count": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -903,7 +927,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/column-count",
},
- columnFill: {
+ "column-fill": {
unitGroups: [],
inherited: false,
initial: {
@@ -912,7 +936,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/column-fill",
},
- columnGap: {
+ "column-gap": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -922,7 +946,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/column-gap",
},
- columnRuleColor: {
+ "column-rule-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -931,7 +955,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/column-rule-color",
},
- columnRuleStyle: {
+ "column-rule-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -940,7 +964,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/column-rule-style",
},
- columnRuleWidth: {
+ "column-rule-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -949,7 +973,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/column-rule-width",
},
- columnSpan: {
+ "column-span": {
unitGroups: [],
inherited: false,
initial: {
@@ -958,7 +982,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/column-span",
},
- columnWidth: {
+ "column-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -976,7 +1000,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/contain",
},
- containIntrinsicBlockSize: {
+ "contain-intrinsic-block-size": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -986,7 +1010,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size",
},
- containIntrinsicHeight: {
+ "contain-intrinsic-height": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -996,7 +1020,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height",
},
- containIntrinsicInlineSize: {
+ "contain-intrinsic-inline-size": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -1006,7 +1030,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size",
},
- containIntrinsicWidth: {
+ "contain-intrinsic-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -1016,7 +1040,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width",
},
- containerName: {
+ "container-name": {
unitGroups: [],
inherited: false,
initial: {
@@ -1025,7 +1049,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/container-name",
},
- containerType: {
+ "container-type": {
unitGroups: [],
inherited: false,
initial: {
@@ -1043,7 +1067,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/content",
},
- contentVisibility: {
+ "content-visibility": {
unitGroups: [],
inherited: false,
initial: {
@@ -1052,7 +1076,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/content-visibility",
},
- counterIncrement: {
+ "counter-increment": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1061,7 +1085,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/counter-increment",
},
- counterReset: {
+ "counter-reset": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1070,7 +1094,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/counter-reset",
},
- counterSet: {
+ "counter-set": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1106,7 +1130,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/display",
},
- emptyCells: {
+ "empty-cells": {
unitGroups: [],
inherited: true,
initial: {
@@ -1115,7 +1139,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/empty-cells",
},
- fieldSizing: {
+ "field-sizing": {
unitGroups: [],
inherited: false,
initial: {
@@ -1133,7 +1157,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/filter",
},
- flexBasis: {
+ "flex-basis": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1142,7 +1166,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/flex-basis",
},
- flexDirection: {
+ "flex-direction": {
unitGroups: [],
inherited: false,
initial: {
@@ -1151,7 +1175,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/flex-direction",
},
- flexGrow: {
+ "flex-grow": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1161,7 +1185,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/flex-grow",
},
- flexShrink: {
+ "flex-shrink": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1171,7 +1195,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/flex-shrink",
},
- flexWrap: {
+ "flex-wrap": {
unitGroups: [],
inherited: false,
initial: {
@@ -1189,7 +1213,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/float",
},
- fontFamily: {
+ "font-family": {
unitGroups: [],
inherited: true,
initial: {
@@ -1198,7 +1222,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-family",
},
- fontFeatureSettings: {
+ "font-feature-settings": {
unitGroups: ["number"],
inherited: true,
initial: {
@@ -1207,7 +1231,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-feature-settings",
},
- fontKerning: {
+ "font-kerning": {
unitGroups: [],
inherited: true,
initial: {
@@ -1216,7 +1240,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-kerning",
},
- fontLanguageOverride: {
+ "font-language-override": {
unitGroups: [],
inherited: true,
initial: {
@@ -1225,7 +1249,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-language-override",
},
- fontOpticalSizing: {
+ "font-optical-sizing": {
unitGroups: [],
inherited: true,
initial: {
@@ -1234,7 +1258,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing",
},
- fontVariationSettings: {
+ "font-variation-settings": {
unitGroups: ["number"],
inherited: true,
initial: {
@@ -1244,7 +1268,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings",
},
- fontSize: {
+ "font-size": {
unitGroups: ["length", "percentage"],
inherited: true,
initial: {
@@ -1253,7 +1277,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-size",
},
- fontSizeAdjust: {
+ "font-size-adjust": {
unitGroups: ["number"],
inherited: true,
initial: {
@@ -1262,7 +1286,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-size-adjust",
},
- fontStretch: {
+ "font-stretch": {
unitGroups: ["percentage"],
inherited: true,
initial: {
@@ -1271,7 +1295,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-stretch",
},
- fontStyle: {
+ "font-style": {
unitGroups: ["angle"],
inherited: true,
initial: {
@@ -1280,7 +1304,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-style",
},
- fontSynthesisSmallCaps: {
+ "font-synthesis-small-caps": {
unitGroups: [],
inherited: true,
initial: {
@@ -1290,7 +1314,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps",
},
- fontSynthesisStyle: {
+ "font-synthesis-style": {
unitGroups: [],
inherited: true,
initial: {
@@ -1299,7 +1323,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style",
},
- fontSynthesisWeight: {
+ "font-synthesis-weight": {
unitGroups: [],
inherited: true,
initial: {
@@ -1308,7 +1332,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight",
},
- fontVariantAlternates: {
+ "font-variant-alternates": {
unitGroups: [],
inherited: true,
initial: {
@@ -1318,7 +1342,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates",
},
- fontVariantCaps: {
+ "font-variant-caps": {
unitGroups: [],
inherited: true,
initial: {
@@ -1327,7 +1351,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-variant-caps",
},
- fontVariantEastAsian: {
+ "font-variant-east-asian": {
unitGroups: [],
inherited: true,
initial: {
@@ -1337,7 +1361,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian",
},
- fontVariantLigatures: {
+ "font-variant-ligatures": {
unitGroups: [],
inherited: true,
initial: {
@@ -1346,7 +1370,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures",
},
- fontVariantNumeric: {
+ "font-variant-numeric": {
unitGroups: [],
inherited: true,
initial: {
@@ -1355,7 +1379,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric",
},
- fontVariantPosition: {
+ "font-variant-position": {
unitGroups: [],
inherited: true,
initial: {
@@ -1364,7 +1388,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-variant-position",
},
- fontWeight: {
+ "font-weight": {
unitGroups: ["number"],
inherited: true,
initial: {
@@ -1373,7 +1397,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/font-weight",
},
- gridAutoColumns: {
+ "grid-auto-columns": {
unitGroups: ["length", "percentage", "flex"],
inherited: false,
initial: {
@@ -1382,7 +1406,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns",
},
- gridAutoFlow: {
+ "grid-auto-flow": {
unitGroups: [],
inherited: false,
initial: {
@@ -1391,7 +1415,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow",
},
- gridAutoRows: {
+ "grid-auto-rows": {
unitGroups: ["length", "percentage", "flex"],
inherited: false,
initial: {
@@ -1400,7 +1424,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows",
},
- gridColumnEnd: {
+ "grid-column-end": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1409,7 +1433,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-column-end",
},
- gridColumnStart: {
+ "grid-column-start": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1418,7 +1442,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-column-start",
},
- gridRowEnd: {
+ "grid-row-end": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1427,7 +1451,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-row-end",
},
- gridRowStart: {
+ "grid-row-start": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -1436,7 +1460,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-row-start",
},
- gridTemplateAreas: {
+ "grid-template-areas": {
unitGroups: [],
inherited: false,
initial: {
@@ -1445,7 +1469,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-template-areas",
},
- gridTemplateColumns: {
+ "grid-template-columns": {
unitGroups: ["length", "percentage", "flex"],
inherited: false,
initial: {
@@ -1454,7 +1478,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-template-columns",
},
- gridTemplateRows: {
+ "grid-template-rows": {
unitGroups: ["length", "percentage", "flex"],
inherited: false,
initial: {
@@ -1463,7 +1487,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/grid-template-rows",
},
- hangingPunctuation: {
+ "hanging-punctuation": {
unitGroups: [],
inherited: true,
initial: {
@@ -1481,7 +1505,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/height",
},
- hyphenateCharacter: {
+ "hyphenate-character": {
unitGroups: [],
inherited: true,
initial: {
@@ -1490,7 +1514,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/hyphenate-character",
},
- hyphenateLimitChars: {
+ "hyphenate-limit-chars": {
unitGroups: ["number"],
inherited: true,
initial: {
@@ -1508,7 +1532,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/hyphens",
},
- imageOrientation: {
+ "image-orientation": {
unitGroups: ["angle"],
inherited: true,
initial: {
@@ -1517,7 +1541,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/image-orientation",
},
- imageRendering: {
+ "image-rendering": {
unitGroups: [],
inherited: true,
initial: {
@@ -1526,7 +1550,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/image-rendering",
},
- inlineSize: {
+ "inline-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1535,7 +1559,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/inline-size",
},
- insetBlockEnd: {
+ "inset-block-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1544,7 +1568,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/inset-block-end",
},
- insetBlockStart: {
+ "inset-block-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1553,7 +1577,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/inset-block-start",
},
- insetInlineEnd: {
+ "inset-inline-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1562,7 +1586,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/inset-inline-end",
},
- insetInlineStart: {
+ "inset-inline-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1580,7 +1604,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/isolation",
},
- justifyContent: {
+ "justify-content": {
unitGroups: [],
inherited: false,
initial: {
@@ -1589,7 +1613,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/justify-content",
},
- justifyItems: {
+ "justify-items": {
unitGroups: [],
inherited: false,
initial: {
@@ -1598,7 +1622,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/justify-items",
},
- justifySelf: {
+ "justify-self": {
unitGroups: [],
inherited: false,
initial: {
@@ -1616,7 +1640,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/left",
},
- letterSpacing: {
+ "letter-spacing": {
unitGroups: ["length"],
inherited: true,
initial: {
@@ -1625,7 +1649,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/letter-spacing",
},
- lineBreak: {
+ "line-break": {
unitGroups: [],
inherited: true,
initial: {
@@ -1634,7 +1658,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/line-break",
},
- lineHeight: {
+ "line-height": {
unitGroups: ["number", "length", "percentage"],
inherited: true,
initial: {
@@ -1643,7 +1667,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/line-height",
},
- listStyleImage: {
+ "list-style-image": {
unitGroups: [],
inherited: true,
initial: {
@@ -1652,7 +1676,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/list-style-image",
},
- listStylePosition: {
+ "list-style-position": {
unitGroups: [],
inherited: true,
initial: {
@@ -1661,7 +1685,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/list-style-position",
},
- listStyleType: {
+ "list-style-type": {
unitGroups: [],
inherited: true,
initial: {
@@ -1670,7 +1694,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/list-style-type",
},
- marginBlockEnd: {
+ "margin-block-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1680,7 +1704,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-block-end",
},
- marginBlockStart: {
+ "margin-block-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1690,7 +1714,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-block-start",
},
- marginBottom: {
+ "margin-bottom": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1700,7 +1724,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-bottom",
},
- marginInlineEnd: {
+ "margin-inline-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1710,7 +1734,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-inline-end",
},
- marginInlineStart: {
+ "margin-inline-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1720,7 +1744,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-inline-start",
},
- marginLeft: {
+ "margin-left": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1730,7 +1754,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-left",
},
- marginRight: {
+ "margin-right": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1740,7 +1764,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-right",
},
- marginTop: {
+ "margin-top": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1750,7 +1774,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/margin-top",
},
- maskBorderMode: {
+ "mask-border-mode": {
unitGroups: [],
inherited: false,
initial: {
@@ -1759,7 +1783,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-border-mode",
},
- maskBorderOutset: {
+ "mask-border-outset": {
unitGroups: ["length", "number"],
inherited: false,
initial: {
@@ -1769,7 +1793,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-border-outset",
},
- maskBorderRepeat: {
+ "mask-border-repeat": {
unitGroups: [],
inherited: false,
initial: {
@@ -1778,7 +1802,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat",
},
- maskBorderSlice: {
+ "mask-border-slice": {
unitGroups: ["number", "percentage"],
inherited: false,
initial: {
@@ -1788,7 +1812,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-border-slice",
},
- maskBorderSource: {
+ "mask-border-source": {
unitGroups: [],
inherited: false,
initial: {
@@ -1797,7 +1821,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-border-source",
},
- maskBorderWidth: {
+ "mask-border-width": {
unitGroups: ["length", "percentage", "number"],
inherited: false,
initial: {
@@ -1806,7 +1830,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-border-width",
},
- maskClip: {
+ "mask-clip": {
unitGroups: [],
inherited: false,
initial: {
@@ -1815,7 +1839,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-clip",
},
- maskComposite: {
+ "mask-composite": {
unitGroups: [],
inherited: false,
initial: {
@@ -1824,7 +1848,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-composite",
},
- maskImage: {
+ "mask-image": {
unitGroups: [],
inherited: false,
initial: {
@@ -1833,7 +1857,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-image",
},
- maskMode: {
+ "mask-mode": {
unitGroups: [],
inherited: false,
initial: {
@@ -1842,7 +1866,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-mode",
},
- maskOrigin: {
+ "mask-origin": {
unitGroups: [],
inherited: false,
initial: {
@@ -1851,7 +1875,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-origin",
},
- maskPosition: {
+ "mask-position": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1871,7 +1895,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-position",
},
- maskRepeat: {
+ "mask-repeat": {
unitGroups: [],
inherited: false,
initial: {
@@ -1880,7 +1904,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-repeat",
},
- maskSize: {
+ "mask-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1889,7 +1913,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-size",
},
- maskType: {
+ "mask-type": {
unitGroups: [],
inherited: false,
initial: {
@@ -1898,7 +1922,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mask-type",
},
- mathDepth: {
+ "math-depth": {
unitGroups: ["number"],
inherited: true,
initial: {
@@ -1908,7 +1932,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/math-depth",
},
- mathShift: {
+ "math-shift": {
unitGroups: [],
inherited: true,
initial: {
@@ -1917,7 +1941,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/math-shift",
},
- mathStyle: {
+ "math-style": {
unitGroups: [],
inherited: true,
initial: {
@@ -1926,7 +1950,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/math-style",
},
- maxBlockSize: {
+ "max-block-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1935,7 +1959,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/max-block-size",
},
- maxHeight: {
+ "max-height": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1944,7 +1968,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/max-height",
},
- maxInlineSize: {
+ "max-inline-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1953,7 +1977,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/max-inline-size",
},
- maxWidth: {
+ "max-width": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1962,7 +1986,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/max-width",
},
- minBlockSize: {
+ "min-block-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1972,7 +1996,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/min-block-size",
},
- minHeight: {
+ "min-height": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1981,7 +2005,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/min-height",
},
- minInlineSize: {
+ "min-inline-size": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -1991,7 +2015,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/min-inline-size",
},
- minWidth: {
+ "min-width": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2000,7 +2024,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/min-width",
},
- mixBlendMode: {
+ "mix-blend-mode": {
unitGroups: [],
inherited: false,
initial: {
@@ -2009,7 +2033,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode",
},
- objectFit: {
+ "object-fit": {
unitGroups: [],
inherited: false,
initial: {
@@ -2018,7 +2042,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/object-fit",
},
- objectPosition: {
+ "object-position": {
unitGroups: ["length", "percentage"],
inherited: true,
initial: {
@@ -2038,7 +2062,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/object-position",
},
- offsetAnchor: {
+ "offset-anchor": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2046,7 +2070,7 @@ export const properties = {
value: "auto",
},
},
- offsetDistance: {
+ "offset-distance": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2056,7 +2080,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/offset-distance",
},
- offsetPath: {
+ "offset-path": {
unitGroups: [],
inherited: false,
initial: {
@@ -2065,7 +2089,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/offset-path",
},
- offsetPosition: {
+ "offset-position": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2073,7 +2097,7 @@ export const properties = {
value: "normal",
},
},
- offsetRotate: {
+ "offset-rotate": {
unitGroups: ["angle"],
inherited: false,
initial: {
@@ -2112,7 +2136,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/orphans",
},
- outlineColor: {
+ "outline-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -2121,7 +2145,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/outline-color",
},
- outlineOffset: {
+ "outline-offset": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2131,7 +2155,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/outline-offset",
},
- outlineStyle: {
+ "outline-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -2140,7 +2164,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/outline-style",
},
- outlineWidth: {
+ "outline-width": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2149,7 +2173,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/outline-width",
},
- overflowWrap: {
+ "overflow-wrap": {
unitGroups: [],
inherited: true,
initial: {
@@ -2158,7 +2182,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap",
},
- overflowX: {
+ "overflow-x": {
unitGroups: [],
inherited: false,
initial: {
@@ -2167,7 +2191,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/overflow-x",
},
- overflowY: {
+ "overflow-y": {
unitGroups: [],
inherited: false,
initial: {
@@ -2176,7 +2200,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/overflow-y",
},
- overscrollBehavior: {
+ "overscroll-behavior": {
unitGroups: [],
inherited: false,
initial: {
@@ -2185,7 +2209,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior",
},
- overscrollBehaviorBlock: {
+ "overscroll-behavior-block": {
unitGroups: [],
inherited: false,
initial: {
@@ -2195,7 +2219,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block",
},
- overscrollBehaviorInline: {
+ "overscroll-behavior-inline": {
unitGroups: [],
inherited: false,
initial: {
@@ -2205,7 +2229,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline",
},
- overscrollBehaviorX: {
+ "overscroll-behavior-x": {
unitGroups: [],
inherited: false,
initial: {
@@ -2214,7 +2238,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x",
},
- overscrollBehaviorY: {
+ "overscroll-behavior-y": {
unitGroups: [],
inherited: false,
initial: {
@@ -2223,7 +2247,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y",
},
- paddingBlockEnd: {
+ "padding-block-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2233,7 +2257,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/padding-block-end",
},
- paddingBlockStart: {
+ "padding-block-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2243,7 +2267,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/padding-block-start",
},
- paddingBottom: {
+ "padding-bottom": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2253,7 +2277,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/padding-bottom",
},
- paddingInlineEnd: {
+ "padding-inline-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2263,7 +2287,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/padding-inline-end",
},
- paddingInlineStart: {
+ "padding-inline-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2273,7 +2297,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/padding-inline-start",
},
- paddingLeft: {
+ "padding-left": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2283,7 +2307,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/padding-left",
},
- paddingRight: {
+ "padding-right": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2293,7 +2317,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/padding-right",
},
- paddingTop: {
+ "padding-top": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2312,7 +2336,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/page",
},
- pageBreakAfter: {
+ "page-break-after": {
unitGroups: [],
inherited: false,
initial: {
@@ -2321,7 +2345,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/page-break-after",
},
- pageBreakBefore: {
+ "page-break-before": {
unitGroups: [],
inherited: false,
initial: {
@@ -2330,7 +2354,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/page-break-before",
},
- pageBreakInside: {
+ "page-break-inside": {
unitGroups: [],
inherited: false,
initial: {
@@ -2339,7 +2363,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/page-break-inside",
},
- paintOrder: {
+ "paint-order": {
unitGroups: [],
inherited: true,
initial: {
@@ -2357,7 +2381,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/perspective",
},
- perspectiveOrigin: {
+ "perspective-origin": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2377,7 +2401,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/perspective-origin",
},
- pointerEvents: {
+ "pointer-events": {
unitGroups: [],
inherited: true,
initial: {
@@ -2395,7 +2419,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/position",
},
- printColorAdjust: {
+ "print-color-adjust": {
unitGroups: [],
inherited: true,
initial: {
@@ -2440,7 +2464,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/rotate",
},
- rowGap: {
+ "row-gap": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2459,7 +2483,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scale",
},
- scrollbarColor: {
+ "scrollbar-color": {
unitGroups: [],
inherited: true,
initial: {
@@ -2468,7 +2492,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-color",
},
- scrollbarGutter: {
+ "scrollbar-gutter": {
unitGroups: [],
inherited: false,
initial: {
@@ -2477,7 +2501,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter",
},
- scrollbarWidth: {
+ "scrollbar-width": {
unitGroups: [],
inherited: false,
initial: {
@@ -2486,7 +2510,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-width",
},
- scrollBehavior: {
+ "scroll-behavior": {
unitGroups: [],
inherited: false,
initial: {
@@ -2495,7 +2519,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-behavior",
},
- scrollMarginBlockStart: {
+ "scroll-margin-block-start": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2506,7 +2530,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start",
},
- scrollMarginBlockEnd: {
+ "scroll-margin-block-end": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2517,7 +2541,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end",
},
- scrollMarginBottom: {
+ "scroll-margin-bottom": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2527,7 +2551,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom",
},
- scrollMarginInlineStart: {
+ "scroll-margin-inline-start": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2538,7 +2562,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start",
},
- scrollMarginInlineEnd: {
+ "scroll-margin-inline-end": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2549,7 +2573,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end",
},
- scrollMarginLeft: {
+ "scroll-margin-left": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2559,7 +2583,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left",
},
- scrollMarginRight: {
+ "scroll-margin-right": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2569,7 +2593,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right",
},
- scrollMarginTop: {
+ "scroll-margin-top": {
unitGroups: ["length"],
inherited: false,
initial: {
@@ -2579,7 +2603,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top",
},
- scrollPaddingBlockStart: {
+ "scroll-padding-block-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2589,7 +2613,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start",
},
- scrollPaddingBlockEnd: {
+ "scroll-padding-block-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2599,7 +2623,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end",
},
- scrollPaddingBottom: {
+ "scroll-padding-bottom": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2608,7 +2632,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom",
},
- scrollPaddingInlineStart: {
+ "scroll-padding-inline-start": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2618,7 +2642,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start",
},
- scrollPaddingInlineEnd: {
+ "scroll-padding-inline-end": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2628,7 +2652,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end",
},
- scrollPaddingLeft: {
+ "scroll-padding-left": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2637,7 +2661,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left",
},
- scrollPaddingRight: {
+ "scroll-padding-right": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2646,7 +2670,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right",
},
- scrollPaddingTop: {
+ "scroll-padding-top": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2655,7 +2679,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top",
},
- scrollSnapAlign: {
+ "scroll-snap-align": {
unitGroups: [],
inherited: false,
initial: {
@@ -2664,7 +2688,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align",
},
- scrollSnapStop: {
+ "scroll-snap-stop": {
unitGroups: [],
inherited: false,
initial: {
@@ -2673,7 +2697,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop",
},
- scrollSnapType: {
+ "scroll-snap-type": {
unitGroups: [],
inherited: false,
initial: {
@@ -2682,7 +2706,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type",
},
- shapeImageThreshold: {
+ "shape-image-threshold": {
unitGroups: ["number", "percentage"],
inherited: false,
initial: {
@@ -2692,7 +2716,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold",
},
- shapeMargin: {
+ "shape-margin": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2702,7 +2726,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/shape-margin",
},
- shapeOutside: {
+ "shape-outside": {
unitGroups: [],
inherited: false,
initial: {
@@ -2711,7 +2735,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/shape-outside",
},
- tabSize: {
+ "tab-size": {
unitGroups: ["number", "length"],
inherited: true,
initial: {
@@ -2721,7 +2745,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/tab-size",
},
- tableLayout: {
+ "table-layout": {
unitGroups: [],
inherited: false,
initial: {
@@ -2730,7 +2754,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/table-layout",
},
- textAlign: {
+ "text-align": {
unitGroups: [],
inherited: true,
initial: {
@@ -2739,7 +2763,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-align",
},
- textAlignLast: {
+ "text-align-last": {
unitGroups: [],
inherited: true,
initial: {
@@ -2748,7 +2772,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-align-last",
},
- textCombineUpright: {
+ "text-combine-upright": {
unitGroups: ["number"],
inherited: true,
initial: {
@@ -2757,7 +2781,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-combine-upright",
},
- textDecorationColor: {
+ "text-decoration-color": {
unitGroups: [],
inherited: false,
initial: {
@@ -2766,7 +2790,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-color",
},
- textDecorationLine: {
+ "text-decoration-line": {
unitGroups: [],
inherited: false,
initial: {
@@ -2775,7 +2799,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-line",
},
- textDecorationSkipInk: {
+ "text-decoration-skip-ink": {
unitGroups: [],
inherited: true,
initial: {
@@ -2785,7 +2809,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink",
},
- textDecorationStyle: {
+ "text-decoration-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -2794,7 +2818,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-decoration-style",
},
- textDecorationThickness: {
+ "text-decoration-thickness": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -2804,7 +2828,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness",
},
- textEmphasisColor: {
+ "text-emphasis-color": {
unitGroups: [],
inherited: true,
initial: {
@@ -2813,7 +2837,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color",
},
- textEmphasisPosition: {
+ "text-emphasis-position": {
unitGroups: [],
inherited: true,
initial: {
@@ -2831,7 +2855,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position",
},
- textEmphasisStyle: {
+ "text-emphasis-style": {
unitGroups: [],
inherited: true,
initial: {
@@ -2840,7 +2864,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style",
},
- textIndent: {
+ "text-indent": {
unitGroups: ["length", "percentage"],
inherited: true,
initial: {
@@ -2850,7 +2874,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-indent",
},
- textJustify: {
+ "text-justify": {
unitGroups: [],
inherited: true,
initial: {
@@ -2859,7 +2883,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-justify",
},
- textOrientation: {
+ "text-orientation": {
unitGroups: [],
inherited: true,
initial: {
@@ -2868,7 +2892,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-orientation",
},
- textOverflow: {
+ "text-overflow": {
unitGroups: [],
inherited: false,
initial: {
@@ -2877,7 +2901,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-overflow",
},
- textRendering: {
+ "text-rendering": {
unitGroups: [],
inherited: true,
initial: {
@@ -2886,7 +2910,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-rendering",
},
- textShadow: {
+ "text-shadow": {
unitGroups: ["length"],
inherited: true,
initial: {
@@ -2895,7 +2919,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-shadow",
},
- textSizeAdjust: {
+ "text-size-adjust": {
unitGroups: ["percentage"],
inherited: true,
initial: {
@@ -2904,7 +2928,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-size-adjust",
},
- textTransform: {
+ "text-transform": {
unitGroups: [],
inherited: true,
initial: {
@@ -2913,7 +2937,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-transform",
},
- textUnderlineOffset: {
+ "text-underline-offset": {
unitGroups: ["length", "percentage"],
inherited: true,
initial: {
@@ -2922,7 +2946,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-underline-offset",
},
- textUnderlinePosition: {
+ "text-underline-position": {
unitGroups: [],
inherited: true,
initial: {
@@ -2932,7 +2956,7 @@ export const properties = {
mdnUrl:
"https://developer.mozilla.org/docs/Web/CSS/text-underline-position",
},
- textWrapMode: {
+ "text-wrap-mode": {
unitGroups: [],
inherited: true,
initial: {
@@ -2941,7 +2965,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode",
},
- textWrapStyle: {
+ "text-wrap-style": {
unitGroups: [],
inherited: true,
initial: {
@@ -2959,7 +2983,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/top",
},
- touchAction: {
+ "touch-action": {
unitGroups: [],
inherited: false,
initial: {
@@ -2977,7 +3001,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transform",
},
- transformBox: {
+ "transform-box": {
unitGroups: [],
inherited: false,
initial: {
@@ -2986,7 +3010,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transform-box",
},
- transformOrigin: {
+ "transform-origin": {
unitGroups: ["length", "percentage"],
inherited: false,
initial: {
@@ -3011,7 +3035,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transform-origin",
},
- transformStyle: {
+ "transform-style": {
unitGroups: [],
inherited: false,
initial: {
@@ -3020,7 +3044,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transform-style",
},
- transitionBehavior: {
+ "transition-behavior": {
unitGroups: [],
inherited: false,
initial: {
@@ -3029,7 +3053,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transition-behavior",
},
- transitionDelay: {
+ "transition-delay": {
unitGroups: ["time"],
inherited: false,
initial: {
@@ -3039,7 +3063,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transition-delay",
},
- transitionDuration: {
+ "transition-duration": {
unitGroups: ["time"],
inherited: false,
initial: {
@@ -3049,7 +3073,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transition-duration",
},
- transitionProperty: {
+ "transition-property": {
unitGroups: [],
inherited: false,
initial: {
@@ -3058,7 +3082,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/transition-property",
},
- transitionTimingFunction: {
+ "transition-timing-function": {
unitGroups: [],
inherited: false,
initial: {
@@ -3077,7 +3101,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/translate",
},
- unicodeBidi: {
+ "unicode-bidi": {
unitGroups: [],
inherited: false,
initial: {
@@ -3086,7 +3110,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/unicode-bidi",
},
- userSelect: {
+ "user-select": {
unitGroups: [],
inherited: false,
initial: {
@@ -3095,7 +3119,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/user-select",
},
- verticalAlign: {
+ "vertical-align": {
unitGroups: ["percentage", "length"],
inherited: false,
initial: {
@@ -3113,7 +3137,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/visibility",
},
- whiteSpaceCollapse: {
+ "white-space-collapse": {
unitGroups: [],
inherited: true,
initial: {
@@ -3141,7 +3165,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/width",
},
- willChange: {
+ "will-change": {
unitGroups: [],
inherited: false,
initial: {
@@ -3150,7 +3174,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/will-change",
},
- wordBreak: {
+ "word-break": {
unitGroups: [],
inherited: true,
initial: {
@@ -3159,7 +3183,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/word-break",
},
- wordSpacing: {
+ "word-spacing": {
unitGroups: ["length"],
inherited: true,
initial: {
@@ -3168,7 +3192,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/word-spacing",
},
- wordWrap: {
+ "word-wrap": {
unitGroups: [],
inherited: true,
initial: {
@@ -3177,7 +3201,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/overflow-wrap",
},
- writingMode: {
+ "writing-mode": {
unitGroups: [],
inherited: true,
initial: {
@@ -3186,7 +3210,7 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/writing-mode",
},
- zIndex: {
+ "z-index": {
unitGroups: ["number"],
inherited: false,
initial: {
@@ -3204,4 +3228,4 @@ export const properties = {
},
mdnUrl: "https://developer.mozilla.org/docs/Web/CSS/zoom",
},
-} as const;
+};
diff --git a/packages/css-data/src/index.ts b/packages/css-data/src/index.ts
index e10c76fe2b..5cb4613926 100644
--- a/packages/css-data/src/index.ts
+++ b/packages/css-data/src/index.ts
@@ -1,5 +1,3 @@
-import type { WritableDeep } from "type-fest";
-
export { html } from "./__generated__/html";
export * from "./__generated__/keyword-values";
export * from "./__generated__/units";
@@ -21,9 +19,4 @@ export { shorthandProperties } from "./__generated__/shorthand-properties";
export { parseTailwindToWebstudio } from "./tailwind-parser/parse";
-import { properties as generatedProperties } from "./__generated__/properties";
-
-// convert to writable to avoid conflicts with schema type
-export const properties = generatedProperties as WritableDeep<
- typeof generatedProperties
->;
+export { properties as propertiesData } from "./__generated__/properties";
diff --git a/packages/css-engine/src/index.ts b/packages/css-engine/src/index.ts
index 9f32073281..6f0def93eb 100644
--- a/packages/css-engine/src/index.ts
+++ b/packages/css-engine/src/index.ts
@@ -4,3 +4,4 @@ export * from "./css";
// necessary for sdk dts generation
export type { Unit as __Unit } from "./__generated__/types";
+export type { HyphenatedProperty as __HyphenatedProperty } from "./__generated__/types";
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 237796f5a0..293a3b1e73 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1238,9 +1238,6 @@ importers:
mdn-data:
specifier: 2.8.0
version: 2.8.0
- type-fest:
- specifier: ^4.32.0
- version: 4.32.0
vitest:
specifier: ^3.0.4