Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ This is the reusable content component layer.
## `src/styles/`

- `global.css`: Global styles, theme variables, slide layout, reusable block styling, top-right abstract mark styling, and export canvas styling.
- Avoid modern CSS color functions in export-visible pseudo-elements because `html2canvas` cannot reliably parse computed values such as `color(srgb ...)`; use `rgb(...)`, `rgba(...)`, or hex instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The restriction on modern CSS color functions should be applied to all export-visible elements, not just pseudo-elements. While exportPdf.js attempts to normalize color() functions for standard elements, it does not currently handle color-mix() (which is used in .slide-canvas in global.css) or other modern syntaxes like oklch(). Since html2canvas cannot reliably parse these computed values, it is safer to avoid them in any content intended for export.

Suggested change
- Avoid modern CSS color functions in export-visible pseudo-elements because `html2canvas` cannot reliably parse computed values such as `color(srgb ...)`; use `rgb(...)`, `rgba(...)`, or hex instead.
- Avoid modern CSS color functions (such as `color()`, `color-mix()`, or `oklch()`) in export-visible content because `html2canvas` cannot reliably parse these computed values; use `rgb(...)`, `rgba(...)`, or hex instead.

- Avoid small standalone SVG connector graphics in export-visible slide content because `html2canvas` may drop them during PDF export; prefer full-region SVG overlays with paths positioned in the shared viewBox.

Theme styling is mainly controlled through CSS variables:

Expand Down
Loading