Commit 8be7680
committed
fix: work around Chromium addPath + roundRect evenodd bug
Path2D.addPath() with a roundRect sub-path breaks the evenodd fill
rule in Chromium, causing padding and margin ring fills to render as
empty. Build both sub-paths directly on the same Path2D instead.
Extract appendBoundsToPath as the shared primitive so buildBoundsPath
and buildRingPath both delegate to it without duplicating logic.1 parent a481586 commit 8be7680
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
333 | 336 | | |
334 | | - | |
335 | | - | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
342 | 349 | | |
343 | 350 | | |
344 | 351 | | |
345 | 352 | | |
346 | 353 | | |
347 | | - | |
348 | | - | |
| 354 | + | |
| 355 | + | |
349 | 356 | | |
350 | 357 | | |
351 | 358 | | |
| |||
0 commit comments