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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Parse properties initial value (#726)
Bogdan Chadkin5a2b3b8eecff
diff --git a/packages/css-data/bin/mdn-data.ts b/packages/css-data/bin/mdn-data.tsindex f8f12cbc0d..b4d3334130 100755--- a/packages/css-data/bin/mdn-data.ts+++ b/packages/css-data/bin/mdn-data.ts@@ -1,4 +1,4 @@-import { definitionSyntax, type DSNode } from "css-tree";+import { parse, definitionSyntax, type DSNode } from "css-tree";import properties from "mdn-data/css/properties.json";import units from "mdn-data/css/units.json";import syntaxes from "mdn-data/css/syntaxes.json";@@ -6,7 +6,7 @@ import { popularityIndex } from "../src/popularity-index";import camelCase from "camelcase";import * as fs from "fs";import * as path from "path";-import type { StyleValue } from "../src";+import type { StyleValue, Unit } from "../src";type Property = keyof typeof properties;type Value = typeof properties[Property] & { alsoAppliesTo?: Array<string> };@@ -27,26 +27,6 @@ const normalizedValues = {"font-size": inheritValue,"line-height": inheritValue,color: inheritValue,- // https://github.com/mdn/data/issues/554- // @todo remove once fixed in mdn data- appearance: {- type: "keyword",- value: "none",- },- // https://github.com/mdn/data/issues/555- // @todo remove once fixed- "background-position-x": {- type: "unit",- value: 0,- unit: "%",- },- // https://github.com/mdn/data/issues/555- // @todo remove once fixed- "background-position-y": {- type: "unit",- value: 0,- unit: "%",- },"column-gap": {type: "unit",value: 0,@@ -57,12 +37,62 @@ const normalizedValues = {value: 0,unit: "px",},- // https://github.com/mdn/data/issues/556- // @todo remove once fixed"background-size": autoValue,"text-size-adjust": autoValue,} as const;+const parseInitialValue = (property: string, value: string): StyleValue => {+ // Our default values hardcoded because no single standard+ if (property in normalizedValues) {+ return normalizedValues[property as keyof typeof normalizedValues];+ }+ const ast = parse(value, { context: "value" });+ if (ast.type !== "Value") {+ throw Error(`Unknown parsed type ${ast.type}`);+ }++ // more than 2 values consider as keyword+ if (ast.children.first !== ast.children.last) {+ return {+ type: "keyword",+ value: value,+ };+ }++ const node = ast.children.first;+ if (node?.type === "Identifier") {+ return {+ type: "keyword",+ value: node.name,+ };+ }+ if (node?.type === "Number") {+ // @todo distinct unitless and 0px+ const unit: Unit = "px";+ return {+ type: "unit",+ unit,+ value: Number(node.value),+ };+ }+ if (node?.type === "Percentage") {+ return {+ type: "unit",+ unit: "%",+ value: Number(node.value),+ };+ }+ if (node?.type === "Dimension") {+ return {+ type: "unit",+ unit: node.unit as Unit,+ value: Number(node.value),+ };+ }++ throw Error(`Cannot find initial for ${property}`);+};+type FilteredProperties = { [property in Property]: Value };const filteredProperties: FilteredProperties = (() => {@@ -125,38 +155,9 @@ let property: Property;for (property in filteredProperties) {const config = filteredProperties[property];- let initial: StyleValue;-- // Our default values hardcoded because no single standard- if (property in normalizedValues) {- initial = normalizedValues[property as keyof typeof normalizedValues];- } else {- // @todo use css-tree instead of this custom logic which is likely wrong- // Complex initial values like "50% 50% 0" can't be parsed to a number- const number =- typeof config.initial === "string"- ? config.initial.includes(" ")- ? NaN- : parseFloat(config.initial)- : NaN;-- if (isNaN(number) && typeof config.initial === "string") {- initial = {- type: "keyword",- value: config.initial,- };- } else {- initial = {- type: "unit",- unit: "px",- value: number,- };- }- }-propertiesData[camelCase(property)] = {inherited: config.inherited,- initial,+ initial: parseInitialValue(property, config.initial),popularity:popularityIndex.find((data) => data.property === property)?.dayPercentage || 0,diff --git a/packages/css-data/package.json b/packages/css-data/package.jsonindex 37c4e44bb6..b7fdcff069 100644--- a/packages/css-data/package.json+++ b/packages/css-data/package.json@@ -21,7 +21,7 @@"@webstudio-is/asset-uploader": "workspace:^","camelcase": "^6.3.0","css-tree": "^2.3.0",- "mdn-data": "2.0.23",+ "mdn-data": "2.0.30","typescript": "4.7.4","zod": "^3.19.1"},diff --git a/packages/css-data/src/__generated__/keyword-values.ts b/packages/css-data/src/__generated__/keyword-values.tsindex 6c1be388c9..d0e39790b7 100644--- a/packages/css-data/src/__generated__/keyword-values.ts+++ b/packages/css-data/src/__generated__/keyword-values.ts@@ -2,6 +2,7 @@export const keywordValues = {accentColor: ["auto",+ "none","transparent","aliceblue","antiquewhite",@@ -268,6 +269,16 @@ export const keywordValues = {"start","end",],+ animationTimeline: [+ "auto",+ "none",+ "block",+ "inline",+ "vertical",+ "horizontal",+ "root",+ "nearest",+ ],appearance: ["none","auto",@@ -490,6 +501,7 @@ export const keywordValues = {],backgroundClip: ["border-box", "padding-box", "content-box"],backgroundColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -881,6 +893,7 @@ export const keywordValues = {blockOverflow: ["clip", "ellipsis"],blockSize: ["auto", "min-content", "max-content", "fit-content"],borderBlockColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -1074,6 +1087,7 @@ export const keywordValues = {],borderBlockWidth: ["thin", "medium", "thick"],borderBlockEndColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -1267,6 +1281,7 @@ export const keywordValues = {],borderBlockEndWidth: ["thin", "medium", "thick"],borderBlockStartColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -1460,6 +1475,7 @@ export const keywordValues = {],borderBlockStartWidth: ["thin", "medium", "thick"],borderBottomColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -1854,6 +1870,7 @@ export const keywordValues = {],borderImageWidth: ["auto"],borderInlineColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -2047,6 +2064,7 @@ export const keywordValues = {],borderInlineWidth: ["thin", "medium", "thick"],borderInlineEndColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -2240,6 +2258,7 @@ export const keywordValues = {],borderInlineEndWidth: ["thin", "medium", "thick"],borderInlineStartColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -2433,6 +2452,7 @@ export const keywordValues = {],borderInlineStartWidth: ["thin", "medium", "thick"],borderLeftColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -2626,6 +2646,7 @@ export const keywordValues = {],borderLeftWidth: ["thin", "medium", "thick"],borderRightColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -2819,6 +2840,7 @@ export const keywordValues = {],borderRightWidth: ["thin", "medium", "thick"],borderTopColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -3239,6 +3261,7 @@ export const keywordValues = {],caretColor: ["auto",+ "none","transparent","aliceblue","antiquewhite",@@ -3418,6 +3441,7 @@ export const keywordValues = {"WindowFrame","WindowText",],+ caretShape: ["auto", "bar", "block", "underscore"],clear: ["none", "left", "right", "both", "inline-start", "inline-end"],clip: ["auto"],clipPath: [@@ -3442,6 +3466,7 @@ export const keywordValues = {"none",],color: [+ "none","transparent","aliceblue","antiquewhite",@@ -3621,12 +3646,13 @@ export const keywordValues = {"WindowFrame","WindowText",],- colorAdjust: ["economy", "exact"],- colorScheme: ["normal", "light", "dark"],+ printColorAdjust: ["economy", "exact"],+ colorScheme: ["normal", "light", "dark", "only"],columnCount: ["auto"],columnFill: ["auto", "balance", "balance-all"],columnGap: ["normal"],columnRuleColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -3821,7 +3847,20 @@ export const keywordValues = {columnRuleWidth: ["thin", "medium", "thick"],columnSpan: ["none", "all"],columnWidth: ["auto"],- contain: ["none", "strict", "content", "size", "layout", "style", "paint"],+ contain: [+ "none",+ "strict",+ "content",+ "size",+ "inline-size",+ "layout",+ "style",+ "paint",+ ],+ containIntrinsicBlockSize: ["none", "auto"],+ containIntrinsicHeight: ["none", "auto"],+ containIntrinsicInlineSize: ["none", "auto"],+ containIntrinsicWidth: ["none", "auto"],content: ["normal","none",@@ -4462,6 +4501,7 @@ export const keywordValues = {],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"],@@ -4469,11 +4509,9 @@ export const keywordValues = {initialLetter: ["normal"],initialLetterAlign: ["auto", "alphabetic", "hanging", "ideographic"],inlineSize: ["auto", "min-content", "max-content", "fit-content"],- inset: ["auto"],- insetBlock: ["auto"],+ inputSecurity: ["auto", "none"],insetBlockEnd: ["auto"],insetBlockStart: ["auto"],- insetInline: ["auto"],insetInlineEnd: ["auto"],insetInlineStart: ["auto"],isolation: ["auto", "isolate"],@@ -4555,6 +4593,7 @@ export const keywordValues = {listStyleImage: ["ltr","rtl",+ "none","transparent","aliceblue","antiquewhite",@@ -4747,15 +4786,12 @@ export const keywordValues = {"at","center","from",- "none",],listStylePosition: ["inside", "outside"],listStyleType: ["none"],- marginBlock: ["auto"],marginBlockEnd: ["auto"],marginBlockStart: ["auto"],marginBottom: ["auto"],- marginInline: ["auto"],marginInlineEnd: ["auto"],marginInlineStart: ["auto"],marginLeft: ["auto"],@@ -5186,6 +5222,8 @@ export const keywordValues = {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"],@@ -5213,6 +5251,7 @@ export const keywordValues = {"saturation","color","luminosity",+ "plus-lighter",],objectFit: ["fill", "contain", "cover", "none", "scale-down"],objectPosition: ["left", "center", "right", "top", "bottom"],@@ -5244,6 +5283,7 @@ export const keywordValues = {offsetPosition: ["auto", "left", "center", "right", "top", "bottom"],offsetRotate: ["auto", "reverse"],outlineColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -5473,25 +5513,6 @@ export const keywordValues = {paintOrder: ["normal", "fill", "stroke", "markers"],perspective: ["none"],perspectiveOrigin: ["left", "center", "right", "top", "bottom"],- placeContent: [- "normal",- "first",- "last",- "baseline",- "space-between",- "space-around",- "space-evenly",- "stretch",- "unsafe",- "safe",- "center",- "start",- "end",- "flex-start",- "flex-end",- "left",- "right",- ],pointerEvents: ["auto","none",@@ -5517,6 +5538,7 @@ export const keywordValues = {scale: ["none"],scrollbarColor: ["auto",+ "none","transparent","aliceblue","antiquewhite",@@ -5699,12 +5721,9 @@ export const keywordValues = {scrollbarGutter: ["auto", "stable", "both-edges"],scrollbarWidth: ["auto", "thin", "none"],scrollBehavior: ["auto", "smooth"],- scrollPadding: ["auto"],- scrollPaddingBlock: ["auto"],scrollPaddingBlockStart: ["auto"],scrollPaddingBlockEnd: ["auto"],scrollPaddingBottom: ["auto"],- scrollPaddingInline: ["auto"],scrollPaddingInlineStart: ["auto"],scrollPaddingInlineEnd: ["auto"],scrollPaddingLeft: ["auto"],@@ -5722,6 +5741,8 @@ export const keywordValues = {"mandatory","proximity",],+ scrollTimelineAxis: ["block", "inline", "vertical", "horizontal"],+ scrollTimelineName: ["none"],shapeOutside: ["none","border-box",@@ -5939,6 +5960,7 @@ export const keywordValues = {textAlignLast: ["auto", "start", "end", "left", "right", "center", "justify"],textCombineUpright: ["none", "all", "digits"],textDecorationColor: [+ "none","transparent","aliceblue","antiquewhite",@@ -6140,6 +6162,7 @@ export const keywordValues = {textDecorationStyle: ["solid", "double", "dotted", "dashed", "wavy"],textDecorationThickness: ["auto", "from-font"],textEmphasisColor: [+ "none","transparent","aliceblue","antiquewhite",diff --git a/packages/css-data/src/__generated__/properties.ts b/packages/css-data/src/__generated__/properties.tsindex 6b4143bd7e..ec72f361cd 100644--- a/packages/css-data/src/__generated__/properties.ts+++ b/packages/css-data/src/__generated__/properties.ts@@ -45,11 +45,20 @@ export const properties = {popularity: 0,appliesTo: "gridContainersWithMasonryLayoutInTheirBlockAxis",},+ animationComposition: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "replace",+ },+ popularity: 0,+ appliesTo: "allElements",+ },animationDelay: {inherited: false,initial: {type: "unit",- unit: "px",+ unit: "s",value: 0,},popularity: 0.27086537,@@ -68,7 +77,7 @@ export const properties = {inherited: false,initial: {type: "unit",- unit: "px",+ unit: "s",value: 0,},popularity: 0.4062731,@@ -120,6 +129,15 @@ export const properties = {popularity: 0.41317969,appliesTo: "allElementsAndPseudos",},+ animationTimeline: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "auto",+ },+ popularity: 4e-8,+ appliesTo: "allElements",+ },appearance: {inherited: false,initial: {@@ -214,8 +232,8 @@ export const properties = {inherited: false,initial: {type: "unit",- value: 0,unit: "%",+ value: 0,},popularity: 0.08951679,appliesTo: "allElements",@@ -224,8 +242,8 @@ export const properties = {inherited: false,initial: {type: "unit",- value: 0,unit: "%",+ value: 0,},popularity: 0.06759137,appliesTo: "allElements",@@ -446,7 +464,7 @@ export const properties = {inherited: false,initial: {type: "unit",- unit: "px",+ unit: "%",value: 100,},popularity: 0.0093669,@@ -764,6 +782,15 @@ export const properties = {popularity: 0.05410129,appliesTo: "allElements",},+ caretShape: {+ inherited: true,+ initial: {+ type: "keyword",+ value: "auto",+ },+ popularity: 0,+ appliesTo: "elementsThatAcceptInput",+ },clear: {inherited: false,initial: {@@ -798,9 +825,9 @@ export const properties = {value: "inherit",},popularity: 0.90791486,- appliesTo: "allElements",+ appliesTo: "allElementsAndText",},- colorAdjust: {+ printColorAdjust: {inherited: true,initial: {type: "keyword",@@ -900,6 +927,42 @@ export const properties = {popularity: 0.17189203,appliesTo: "allElements",},+ containIntrinsicBlockSize: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "none",+ },+ popularity: 0,+ appliesTo: "elementsForWhichSizeContainmentCanApply",+ },+ containIntrinsicHeight: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "none",+ },+ popularity: 0,+ appliesTo: "elementsForWhichSizeContainmentCanApply",+ },+ containIntrinsicInlineSize: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "none",+ },+ popularity: 0,+ appliesTo: "elementsForWhichSizeContainmentCanApply",+ },+ containIntrinsicWidth: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "none",+ },+ popularity: 0,+ appliesTo: "elementsForWhichSizeContainmentCanApply",+ },content: {inherited: false,initial: {@@ -1334,6 +1397,15 @@ export const properties = {popularity: 0.93056784,appliesTo: "allElementsButNonReplacedAndTableColumns",},+ hyphenateCharacter: {+ inherited: true,+ initial: {+ type: "keyword",+ value: "auto",+ },+ popularity: 0,+ appliesTo: "allElements",+ },hyphens: {inherited: true,initial: {@@ -1365,7 +1437,7 @@ export const properties = {inherited: true,initial: {type: "unit",- unit: "px",+ unit: "dppx",value: 1,},popularity: 0,@@ -1398,23 +1470,14 @@ export const properties = {popularity: 0.00381706,appliesTo: "sameAsWidthAndHeight",},- inset: {- inherited: false,- initial: {- type: "keyword",- value: "auto",- },- popularity: 0.02156551,- appliesTo: "positionedElements",- },- insetBlock: {+ inputSecurity: {inherited: false,initial: {type: "keyword",value: "auto",},- popularity: 0.00014881,- appliesTo: "positionedElements",+ popularity: 0,+ appliesTo: "sensitiveTextInputs",},insetBlockEnd: {inherited: false,@@ -1434,15 +1497,6 @@ export const properties = {popularity: 0.00036346,appliesTo: "positionedElements",},- insetInline: {- inherited: false,- initial: {- type: "keyword",- value: "auto",- },- popularity: 0.00021379,- appliesTo: "positionedElements",- },insetInlineEnd: {inherited: false,initial: {@@ -1588,16 +1642,6 @@ export const properties = {popularity: 0.50305363,appliesTo: "listItems",},- marginBlock: {- inherited: false,- initial: {- type: "unit",- unit: "px",- value: 0,- },- popularity: 0.00120447,- appliesTo: "sameAsMargin",- },marginBlockEnd: {inherited: false,initial: {@@ -1628,16 +1672,6 @@ export const properties = {popularity: 0.84497162,appliesTo: "allElementsExceptTableDisplayTypes",},- marginInline: {- inherited: false,- initial: {- type: "unit",- unit: "px",- value: 0,- },- popularity: 0.00136801,- appliesTo: "sameAsMargin",- },marginInlineEnd: {inherited: false,initial: {@@ -1811,7 +1845,7 @@ export const properties = {inherited: false,initial: {type: "keyword",- value: "no-repeat",+ value: "repeat",},popularity: 0,appliesTo: "allElementsSVGContainerElements",@@ -1843,6 +1877,25 @@ export const properties = {popularity: 0,appliesTo: "gridContainersWithMasonryLayout",},+ mathDepth: {+ inherited: true,+ initial: {+ type: "unit",+ unit: "px",+ value: 0,+ },+ popularity: 3e-8,+ appliesTo: "allElements",+ },+ mathShift: {+ inherited: true,+ initial: {+ type: "keyword",+ value: "normal",+ },+ popularity: 3e-8,+ appliesTo: "allElements",+ },mathStyle: {inherited: true,initial: {@@ -1855,9 +1908,8 @@ export const properties = {maxBlockSize: {inherited: false,initial: {- type: "unit",- unit: "px",- value: 0,+ type: "keyword",+ value: "none",},popularity: 0.00064707,appliesTo: "sameAsWidthAndHeight",@@ -1874,9 +1926,8 @@ export const properties = {maxInlineSize: {inherited: false,initial: {- type: "unit",- unit: "px",- value: 0,+ type: "keyword",+ value: "none",},popularity: 0.00062504,appliesTo: "sameAsWidthAndHeight",@@ -2195,16 +2246,6 @@ export const properties = {popularity: 0,appliesTo: "nonReplacedBlockAndInlineBlockElements",},- paddingBlock: {- inherited: false,- initial: {- type: "unit",- unit: "px",- value: 0,- },- popularity: 0.00094479,- appliesTo: "allElements",- },paddingBlockEnd: {inherited: false,initial: {@@ -2213,7 +2254,7 @@ export const properties = {value: 0,},popularity: 0.00269343,- appliesTo: "allElements",+ appliesTo: "allElementsExceptInternalTableDisplayTypes",},paddingBlockStart: {inherited: false,@@ -2223,7 +2264,7 @@ export const properties = {value: 0,},popularity: 0.00281718,- appliesTo: "allElements",+ appliesTo: "allElementsExceptInternalTableDisplayTypes",},paddingBottom: {inherited: false,@@ -2235,16 +2276,6 @@ export const properties = {popularity: 0.80249482,appliesTo: "allElementsExceptInternalTableDisplayTypes",},- paddingInline: {- inherited: false,- initial: {- type: "unit",- unit: "px",- value: 0,- },- popularity: 0.01735028,- appliesTo: "allElements",- },paddingInlineEnd: {inherited: false,initial: {@@ -2253,7 +2284,7 @@ export const properties = {value: 0,},popularity: 0.02914235,- appliesTo: "allElements",+ appliesTo: "allElementsExceptInternalTableDisplayTypes",},paddingInlineStart: {inherited: false,@@ -2263,7 +2294,7 @@ export const properties = {value: 0,},popularity: 0.03734959,- appliesTo: "allElements",+ appliesTo: "allElementsExceptInternalTableDisplayTypes",},paddingLeft: {inherited: false,@@ -2349,15 +2380,6 @@ export const properties = {popularity: 0.03597136,appliesTo: "transformableElements",},- placeContent: {- inherited: false,- initial: {- type: "keyword",- value: "normal",- },- popularity: 0.00389319,- appliesTo: "multilineFlexContainers",- },pointerEvents: {inherited: true,initial: {@@ -2494,26 +2516,6 @@ export const properties = {popularity: 0.06855196,appliesTo: "scrollingBoxes",},- scrollMargin: {- inherited: false,- initial: {- type: "unit",- unit: "px",- value: 0,- },- popularity: 0,- appliesTo: "allElements",- },- scrollMarginBlock: {- inherited: false,- initial: {- type: "unit",- unit: "px",- value: 0,- },- popularity: 0,- appliesTo: "allElements",- },scrollMarginBlockStart: {inherited: false,initial: {@@ -2544,16 +2546,6 @@ export const properties = {popularity: 0,appliesTo: "allElements",},- scrollMarginInline: {- inherited: false,- initial: {- type: "unit",- unit: "px",- value: 0,- },- popularity: 0,- appliesTo: "allElements",- },scrollMarginInlineStart: {inherited: false,initial: {@@ -2604,24 +2596,6 @@ export const properties = {popularity: 0,appliesTo: "allElements",},- scrollPadding: {- inherited: false,- initial: {- type: "keyword",- value: "auto",- },- popularity: 0.00684182,- appliesTo: "scrollContainers",- },- scrollPaddingBlock: {- inherited: false,- initial: {- type: "keyword",- value: "auto",- },- popularity: 0.00011157,- appliesTo: "scrollContainers",- },scrollPaddingBlockStart: {inherited: false,initial: {@@ -2649,15 +2623,6 @@ export const properties = {popularity: 0.00046042,appliesTo: "scrollContainers",},- scrollPaddingInline: {- inherited: false,- initial: {- type: "keyword",- value: "auto",- },- popularity: 0.00030929,- appliesTo: "scrollContainers",- },scrollPaddingInlineStart: {inherited: false,initial: {@@ -2730,6 +2695,24 @@ export const properties = {popularity: 0.05778112,appliesTo: "allElements",},+ scrollTimelineAxis: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "block",+ },+ popularity: 0,+ appliesTo: "scrollContainers",+ },+ scrollTimelineName: {+ inherited: false,+ initial: {+ type: "keyword",+ value: "none",+ },+ popularity: 0,+ appliesTo: "scrollContainers",+ },shapeImageThreshold: {inherited: false,initial: {@@ -3036,7 +3019,7 @@ export const properties = {inherited: false,initial: {type: "unit",- unit: "px",+ unit: "s",value: 0,},popularity: 0.26633596,@@ -3046,7 +3029,7 @@ export const properties = {inherited: false,initial: {type: "unit",- unit: "px",+ unit: "s",value: 0,},popularity: 0.27645681,diff --git a/packages/css-data/src/__generated__/units.ts b/packages/css-data/src/__generated__/units.tsindex 6fb8a4f2f4..a0d157738e 100644--- a/packages/css-data/src/__generated__/units.ts+++ b/packages/css-data/src/__generated__/units.ts@@ -1,5 +1,6 @@// This file was generated by pnpm mdn-dataexport const units = [+ "cap","ch","cm","deg",@@ -11,6 +12,7 @@ export const units = ["fr","grad","Hz",+ "ic","in","kHz","mm",diff --git a/packages/react-sdk/src/css/categories.ts b/packages/react-sdk/src/css/categories.tsindex d13a337d1f..7c229b3d9e 100644--- a/packages/react-sdk/src/css/categories.ts+++ b/packages/react-sdk/src/css/categories.ts@@ -10,7 +10,6 @@ const layout = ["justifyContent","alignContent",// Grid- "placeContent","justifyItems","rowGap","columnGap",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4a37374f67..d874be5fae 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -303,7 +303,7 @@ importers:'@webstudio-is/tsconfig': workspace:^camelcase: ^6.3.0css-tree: ^2.3.0- mdn-data: 2.0.23+ mdn-data: 2.0.30typescript: 4.7.4zod: ^3.19.1devDependencies:@@ -313,7 +313,7 @@ importers:'@webstudio-is/tsconfig': link:../tsconfigcamelcase: 6.3.0css-tree: 2.3.0- mdn-data: 2.0.23+ mdn-data: 2.0.30typescript: 4.7.4zod: 3.19.1@@ -16854,10 +16854,6 @@ packages:resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==}dev: false- /mdn-data/2.0.23:- resolution: {integrity: sha512-IonVb7pfla2U4zW8rc7XGrtgq11BvYeCxWN8HS+KFBnLDE7XDK9AAMVhRuG6fj9BBsjc69Fqsp6WEActEdNTDQ==}- dev: true-/mdn-data/2.0.28:resolution: {integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==}dev: true