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.

Add common keywords (#1385)

Ivan Starkov8bf079d82181
diff --git a/packages/css-data/bin/css-tree-dist-data.d.ts b/packages/css-data/bin/css-tree-dist-data.d.ts
new file mode 100644
index 0000000000..9d57780ca0
--- /dev/null
+++ b/packages/css-data/bin/css-tree-dist-data.d.ts
@@ -0,0 +1,5 @@
+declare module "css-tree/dist/data" {
+ export default {
+ units: Record<string, string[]>,
+ };
+}
diff --git a/packages/css-data/bin/mdn-data.ts b/packages/css-data/bin/mdn-data.ts
index d1848620f2..093fabe78d 100755
--- a/packages/css-data/bin/mdn-data.ts
+++ b/packages/css-data/bin/mdn-data.ts
@@ -1,3 +1,4 @@
+/* eslint-disable import/no-internal-modules */
import { parse, definitionSyntax, type DSNode } from "css-tree";
import properties from "mdn-data/css/properties.json";
import syntaxes from "mdn-data/css/syntaxes.json";
@@ -141,7 +142,7 @@ const walkSyntax = (
return;
}
if (node.type === "Type") {
- const nestedSyntax = syntaxes[node.name]?.syntax;
+ const nestedSyntax = syntaxes[node.name as keyof typeof syntaxes]?.syntax;
if (nestedSyntax === undefined) {
enter(node);
} else {
@@ -152,7 +153,11 @@ const walkSyntax = (
}
if (node.type === "Property") {
// resolve other properties references
- walkSyntax(properties[node.name].syntax, enter, parsedSyntaxes);
+ walkSyntax(
+ properties[node.name as keyof typeof properties].syntax,
+ enter,
+ parsedSyntaxes
+ );
return;
}
enter(node);
@@ -235,6 +240,14 @@ for (property in filteredProperties) {
}
});
+ if (Array.isArray(config.initial)) {
+ throw new Error(
+ `Property ${property} contains non string initial value ${config.initial.join(
+ ", "
+ )}`
+ );
+ }
+
propertiesData[camelCase(property)] = {
unitGroups: Array.from(unitGroups),
inherited: config.inherited,
@@ -269,19 +282,43 @@ const nonStandardValues = {
"background-clip": ["text"],
};
+const beautifyKeyword = (keyword: string) => {
+ if (keyword === "currentcolor") {
+ return "currentColor";
+ }
+ return keyword;
+};
+
+// https://www.w3.org/TR/css-values/#common-keywords
+const commonKeywords = ["initial", "inherit", "unset"];
+
const keywordValues = (() => {
- const result = {};
+ const result: Record<string, string[]> = {};
- for (let property in filteredProperties) {
+ for (const property in filteredProperties) {
const keywords = new Set<string>();
- walkSyntax(filteredProperties[property].syntax, (node) => {
- if (node.type === "Keyword") {
- keywords.add(node.name);
+ walkSyntax(
+ filteredProperties[property as keyof typeof filteredProperties].syntax,
+ (node) => {
+ if (node.type === "Keyword") {
+ keywords.add(beautifyKeyword(node.name));
+ }
}
- });
+ );
+
if (property in nonStandardValues) {
- keywords.add.apply(keywords, nonStandardValues[property]);
+ for (const nonStandartKeyword of nonStandardValues[
+ property as keyof typeof nonStandardValues
+ ]) {
+ keywords.add(nonStandartKeyword);
+ }
+ }
+ for (const commonKeyword of commonKeywords) {
+ // Delete to add commonKeyword at the end of the set
+ keywords.delete(commonKeyword);
+ keywords.add(commonKeyword);
}
+
if (keywords.size !== 0) {
result[camelCase(property)] = Array.from(keywords);
}
diff --git a/packages/css-data/src/__generated__/keyword-values.ts b/packages/css-data/src/__generated__/keyword-values.ts
index 5c82ed59e8..fcc23e6725 100644
--- a/packages/css-data/src/__generated__/keyword-values.ts
+++ b/packages/css-data/src/__generated__/keyword-values.ts
@@ -180,6 +180,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
alignContent: [
"normal",
@@ -197,6 +200,9 @@ export const keywordValues = {
"end",
"flex-start",
"flex-end",
+ "initial",
+ "inherit",
+ "unset",
],
alignItems: [
"normal",
@@ -213,6 +219,9 @@ export const keywordValues = {
"self-end",
"flex-start",
"flex-end",
+ "initial",
+ "inherit",
+ "unset",
],
alignSelf: [
"auto",
@@ -230,6 +239,9 @@ export const keywordValues = {
"self-end",
"flex-start",
"flex-end",
+ "initial",
+ "inherit",
+ "unset",
],
alignTracks: [
"normal",
@@ -247,12 +259,34 @@ export const keywordValues = {
"end",
"flex-start",
"flex-end",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ animationComposition: ["initial", "inherit", "unset"],
+ animationDelay: ["initial", "inherit", "unset"],
+ animationDirection: [
+ "normal",
+ "reverse",
+ "alternate",
+ "alternate-reverse",
+ "initial",
+ "inherit",
+ "unset",
],
- animationDirection: ["normal", "reverse", "alternate", "alternate-reverse"],
- animationFillMode: ["none", "forwards", "backwards", "both"],
- animationIterationCount: ["infinite"],
- animationName: ["none"],
- animationPlayState: ["running", "paused"],
+ animationDuration: ["initial", "inherit", "unset"],
+ animationFillMode: [
+ "none",
+ "forwards",
+ "backwards",
+ "both",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ animationIterationCount: ["infinite", "initial", "inherit", "unset"],
+ animationName: ["none", "initial", "inherit", "unset"],
+ animationPlayState: ["running", "paused", "initial", "inherit", "unset"],
animationTimingFunction: [
"linear",
"ease",
@@ -261,8 +295,11 @@ export const keywordValues = {
"ease-in-out",
"step-start",
"step-end",
+ "initial",
+ "inherit",
+ "unset",
],
- animationTimeline: ["auto", "none"],
+ animationTimeline: ["auto", "none", "initial", "inherit", "unset"],
appearance: [
"none",
"auto",
@@ -280,11 +317,21 @@ export const keywordValues = {
"meter",
"progress-bar",
"button",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ aspectRatio: ["auto", "initial", "inherit", "unset"],
+ backdropFilter: ["none", "initial", "inherit", "unset"],
+ backfaceVisibility: ["visible", "hidden", "initial", "inherit", "unset"],
+ backgroundAttachment: [
+ "scroll",
+ "fixed",
+ "local",
+ "initial",
+ "inherit",
+ "unset",
],
- aspectRatio: ["auto"],
- backdropFilter: ["none"],
- backfaceVisibility: ["visible", "hidden"],
- backgroundAttachment: ["scroll", "fixed", "local"],
backgroundBlendMode: [
"normal",
"multiply",
@@ -302,8 +349,19 @@ export const keywordValues = {
"saturation",
"color",
"luminosity",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ backgroundClip: [
+ "border-box",
+ "padding-box",
+ "content-box",
+ "text",
+ "initial",
+ "inherit",
+ "unset",
],
- backgroundClip: ["border-box", "padding-box", "content-box", "text"],
backgroundColor: [
"transparent",
"aliceblue",
@@ -483,12 +541,49 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ backgroundImage: ["none", "initial", "inherit", "unset"],
+ backgroundOrigin: [
+ "border-box",
+ "padding-box",
+ "content-box",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ backgroundPosition: [
+ "left",
+ "center",
+ "right",
+ "top",
+ "bottom",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ backgroundPositionX: [
+ "center",
+ "left",
+ "right",
+ "x-start",
+ "x-end",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ backgroundPositionY: [
+ "center",
+ "top",
+ "bottom",
+ "y-start",
+ "y-end",
+ "initial",
+ "inherit",
+ "unset",
],
- backgroundImage: ["none"],
- backgroundOrigin: ["border-box", "padding-box", "content-box"],
- backgroundPosition: ["left", "center", "right", "top", "bottom"],
- backgroundPositionX: ["center", "left", "right", "x-start", "x-end"],
- backgroundPositionY: ["center", "top", "bottom", "y-start", "y-end"],
backgroundRepeat: [
"repeat-x",
"repeat-y",
@@ -496,10 +591,21 @@ export const keywordValues = {
"space",
"round",
"no-repeat",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ backgroundSize: ["auto", "cover", "contain", "initial", "inherit", "unset"],
+ blockOverflow: ["clip", "ellipsis", "initial", "inherit", "unset"],
+ blockSize: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
],
- backgroundSize: ["auto", "cover", "contain"],
- blockOverflow: ["clip", "ellipsis"],
- blockSize: ["auto", "min-content", "max-content", "fit-content"],
borderBlockColor: [
"transparent",
"aliceblue",
@@ -679,6 +785,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderBlockStyle: [
"none",
@@ -691,8 +800,11 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
],
- borderBlockWidth: ["thin", "medium", "thick"],
+ borderBlockWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
borderBlockEndColor: [
"transparent",
"aliceblue",
@@ -872,6 +984,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderBlockEndStyle: [
"none",
@@ -884,8 +999,18 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ borderBlockEndWidth: [
+ "thin",
+ "medium",
+ "thick",
+ "initial",
+ "inherit",
+ "unset",
],
- borderBlockEndWidth: ["thin", "medium", "thick"],
borderBlockStartColor: [
"transparent",
"aliceblue",
@@ -1065,6 +1190,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderBlockStartStyle: [
"none",
@@ -1077,8 +1205,18 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ borderBlockStartWidth: [
+ "thin",
+ "medium",
+ "thick",
+ "initial",
+ "inherit",
+ "unset",
],
- borderBlockStartWidth: ["thin", "medium", "thick"],
borderBottomColor: [
"transparent",
"aliceblue",
@@ -1258,7 +1396,12 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
+ borderBottomLeftRadius: ["initial", "inherit", "unset"],
+ borderBottomRightRadius: ["initial", "inherit", "unset"],
borderBottomStyle: [
"none",
"hidden",
@@ -1270,13 +1413,27 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ borderBottomWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
+ borderCollapse: ["collapse", "separate", "initial", "inherit", "unset"],
+ borderEndEndRadius: ["initial", "inherit", "unset"],
+ borderEndStartRadius: ["initial", "inherit", "unset"],
+ borderImageOutset: ["initial", "inherit", "unset"],
+ borderImageRepeat: [
+ "stretch",
+ "repeat",
+ "round",
+ "space",
+ "initial",
+ "inherit",
+ "unset",
],
- borderBottomWidth: ["thin", "medium", "thick"],
- borderCollapse: ["collapse", "separate"],
- borderImageRepeat: ["stretch", "repeat", "round", "space"],
- borderImageSlice: ["fill"],
- borderImageSource: ["none"],
- borderImageWidth: ["auto"],
+ borderImageSlice: ["fill", "initial", "inherit", "unset"],
+ borderImageSource: ["none", "initial", "inherit", "unset"],
+ borderImageWidth: ["auto", "initial", "inherit", "unset"],
borderInlineColor: [
"transparent",
"aliceblue",
@@ -1456,6 +1613,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderInlineStyle: [
"none",
@@ -1468,8 +1628,11 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
],
- borderInlineWidth: ["thin", "medium", "thick"],
+ borderInlineWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
borderInlineEndColor: [
"transparent",
"aliceblue",
@@ -1649,6 +1812,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderInlineEndStyle: [
"none",
@@ -1661,8 +1827,18 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ borderInlineEndWidth: [
+ "thin",
+ "medium",
+ "thick",
+ "initial",
+ "inherit",
+ "unset",
],
- borderInlineEndWidth: ["thin", "medium", "thick"],
borderInlineStartColor: [
"transparent",
"aliceblue",
@@ -1842,6 +2018,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderInlineStartStyle: [
"none",
@@ -1854,8 +2033,18 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ borderInlineStartWidth: [
+ "thin",
+ "medium",
+ "thick",
+ "initial",
+ "inherit",
+ "unset",
],
- borderInlineStartWidth: ["thin", "medium", "thick"],
borderLeftColor: [
"transparent",
"aliceblue",
@@ -2035,6 +2224,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderLeftStyle: [
"none",
@@ -2047,8 +2239,11 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
],
- borderLeftWidth: ["thin", "medium", "thick"],
+ borderLeftWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
borderRightColor: [
"transparent",
"aliceblue",
@@ -2228,6 +2423,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
borderRightStyle: [
"none",
@@ -2240,8 +2438,14 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
],
- borderRightWidth: ["thin", "medium", "thick"],
+ borderRightWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
+ borderSpacing: ["initial", "inherit", "unset"],
+ borderStartEndRadius: ["initial", "inherit", "unset"],
+ borderStartStartRadius: ["initial", "inherit", "unset"],
borderTopColor: [
"transparent",
"aliceblue",
@@ -2421,7 +2625,12 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
+ borderTopLeftRadius: ["initial", "inherit", "unset"],
+ borderTopRightRadius: ["initial", "inherit", "unset"],
borderTopStyle: [
"none",
"hidden",
@@ -2433,10 +2642,13 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
],
- borderTopWidth: ["thin", "medium", "thick"],
- bottom: ["auto"],
- boxDecorationBreak: ["slice", "clone"],
+ borderTopWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
+ bottom: ["auto", "initial", "inherit", "unset"],
+ boxDecorationBreak: ["slice", "clone", "initial", "inherit", "unset"],
boxShadow: [
"none",
"inset",
@@ -2618,8 +2830,11 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
- boxSizing: ["content-box", "border-box"],
+ boxSizing: ["content-box", "border-box", "initial", "inherit", "unset"],
breakAfter: [
"auto",
"avoid",
@@ -2635,6 +2850,9 @@ export const keywordValues = {
"column",
"avoid-region",
"region",
+ "initial",
+ "inherit",
+ "unset",
],
breakBefore: [
"auto",
@@ -2651,8 +2869,20 @@ export const keywordValues = {
"column",
"avoid-region",
"region",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ breakInside: [
+ "auto",
+ "avoid",
+ "avoid-page",
+ "avoid-column",
+ "avoid-region",
+ "initial",
+ "inherit",
+ "unset",
],
- breakInside: ["auto", "avoid", "avoid-page", "avoid-column", "avoid-region"],
captionSide: [
"top",
"bottom",
@@ -2660,6 +2890,9 @@ export const keywordValues = {
"block-end",
"inline-start",
"inline-end",
+ "initial",
+ "inherit",
+ "unset",
],
caretColor: [
"auto",
@@ -2841,10 +3074,31 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ caretShape: [
+ "auto",
+ "bar",
+ "block",
+ "underscore",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ clear: [
+ "none",
+ "left",
+ "right",
+ "both",
+ "inline-start",
+ "inline-end",
+ "initial",
+ "inherit",
+ "unset",
],
- caretShape: ["auto", "bar", "block", "underscore"],
- clear: ["none", "left", "right", "both", "inline-start", "inline-end"],
- clip: ["auto"],
+ clip: ["auto", "initial", "inherit", "unset"],
clipPath: [
"border-box",
"padding-box",
@@ -2854,6 +3108,9 @@ export const keywordValues = {
"stroke-box",
"view-box",
"none",
+ "initial",
+ "inherit",
+ "unset",
],
color: [
"transparent",
@@ -3034,12 +3291,23 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
- printColorAdjust: ["economy", "exact"],
- colorScheme: ["normal", "light", "dark", "only"],
- columnCount: ["auto"],
- columnFill: ["auto", "balance", "balance-all"],
- columnGap: ["normal"],
+ printColorAdjust: ["economy", "exact", "initial", "inherit", "unset"],
+ colorScheme: [
+ "normal",
+ "light",
+ "dark",
+ "only",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ columnCount: ["auto", "initial", "inherit", "unset"],
+ columnFill: ["auto", "balance", "balance-all", "initial", "inherit", "unset"],
+ columnGap: ["normal", "initial", "inherit", "unset"],
columnRuleColor: [
"transparent",
"aliceblue",
@@ -3219,6 +3487,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
columnRuleStyle: [
"none",
@@ -3231,10 +3502,13 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
],
- columnRuleWidth: ["thin", "medium", "thick"],
- columnSpan: ["none", "all"],
- columnWidth: ["auto"],
+ columnRuleWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
+ columnSpan: ["none", "all", "initial", "inherit", "unset"],
+ columnWidth: ["auto", "initial", "inherit", "unset"],
contain: [
"none",
"strict",
@@ -3244,11 +3518,14 @@ export const keywordValues = {
"layout",
"style",
"paint",
+ "initial",
+ "inherit",
+ "unset",
],
- containIntrinsicBlockSize: ["none", "auto"],
- containIntrinsicHeight: ["none", "auto"],
- containIntrinsicInlineSize: ["none", "auto"],
- containIntrinsicWidth: ["none", "auto"],
+ containIntrinsicBlockSize: ["none", "auto", "initial", "inherit", "unset"],
+ containIntrinsicHeight: ["none", "auto", "initial", "inherit", "unset"],
+ containIntrinsicInlineSize: ["none", "auto", "initial", "inherit", "unset"],
+ containIntrinsicWidth: ["none", "auto", "initial", "inherit", "unset"],
content: [
"normal",
"none",
@@ -3257,11 +3534,21 @@ export const keywordValues = {
"close-quote",
"no-open-quote",
"no-close-quote",
+ "initial",
+ "inherit",
+ "unset",
],
- contentVisibility: ["visible", "auto", "hidden"],
- counterIncrement: ["none"],
- counterReset: ["none"],
- counterSet: ["none"],
+ contentVisibility: [
+ "visible",
+ "auto",
+ "hidden",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ counterIncrement: ["none", "initial", "inherit", "unset"],
+ counterReset: ["none", "initial", "inherit", "unset"],
+ counterSet: ["none", "initial", "inherit", "unset"],
cursor: [
"auto",
"default",
@@ -3299,8 +3586,11 @@ export const keywordValues = {
"zoom-out",
"grab",
"grabbing",
+ "initial",
+ "inherit",
+ "unset",
],
- direction: ["ltr", "rtl"],
+ direction: ["ltr", "rtl", "initial", "inherit", "unset"],
display: [
"block",
"inline",
@@ -3331,19 +3621,59 @@ export const keywordValues = {
"inline-table",
"inline-flex",
"inline-grid",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ emptyCells: ["show", "hide", "initial", "inherit", "unset"],
+ filter: ["none", "initial", "inherit", "unset"],
+ flexBasis: [
+ "content",
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ flexDirection: [
+ "row",
+ "row-reverse",
+ "column",
+ "column-reverse",
+ "initial",
+ "inherit",
+ "unset",
],
- emptyCells: ["show", "hide"],
- filter: ["none"],
- flexBasis: ["content", "auto", "min-content", "max-content", "fit-content"],
- flexDirection: ["row", "row-reverse", "column", "column-reverse"],
- flexWrap: ["nowrap", "wrap", "wrap-reverse"],
- float: ["left", "right", "none", "inline-start", "inline-end"],
- fontFamily: ["serif", "sans-serif", "cursive", "fantasy", "monospace"],
- fontFeatureSettings: ["normal", "on", "off"],
- fontKerning: ["auto", "normal", "none"],
- fontLanguageOverride: ["normal"],
- fontOpticalSizing: ["auto", "none"],
- fontVariationSettings: ["normal"],
+ flexGrow: ["initial", "inherit", "unset"],
+ flexShrink: ["initial", "inherit", "unset"],
+ flexWrap: ["nowrap", "wrap", "wrap-reverse", "initial", "inherit", "unset"],
+ float: [
+ "left",
+ "right",
+ "none",
+ "inline-start",
+ "inline-end",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ fontFamily: [
+ "serif",
+ "sans-serif",
+ "cursive",
+ "fantasy",
+ "monospace",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ fontFeatureSettings: ["normal", "on", "off", "initial", "inherit", "unset"],
+ fontKerning: ["auto", "normal", "none", "initial", "inherit", "unset"],
+ fontLanguageOverride: ["normal", "initial", "inherit", "unset"],
+ fontOpticalSizing: ["auto", "none", "initial", "inherit", "unset"],
+ fontVariationSettings: ["normal", "initial", "inherit", "unset"],
fontSize: [
"xx-small",
"x-small",
@@ -3355,6 +3685,9 @@ export const keywordValues = {
"xxx-large",
"larger",
"smaller",
+ "initial",
+ "inherit",
+ "unset",
],
fontSizeAdjust: [
"none",
@@ -3364,6 +3697,9 @@ export const keywordValues = {
"ic-width",
"ic-height",
"from-font",
+ "initial",
+ "inherit",
+ "unset",
],
fontStretch: [
"normal",
@@ -3375,9 +3711,20 @@ export const keywordValues = {
"expanded",
"extra-expanded",
"ultra-expanded",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ fontStyle: ["normal", "italic", "oblique", "initial", "inherit", "unset"],
+ fontSynthesis: [
+ "none",
+ "weight",
+ "style",
+ "small-caps",
+ "initial",
+ "inherit",
+ "unset",
],
- fontStyle: ["normal", "italic", "oblique"],
- fontSynthesis: ["none", "weight", "style", "small-caps"],
fontVariant: [
"normal",
"none",
@@ -3413,8 +3760,17 @@ export const keywordValues = {
"full-width",
"proportional-width",
"ruby",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ fontVariantAlternates: [
+ "normal",
+ "historical-forms",
+ "initial",
+ "inherit",
+ "unset",
],
- fontVariantAlternates: ["normal", "historical-forms"],
fontVariantCaps: [
"normal",
"small-caps",
@@ -3423,6 +3779,9 @@ export const keywordValues = {
"all-petite-caps",
"unicase",
"titling-caps",
+ "initial",
+ "inherit",
+ "unset",
],
fontVariantEastAsian: [
"normal",
@@ -3435,6 +3794,9 @@ export const keywordValues = {
"full-width",
"proportional-width",
"ruby",
+ "initial",
+ "inherit",
+ "unset",
],
fontVariantLigatures: [
"normal",
@@ -3447,6 +3809,9 @@ export const keywordValues = {
"no-historical-ligatures",
"contextual",
"no-contextual",
+ "initial",
+ "inherit",
+ "unset",
],
fontVariantNumeric: [
"normal",
@@ -3458,42 +3823,126 @@ export const keywordValues = {
"stacked-fractions",
"ordinal",
"slashed-zero",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ fontVariantPosition: [
+ "normal",
+ "sub",
+ "super",
+ "initial",
+ "inherit",
+ "unset",
],
- fontVariantPosition: ["normal", "sub", "super"],
- fontWeight: ["normal", "bold", "bolder", "lighter"],
- forcedColorAdjust: ["auto", "none"],
- gridAutoColumns: ["min-content", "max-content", "auto"],
- gridAutoFlow: ["row", "column", "dense"],
- gridAutoRows: ["min-content", "max-content", "auto"],
- gridColumnEnd: ["auto", "span"],
- gridColumnStart: ["auto", "span"],
- gridRowEnd: ["auto", "span"],
- gridRowStart: ["auto", "span"],
- gridTemplateAreas: ["none"],
+ fontWeight: [
+ "normal",
+ "bold",
+ "bolder",
+ "lighter",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ forcedColorAdjust: ["auto", "none", "initial", "inherit", "unset"],
+ gridAutoColumns: [
+ "min-content",
+ "max-content",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ gridAutoFlow: ["row", "column", "dense", "initial", "inherit", "unset"],
+ gridAutoRows: [
+ "min-content",
+ "max-content",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ gridColumnEnd: ["auto", "span", "initial", "inherit", "unset"],
+ gridColumnStart: ["auto", "span", "initial", "inherit", "unset"],
+ gridRowEnd: ["auto", "span", "initial", "inherit", "unset"],
+ gridRowStart: ["auto", "span", "initial", "inherit", "unset"],
+ gridTemplateAreas: ["none", "initial", "inherit", "unset"],
gridTemplateColumns: [
"none",
"min-content",
"max-content",
"auto",
"subgrid",
+ "initial",
+ "inherit",
+ "unset",
],
- gridTemplateRows: ["none", "min-content", "max-content", "auto", "subgrid"],
- hangingPunctuation: ["none", "first", "force-end", "allow-end", "last"],
- height: ["auto", "min-content", "max-content", "fit-content"],
- hyphenateCharacter: ["auto"],
- hyphens: ["none", "manual", "auto"],
- imageOrientation: ["from-image", "flip"],
- imageRendering: ["auto", "crisp-edges", "pixelated"],
- imageResolution: ["from-image", "snap"],
- initialLetter: ["normal"],
- initialLetterAlign: ["auto", "alphabetic", "hanging", "ideographic"],
- inlineSize: ["auto", "min-content", "max-content", "fit-content"],
- inputSecurity: ["auto", "none"],
- insetBlockEnd: ["auto"],
- insetBlockStart: ["auto"],
- insetInlineEnd: ["auto"],
- insetInlineStart: ["auto"],
- isolation: ["auto", "isolate"],
+ gridTemplateRows: [
+ "none",
+ "min-content",
+ "max-content",
+ "auto",
+ "subgrid",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ hangingPunctuation: [
+ "none",
+ "first",
+ "force-end",
+ "allow-end",
+ "last",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ height: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ hyphenateCharacter: ["auto", "initial", "inherit", "unset"],
+ hyphens: ["none", "manual", "auto", "initial", "inherit", "unset"],
+ imageOrientation: ["from-image", "flip", "initial", "inherit", "unset"],
+ imageRendering: [
+ "auto",
+ "crisp-edges",
+ "pixelated",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ imageResolution: ["from-image", "snap", "initial", "inherit", "unset"],
+ initialLetter: ["normal", "initial", "inherit", "unset"],
+ initialLetterAlign: [
+ "auto",
+ "alphabetic",
+ "hanging",
+ "ideographic",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ inlineSize: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ inputSecurity: ["auto", "none", "initial", "inherit", "unset"],
+ insetBlockEnd: ["auto", "initial", "inherit", "unset"],
+ insetBlockStart: ["auto", "initial", "inherit", "unset"],
+ insetInlineEnd: ["auto", "initial", "inherit", "unset"],
+ insetInlineStart: ["auto", "initial", "inherit", "unset"],
+ isolation: ["auto", "isolate", "initial", "inherit", "unset"],
justifyContent: [
"normal",
"space-between",
@@ -3509,6 +3958,9 @@ export const keywordValues = {
"flex-end",
"left",
"right",
+ "initial",
+ "inherit",
+ "unset",
],
justifyItems: [
"normal",
@@ -3528,6 +3980,9 @@ export const keywordValues = {
"left",
"right",
"legacy",
+ "initial",
+ "inherit",
+ "unset",
],
justifySelf: [
"auto",
@@ -3547,6 +4002,9 @@ export const keywordValues = {
"flex-end",
"left",
"right",
+ "initial",
+ "inherit",
+ "unset",
],
justifyTracks: [
"normal",
@@ -3563,29 +4021,51 @@ export const keywordValues = {
"flex-end",
"left",
"right",
+ "initial",
+ "inherit",
+ "unset",
],
- left: ["auto"],
- letterSpacing: ["normal"],
- lineBreak: ["auto", "loose", "normal", "strict", "anywhere"],
- lineClamp: ["none"],
- lineHeight: ["normal"],
- listStyleImage: ["none"],
- listStylePosition: ["inside", "outside"],
- listStyleType: ["none"],
- marginBlockEnd: ["auto"],
- marginBlockStart: ["auto"],
- marginBottom: ["auto"],
- marginInlineEnd: ["auto"],
- marginInlineStart: ["auto"],
- marginLeft: ["auto"],
- marginRight: ["auto"],
- marginTop: ["auto"],
- marginTrim: ["none", "in-flow", "all"],
- maskBorderMode: ["luminance", "alpha"],
- maskBorderRepeat: ["stretch", "repeat", "round", "space"],
- maskBorderSlice: ["fill"],
- maskBorderSource: ["none"],
- maskBorderWidth: ["auto"],
+ left: ["auto", "initial", "inherit", "unset"],
+ letterSpacing: ["normal", "initial", "inherit", "unset"],
+ lineBreak: [
+ "auto",
+ "loose",
+ "normal",
+ "strict",
+ "anywhere",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ lineClamp: ["none", "initial", "inherit", "unset"],
+ lineHeight: ["normal", "initial", "inherit", "unset"],
+ lineHeightStep: ["initial", "inherit", "unset"],
+ listStyleImage: ["none", "initial", "inherit", "unset"],
+ listStylePosition: ["inside", "outside", "initial", "inherit", "unset"],
+ listStyleType: ["none", "initial", "inherit", "unset"],
+ marginBlockEnd: ["auto", "initial", "inherit", "unset"],
+ marginBlockStart: ["auto", "initial", "inherit", "unset"],
+ marginBottom: ["auto", "initial", "inherit", "unset"],
+ marginInlineEnd: ["auto", "initial", "inherit", "unset"],
+ marginInlineStart: ["auto", "initial", "inherit", "unset"],
+ marginLeft: ["auto", "initial", "inherit", "unset"],
+ marginRight: ["auto", "initial", "inherit", "unset"],
+ marginTop: ["auto", "initial", "inherit", "unset"],
+ marginTrim: ["none", "in-flow", "all", "initial", "inherit", "unset"],
+ maskBorderMode: ["luminance", "alpha", "initial", "inherit", "unset"],
+ maskBorderOutset: ["initial", "inherit", "unset"],
+ maskBorderRepeat: [
+ "stretch",
+ "repeat",
+ "round",
+ "space",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maskBorderSlice: ["fill", "initial", "inherit", "unset"],
+ maskBorderSource: ["none", "initial", "inherit", "unset"],
+ maskBorderWidth: ["auto", "initial", "inherit", "unset"],
maskClip: [
"border-box",
"padding-box",
@@ -3595,10 +4075,28 @@ export const keywordValues = {
"stroke-box",
"view-box",
"no-clip",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maskComposite: [
+ "add",
+ "subtract",
+ "intersect",
+ "exclude",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maskImage: ["none", "initial", "inherit", "unset"],
+ maskMode: [
+ "alpha",
+ "luminance",
+ "match-source",
+ "initial",
+ "inherit",
+ "unset",
],
- maskComposite: ["add", "subtract", "intersect", "exclude"],
- maskImage: ["none"],
- maskMode: ["alpha", "luminance", "match-source"],
maskOrigin: [
"border-box",
"padding-box",
@@ -3607,24 +4105,118 @@ export const keywordValues = {
"fill-box",
"stroke-box",
"view-box",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maskPosition: [
+ "left",
+ "center",
+ "right",
+ "top",
+ "bottom",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maskRepeat: [
+ "repeat-x",
+ "repeat-y",
+ "repeat",
+ "space",
+ "round",
+ "no-repeat",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maskSize: ["auto", "cover", "contain", "initial", "inherit", "unset"],
+ maskType: ["luminance", "alpha", "initial", "inherit", "unset"],
+ masonryAutoFlow: [
+ "pack",
+ "next",
+ "definite-first",
+ "ordered",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ mathDepth: ["auto-add", "initial", "inherit", "unset"],
+ mathShift: ["normal", "compact", "initial", "inherit", "unset"],
+ mathStyle: ["normal", "compact", "initial", "inherit", "unset"],
+ maxBlockSize: [
+ "none",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maxHeight: [
+ "none",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maxInlineSize: [
+ "none",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ maxLines: ["none", "initial", "inherit", "unset"],
+ maxWidth: [
+ "none",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ minBlockSize: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ minHeight: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ minInlineSize: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ minWidth: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
],
- maskPosition: ["left", "center", "right", "top", "bottom"],
- maskRepeat: ["repeat-x", "repeat-y", "repeat", "space", "round", "no-repeat"],
- maskSize: ["auto", "cover", "contain"],
- maskType: ["luminance", "alpha"],
- masonryAutoFlow: ["pack", "next", "definite-first", "ordered"],
- mathDepth: ["auto-add"],
- mathShift: ["normal", "compact"],
- mathStyle: ["normal", "compact"],
- maxBlockSize: ["none", "min-content", "max-content", "fit-content"],
- maxHeight: ["none", "min-content", "max-content", "fit-content"],
- maxInlineSize: ["none", "min-content", "max-content", "fit-content"],
- maxLines: ["none"],
- maxWidth: ["none", "min-content", "max-content", "fit-content"],
- minBlockSize: ["auto", "min-content", "max-content", "fit-content"],
- minHeight: ["auto", "min-content", "max-content", "fit-content"],
- minInlineSize: ["auto", "min-content", "max-content", "fit-content"],
- minWidth: ["auto", "min-content", "max-content", "fit-content"],
mixBlendMode: [
"normal",
"multiply",
@@ -3643,10 +4235,42 @@ export const keywordValues = {
"color",
"luminosity",
"plus-lighter",
+ "initial",
+ "inherit",
+ "unset",
],
- objectFit: ["fill", "contain", "cover", "none", "scale-down"],
- objectPosition: ["left", "center", "right", "top", "bottom"],
- offsetAnchor: ["auto", "left", "center", "right", "top", "bottom"],
+ objectFit: [
+ "fill",
+ "contain",
+ "cover",
+ "none",
+ "scale-down",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ objectPosition: [
+ "left",
+ "center",
+ "right",
+ "top",
+ "bottom",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ offsetAnchor: [
+ "auto",
+ "left",
+ "center",
+ "right",
+ "top",
+ "bottom",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ offsetDistance: ["initial", "inherit", "unset"],
offsetPath: [
"none",
"border-box",
@@ -3656,9 +4280,25 @@ export const keywordValues = {
"fill-box",
"stroke-box",
"view-box",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ offsetPosition: [
+ "auto",
+ "left",
+ "center",
+ "right",
+ "top",
+ "bottom",
+ "initial",
+ "inherit",
+ "unset",
],
- offsetPosition: ["auto", "left", "center", "right", "top", "bottom"],
- offsetRotate: ["auto", "reverse"],
+ offsetRotate: ["auto", "reverse", "initial", "inherit", "unset"],
+ opacity: ["initial", "inherit", "unset"],
+ order: ["initial", "inherit", "unset"],
+ orphans: ["initial", "inherit", "unset"],
outlineColor: [
"transparent",
"aliceblue",
@@ -3839,7 +4479,11 @@ export const keywordValues = {
"WindowFrame",
"WindowText",
"invert",
+ "initial",
+ "inherit",
+ "unset",
],
+ outlineOffset: ["initial", "inherit", "unset"],
outlineStyle: [
"auto",
"none",
@@ -3852,21 +4496,126 @@ export const keywordValues = {
"ridge",
"inset",
"outset",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ outlineWidth: ["thin", "medium", "thick", "initial", "inherit", "unset"],
+ overflow: [
+ "visible",
+ "hidden",
+ "clip",
+ "scroll",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overflowAnchor: ["auto", "none", "initial", "inherit", "unset"],
+ overflowBlock: [
+ "visible",
+ "hidden",
+ "clip",
+ "scroll",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overflowClipMargin: [
+ "content-box",
+ "padding-box",
+ "border-box",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overflowInline: [
+ "visible",
+ "hidden",
+ "clip",
+ "scroll",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overflowWrap: [
+ "normal",
+ "break-word",
+ "anywhere",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overflowX: [
+ "visible",
+ "hidden",
+ "clip",
+ "scroll",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overflowY: [
+ "visible",
+ "hidden",
+ "clip",
+ "scroll",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overscrollBehavior: [
+ "contain",
+ "none",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overscrollBehaviorBlock: [
+ "contain",
+ "none",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overscrollBehaviorInline: [
+ "contain",
+ "none",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overscrollBehaviorX: [
+ "contain",
+ "none",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ overscrollBehaviorY: [
+ "contain",
+ "none",
+ "auto",
+ "initial",
+ "inherit",
+ "unset",
],
- outlineWidth: ["thin", "medium", "thick"],
- overflow: ["visible", "hidden", "clip", "scroll", "auto"],
- overflowAnchor: ["auto", "none"],
- overflowBlock: ["visible", "hidden", "clip", "scroll", "auto"],
- overflowClipMargin: ["content-box", "padding-box", "border-box"],
- overflowInline: ["visible", "hidden", "clip", "scroll", "auto"],
- overflowWrap: ["normal", "break-word", "anywhere"],
- overflowX: ["visible", "hidden", "clip", "scroll", "auto"],
- overflowY: ["visible", "hidden", "clip", "scroll", "auto"],
- overscrollBehavior: ["contain", "none", "auto"],
- overscrollBehaviorBlock: ["contain", "none", "auto"],
- overscrollBehaviorInline: ["contain", "none", "auto"],
- overscrollBehaviorX: ["contain", "none", "auto"],
- overscrollBehaviorY: ["contain", "none", "auto"],
+ paddingBlockEnd: ["initial", "inherit", "unset"],
+ paddingBlockStart: ["initial", "inherit", "unset"],
+ paddingBottom: ["initial", "inherit", "unset"],
+ paddingInlineEnd: ["initial", "inherit", "unset"],
+ paddingInlineStart: ["initial", "inherit", "unset"],
+ paddingLeft: ["initial", "inherit", "unset"],
+ paddingRight: ["initial", "inherit", "unset"],
+ paddingTop: ["initial", "inherit", "unset"],
pageBreakAfter: [
"auto",
"always",
@@ -3875,6 +4624,9 @@ export const keywordValues = {
"right",
"recto",
"verso",
+ "initial",
+ "inherit",
+ "unset",
],
pageBreakBefore: [
"auto",
@@ -3884,11 +4636,31 @@ export const keywordValues = {
"right",
"recto",
"verso",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ pageBreakInside: ["auto", "avoid", "initial", "inherit", "unset"],
+ paintOrder: [
+ "normal",
+ "fill",
+ "stroke",
+ "markers",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ perspective: ["none", "initial", "inherit", "unset"],
+ perspectiveOrigin: [
+ "left",
+ "center",
+ "right",
+ "top",
+ "bottom",
+ "initial",
+ "inherit",
+ "unset",
],
- pageBreakInside: ["auto", "avoid"],
- paintOrder: ["normal", "fill", "stroke", "markers"],
- perspective: ["none"],
- perspectiveOrigin: ["left", "center", "right", "top", "bottom"],
pointerEvents: [
"auto",
"none",
@@ -3900,18 +4672,55 @@ export const keywordValues = {
"fill",
"stroke",
"all",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ position: [
+ "static",
+ "relative",
+ "absolute",
+ "sticky",
+ "fixed",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ quotes: ["none", "auto", "initial", "inherit", "unset"],
+ resize: [
+ "none",
+ "both",
+ "horizontal",
+ "vertical",
+ "block",
+ "inline",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ right: ["auto", "initial", "inherit", "unset"],
+ rotate: ["none", "x", "y", "z", "initial", "inherit", "unset"],
+ rowGap: ["normal", "initial", "inherit", "unset"],
+ rubyAlign: [
+ "start",
+ "center",
+ "space-between",
+ "space-around",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ rubyMerge: ["separate", "collapse", "auto", "initial", "inherit", "unset"],
+ rubyPosition: [
+ "alternate",
+ "over",
+ "under",
+ "inter-character",
+ "initial",
"inherit",
+ "unset",
],
- position: ["static", "relative", "absolute", "sticky", "fixed"],
- quotes: ["none", "auto"],
- resize: ["none", "both", "horizontal", "vertical", "block", "inline"],
- right: ["auto"],
- rotate: ["none", "x", "y", "z"],
- rowGap: ["normal"],
- rubyAlign: ["start", "center", "space-between", "space-around"],
- rubyMerge: ["separate", "collapse", "auto"],
- rubyPosition: ["alternate", "over", "under", "inter-character"],
- scale: ["none"],
+ scale: ["none", "initial", "inherit", "unset"],
scrollbarColor: [
"auto",
"transparent",
@@ -4092,20 +4901,46 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ scrollbarGutter: [
+ "auto",
+ "stable",
+ "both-edges",
+ "initial",
+ "inherit",
+ "unset",
],
- scrollbarGutter: ["auto", "stable", "both-edges"],
- scrollbarWidth: ["auto", "thin", "none"],
- scrollBehavior: ["auto", "smooth"],
- scrollPaddingBlockStart: ["auto"],
- scrollPaddingBlockEnd: ["auto"],
- scrollPaddingBottom: ["auto"],
- scrollPaddingInlineStart: ["auto"],
- scrollPaddingInlineEnd: ["auto"],
- scrollPaddingLeft: ["auto"],
- scrollPaddingRight: ["auto"],
- scrollPaddingTop: ["auto"],
- scrollSnapAlign: ["none", "start", "end", "center"],
- scrollSnapStop: ["normal", "always"],
+ scrollbarWidth: ["auto", "thin", "none", "initial", "inherit", "unset"],
+ scrollBehavior: ["auto", "smooth", "initial", "inherit", "unset"],
+ scrollMarginBlockStart: ["initial", "inherit", "unset"],
+ scrollMarginBlockEnd: ["initial", "inherit", "unset"],
+ scrollMarginBottom: ["initial", "inherit", "unset"],
+ scrollMarginInlineStart: ["initial", "inherit", "unset"],
+ scrollMarginInlineEnd: ["initial", "inherit", "unset"],
+ scrollMarginLeft: ["initial", "inherit", "unset"],
+ scrollMarginRight: ["initial", "inherit", "unset"],
+ scrollMarginTop: ["initial", "inherit", "unset"],
+ scrollPaddingBlockStart: ["auto", "initial", "inherit", "unset"],
+ scrollPaddingBlockEnd: ["auto", "initial", "inherit", "unset"],
+ scrollPaddingBottom: ["auto", "initial", "inherit", "unset"],
+ scrollPaddingInlineStart: ["auto", "initial", "inherit", "unset"],
+ scrollPaddingInlineEnd: ["auto", "initial", "inherit", "unset"],
+ scrollPaddingLeft: ["auto", "initial", "inherit", "unset"],
+ scrollPaddingRight: ["auto", "initial", "inherit", "unset"],
+ scrollPaddingTop: ["auto", "initial", "inherit", "unset"],
+ scrollSnapAlign: [
+ "none",
+ "start",
+ "end",
+ "center",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ scrollSnapStop: ["normal", "always", "initial", "inherit", "unset"],
scrollSnapType: [
"none",
"x",
@@ -4115,17 +4950,34 @@ export const keywordValues = {
"both",
"mandatory",
"proximity",
+ "initial",
+ "inherit",
+ "unset",
],
- scrollTimelineAxis: ["block", "inline", "vertical", "horizontal"],
- scrollTimelineName: ["none"],
+ scrollTimelineAxis: [
+ "block",
+ "inline",
+ "vertical",
+ "horizontal",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ scrollTimelineName: ["none", "initial", "inherit", "unset"],
+ shapeImageThreshold: ["initial", "inherit", "unset"],
+ shapeMargin: ["initial", "inherit", "unset"],
shapeOutside: [
"none",
"border-box",
"padding-box",
"content-box",
"margin-box",
+ "initial",
+ "inherit",
+ "unset",
],
- tableLayout: ["auto", "fixed"],
+ tabSize: ["initial", "inherit", "unset"],
+ tableLayout: ["auto", "fixed", "initial", "inherit", "unset"],
textAlign: [
"start",
"end",
@@ -4134,9 +4986,23 @@ export const keywordValues = {
"center",
"justify",
"match-parent",
+ "initial",
+ "inherit",
+ "unset",
],
- textAlignLast: ["auto", "start", "end", "left", "right", "center", "justify"],
- textCombineUpright: ["none", "all", "digits"],
+ textAlignLast: [
+ "auto",
+ "start",
+ "end",
+ "left",
+ "right",
+ "center",
+ "justify",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ textCombineUpright: ["none", "all", "digits", "initial", "inherit", "unset"],
textDecorationColor: [
"transparent",
"aliceblue",
@@ -4316,6 +5182,9 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
textDecorationLine: [
"none",
@@ -4325,6 +5194,9 @@ export const keywordValues = {
"blink",
"spelling-error",
"grammar-error",
+ "initial",
+ "inherit",
+ "unset",
],
textDecorationSkip: [
"none",
@@ -4334,10 +5206,22 @@ export const keywordValues = {
"trailing-spaces",
"edges",
"box-decoration",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ textDecorationSkipInk: ["auto", "all", "none", "initial", "inherit", "unset"],
+ textDecorationStyle: [
+ "solid",
+ "double",
+ "dotted",
+ "dashed",
+ "wavy",
+ "initial",
+ "inherit",
+ "unset",
],
- textDecorationSkipInk: ["auto", "all", "none"],
- textDecorationStyle: ["solid", "double", "dotted", "dashed", "wavy"],
- textDecorationThickness: ["auto", "from-font"],
+ textDecorationThickness: ["auto", "from-font", "initial", "inherit", "unset"],
textEmphasisColor: [
"transparent",
"aliceblue",
@@ -4517,8 +5401,19 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ textEmphasisPosition: [
+ "over",
+ "under",
+ "right",
+ "left",
+ "initial",
+ "inherit",
+ "unset",
],
- textEmphasisPosition: ["over", "under", "right", "left"],
textEmphasisStyle: [
"none",
"filled",
@@ -4528,16 +5423,37 @@ export const keywordValues = {
"double-circle",
"triangle",
"sesame",
+ "initial",
+ "inherit",
+ "unset",
],
- textIndent: ["hanging", "each-line"],
- textJustify: ["auto", "inter-character", "inter-word", "none"],
- textOrientation: ["mixed", "upright", "sideways"],
- textOverflow: ["clip", "ellipsis"],
+ textIndent: ["hanging", "each-line", "initial", "inherit", "unset"],
+ textJustify: [
+ "auto",
+ "inter-character",
+ "inter-word",
+ "none",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ textOrientation: [
+ "mixed",
+ "upright",
+ "sideways",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ textOverflow: ["clip", "ellipsis", "initial", "inherit", "unset"],
textRendering: [
"auto",
"optimizeSpeed",
"optimizeLegibility",
"geometricPrecision",
+ "initial",
+ "inherit",
+ "unset",
],
textShadow: [
"none",
@@ -4719,8 +5635,11 @@ export const keywordValues = {
"Window",
"WindowFrame",
"WindowText",
+ "initial",
+ "inherit",
+ "unset",
],
- textSizeAdjust: ["none", "auto"],
+ textSizeAdjust: ["none", "auto", "initial", "inherit", "unset"],
textTransform: [
"none",
"capitalize",
@@ -4728,10 +5647,22 @@ export const keywordValues = {
"lowercase",
"full-width",
"full-size-kana",
+ "initial",
+ "inherit",
+ "unset",
],
- textUnderlineOffset: ["auto"],
- textUnderlinePosition: ["auto", "from-font", "under", "left", "right"],
- top: ["auto"],
+ textUnderlineOffset: ["auto", "initial", "inherit", "unset"],
+ textUnderlinePosition: [
+ "auto",
+ "from-font",
+ "under",
+ "left",
+ "right",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ top: ["auto", "initial", "inherit", "unset"],
touchAction: [
"auto",
"none",
@@ -4743,18 +5674,35 @@ export const keywordValues = {
"pan-down",
"pinch-zoom",
"manipulation",
+ "initial",
+ "inherit",
+ "unset",
],
- transform: ["none"],
+ transform: ["none", "initial", "inherit", "unset"],
transformBox: [
"content-box",
"border-box",
"fill-box",
"stroke-box",
"view-box",
+ "initial",
+ "inherit",
+ "unset",
],
- transformOrigin: ["left", "center", "right", "top", "bottom"],
- transformStyle: ["flat", "preserve-3d"],
- transitionProperty: ["none", "all"],
+ transformOrigin: [
+ "left",
+ "center",
+ "right",
+ "top",
+ "bottom",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ transformStyle: ["flat", "preserve-3d", "initial", "inherit", "unset"],
+ transitionDelay: ["initial", "inherit", "unset"],
+ transitionDuration: ["initial", "inherit", "unset"],
+ transitionProperty: ["none", "all", "initial", "inherit", "unset"],
transitionTimingFunction: [
"linear",
"ease",
@@ -4763,8 +5711,11 @@ export const keywordValues = {
"ease-in-out",
"step-start",
"step-end",
+ "initial",
+ "inherit",
+ "unset",
],
- translate: ["none"],
+ translate: ["none", "initial", "inherit", "unset"],
unicodeBidi: [
"normal",
"embed",
@@ -4772,8 +5723,20 @@ export const keywordValues = {
"bidi-override",
"isolate-override",
"plaintext",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ userSelect: [
+ "auto",
+ "text",
+ "none",
+ "contain",
+ "all",
+ "initial",
+ "inherit",
+ "unset",
],
- userSelect: ["auto", "text", "none", "contain", "all"],
verticalAlign: [
"baseline",
"sub",
@@ -4783,8 +5746,11 @@ export const keywordValues = {
"middle",
"top",
"bottom",
+ "initial",
+ "inherit",
+ "unset",
],
- visibility: ["visible", "hidden", "collapse"],
+ visibility: ["visible", "hidden", "collapse", "initial", "inherit", "unset"],
whiteSpace: [
"normal",
"pre",
@@ -4792,18 +5758,48 @@ export const keywordValues = {
"pre-wrap",
"pre-line",
"break-spaces",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ widows: ["initial", "inherit", "unset"],
+ width: [
+ "auto",
+ "min-content",
+ "max-content",
+ "fit-content",
+ "initial",
+ "inherit",
+ "unset",
],
- width: ["auto", "min-content", "max-content", "fit-content"],
- willChange: ["auto", "scroll-position", "contents"],
- wordBreak: ["normal", "break-all", "keep-all", "break-word"],
- wordSpacing: ["normal"],
- wordWrap: ["normal", "break-word"],
+ willChange: [
+ "auto",
+ "scroll-position",
+ "contents",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ wordBreak: [
+ "normal",
+ "break-all",
+ "keep-all",
+ "break-word",
+ "initial",
+ "inherit",
+ "unset",
+ ],
+ wordSpacing: ["normal", "initial", "inherit", "unset"],
+ wordWrap: ["normal", "break-word", "initial", "inherit", "unset"],
writingMode: [
"horizontal-tb",
"vertical-rl",
"vertical-lr",
"sideways-rl",
"sideways-lr",
+ "initial",
+ "inherit",
+ "unset",
],
- zIndex: ["auto"],
+ zIndex: ["auto", "initial", "inherit", "unset"],
} as const;
diff --git a/packages/css-data/tsconfig.json b/packages/css-data/tsconfig.json
index f1a42e1669..054917c1cb 100644
--- a/packages/css-data/tsconfig.json
+++ b/packages/css-data/tsconfig.json
@@ -1,11 +1,10 @@
{
"extends": "@webstudio-is/tsconfig/base.json",
- "include": ["src"],
+ "include": ["src", "bin"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
"baseUrl": ".",
- "outDir": "./lib",
- "rootDir": "./src"
+ "outDir": "./lib"
}
}