mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-10-30 08:37:56 +09:00
Here added new utility for builder to support parsing css fragments in style controls like background, transition, shadows etc. The idea is to use regular parseCss where possible and fallback to specified property parsing. This way we do not need to strip property name manually and can always have shorthands expanded in result. Also user can paste multiple properties at once like background-color and background-image when describe gradient. <img width="266" alt="Screenshot 2024-07-11 at 16 38 06" src="https://github.com/webstudio-is/webstudio/assets/5635476/8d3b8454-0f8a-48b2-adbd-389a28993e3a">