mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-01 17:51:55 +09:00
## Summary - Preserve browser-valid CSS math values during CSS value parsing when `css-tree` can parse the value but cannot fully validate the property syntax. - Fix pasted HTML/imported inline styles like nested `clamp()` + `calc()` font sizes being marked invalid. - Keep malformed math values and numeric functions in non-numeric properties invalid. - Add regression coverage for CSS value parsing and HTML paste/import behavior. ## Testing - `pnpm --filter @webstudio-is/css-data test src/parse-css-value.test.ts` - `pnpm --filter @webstudio-is/builder test app/shared/html.test.tsx app/shared/tailwind/tailwind.test.tsx` ## Notes This prevents valid pasted CSS math expressions from becoming invalid style values and crashing the builder on import.
CSS Data
Generated configs and collections from mdn-data into consumable form.