Skip to content

Commit 34bb014

Browse files
committed
refactor(grille): remove relics from old background-based rendering model
print-color-adjust: exact was added to force browsers to print background- color grid lines. Now that grid lines are CSS borders, which always print, this property is redundant. container-type: inline-size on section-rows was added to make cqi units resolve correctly for bar sizing. Bars now use 100% of the row width instead, so the container query context is no longer needed.
1 parent 0e48548 commit 34bb014

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • packages/grigson-grille-harmonique-renderer/src

packages/grigson-grille-harmonique-renderer/src/styles.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ export function getGrilleStyles(typeface: string = 'sans'): string {
1414
return `
1515
/* ── Variables ── */
1616
[part~="chart"] {
17-
-webkit-print-color-adjust: exact;
18-
print-color-adjust: exact;
1917
--cg-grid-width: 2px;
2018
--cg-diag-width: 0.5px;
2119
--cg-diag-style: solid;
@@ -36,12 +34,9 @@ export function getGrilleStyles(typeface: string = 'sans'): string {
3634
}
3735
3836
/* ── Section rows ── */
39-
/* No background here — the row carries its own background so incomplete
40-
rows don't extend the coloured area into the empty trailing space. */
4137
[part~="section-rows"] {
4238
display: flex;
4339
flex-direction: column;
44-
container-type: inline-size;
4540
flex: 1;
4641
}
4742

0 commit comments

Comments
 (0)