Commit 35a85c5
committed
fix(renderer-css): give each section its own grid in print for break-inside: avoid
Sections had an inline style="display: contents" which made break-inside:
avoid via ::part() ineffective — inline styles outrank external ::part()
rules, so the constraint was silently ignored.
Remove the redundant inline style (the CSS already sets display:contents).
Add a @media print block that promotes song-grid to display:block and each
section to its own CSS grid (using the same inherited --beat-cols /
--min-beat-width variables), with break-inside: avoid. Rows continue to
use subgrid, now referencing the section grid rather than song-grid.1 parent e2aad28 commit 35a85c5
3 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | | - | |
633 | 632 | | |
634 | 633 | | |
635 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
| 732 | + | |
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
353 | 370 | | |
354 | 371 | | |
0 commit comments