diff --git a/scripts/build_benchmark_report.py b/scripts/build_benchmark_report.py index 0558437f..d01c4a91 100644 --- a/scripts/build_benchmark_report.py +++ b/scripts/build_benchmark_report.py @@ -364,6 +364,29 @@ def _report_css() -> str: color: #5e6f76; margin-bottom: 0; } +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } +} + +@media print { + * { + -webkit-print-color-adjust: exact !important; + print-color-adjust: exact !important; + } + body { + background: #ffffff; + } + .report-section, + .metric-card, + .table-wrap { + break-inside: avoid; + } +} """