Repository navigation
Commit 16b3d16
authored
Fix visual regression false positives due to UUID truncation race (#3407)
Canvas measureText uses fallback font metrics until the web font loads,
and the font swap doesn't necessarily resize the container, so the
truncation stayed computed against the fallback font. This made
truncated UUIDs nondeterministic, which showed up as false positives in
the visual regression suite.1 parent a64d548 commit 16b3d16
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
0 commit comments