Hi Team,
We recently upgraded from Bryntum Gantt 7.1.3 to 7.2.3 and encountered a breaking issue with our screenshot/image capture functionality that uses html2canvas.
Issue
After upgrading to 7.2.3, html2canvas completely fails to capture screenshots of any page containing the Bryntum Gantt component. The following error is thrown:
Error: Attempting to parse an unsupported color function "color"
at html2canvas.min.js
Root cause
Bryntum 7.2.3 appears to have introduced CSS Color Level 4 syntax (color() function) in its stylesheets — for example:
color(display-p3 0.22 0.51 0.82)
html2canvas does not rely on the browser to resolve styles — it re-parses all active CSS stylesheets using its own internal CSS parser. That parser does not support the color() function and throws an unhandled exception the moment it encounters one, aborting the entire capture process.
This was not an issue in 7.1.3, as the color() function was not present in those stylesheets.
Impact
Any application using html2canvas alongside Bryntum Gantt/Scheduler will silently break after upgrading to 7.2.3. Screenshot capture produces no output.
Workarounds we applied
We have applied two temporary workarounds on our side:
Temporarily disable stylesheets containing color( before calling html2canvas, then re-enable them immediately after the capture completes.
Patch html2canvas.min.js directly — modify the internal color parser to return a transparent fallback (0,0,0,0) instead of throwing on unsupported color functions.
Both approaches are fragile and introduce maintenance overhead, which is why we would prefer an upstream solution.
Questions / requests
Was the introduction of color() in 7.2.3 stylesheets intentional?
Is there a Bryntum-recommended approach for capturing a screenshot of the Gantt that avoids this conflict?
Would you consider providing a CSS fallback/compatibility option for environments that rely on html2canvas or similar DOM-to-canvas libraries?
This is particularly important for customers who do not have error monitoring (e.g. Sentry) in place and rely on screenshot-based exception reporting. The failure is silent — no visible error surfaces to end users — making it difficult to detect without explicit testing.
Thank you for your time.
Environment
Bryntum Gantt 7.1.3 → 7.2.3