Skip to content

[pull] main from webstudio-is:main#186

Merged
pull[bot] merged 1 commit into
code:mainfrom
webstudio-is:main
May 14, 2026
Merged

[pull] main from webstudio-is:main#186
pull[bot] merged 1 commit into
code:mainfrom
webstudio-is:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 14, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

## 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.
@pull pull Bot locked and limited conversation to collaborators May 14, 2026
@pull pull Bot added the ⤵️ pull label May 14, 2026
@pull pull Bot merged commit 976ffd3 into code:main May 14, 2026
@pull pull Bot temporarily deployed to development May 14, 2026 21:02 Inactive
@pull pull Bot deployed to development May 14, 2026 21:02 Active
@pull pull Bot had a problem deploying to development May 14, 2026 21:02 Failure
@pull pull Bot temporarily deployed to development May 14, 2026 21:02 Inactive
@pull pull Bot temporarily deployed to development May 14, 2026 21:02 Inactive
@pull pull Bot had a problem deploying to development May 14, 2026 21:02 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant