Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error allowing invalid fontWeight values #1

Closed
wants to merge 1 commit into from
Closed

Conversation

rockyroed
Copy link
Owner

@rockyroed rockyroed commented Feb 22, 2025

What: Fixes error allowing invalid fontWeight values

Why: The fontweight property of CSSObject allows invalid values (e.g. 'wrong'). It's expected behavior is to show an error.

How: Add validFontWeight type to StrictCSSProperties, declaring which values are only allowed.

Checklist:

  • Documentation N/A
  • Tests
  • Code complete
  • Changeset

@rockyroed rockyroed closed this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant