Skip to content

Conversation

@tran-simon
Copy link

Description of changes:

add optional chaining for contentBoxSize and borderBoxSize array.
prevents TypeError when contentBoxSize or borderBoxSize arrays are empty in certain browser implementations or edge cases.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

prevents TypeError when `contentBoxSize` or `borderBoxSize` arrays
are empty in certain browser implementation or edge cases.
@tran-simon tran-simon requested a review from a team as a code owner November 26, 2025 23:26
@tran-simon tran-simon requested review from Harsh-Anand-Singh and removed request for a team November 26, 2025 23:26
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.40%. Comparing base (954d4ec) to head (3cfa380).

Files with missing lines Patch % Lines
.../internal/container-queries/use-resize-observer.ts 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
- Coverage   98.82%   98.40%   -0.43%     
==========================================
  Files          40       40              
  Lines         937      941       +4     
  Branches      263      255       -8     
==========================================
  Hits          926      926              
- Misses         11       15       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants