Commit cefa163
committed
Fix SVG text cutoff by removing global CSS wildcard
This bug took 40 hours to debug. The * { font-family } selector was overriding the hidden DOM elements used to measure SVG text width, causing the VM to calculate bounding boxes based on Helvetica instead of the target font.
I am genuinely disappointed that it was this simple.1 parent 6083d0e commit cefa163
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments