Commit 8ba29a4
committed
Fix ResizeObserver compatibility for test environments
- Add check for ResizeObserver availability before using it
- Fallback to simple width measurement when ResizeObserver is not available
- Improve fallback chain for borderBoxSize/contentBoxSize measurements
- Ensures tests pass in environments without ResizeObserver support1 parent bdc3a90 commit 8ba29a4
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | | - | |
63 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
| |||
0 commit comments