• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chartjs / Chart.js / 5480 / 1
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 08 Feb 2019 05:22PM UTC
Files 52
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Feb 2019 05:17PM UTC coverage: 96.341% (+0.002%) from 96.339%
5480.1

push

travis-ci

web-flow
Move CSS in a separate file to be CSP-compliant (#6048)

In order to be compatible with any CSP, we need to prevent the automatic creation of the DOM 'style' element and offer our CSS as a separate file that can be manually loaded (`Chart.js` or `Chart.min.js`). Users can now opt-out the style injection using `Chart.platform.disableCSSInjection = true` (note that the style sheet is now injected on the first chart creation).

To prevent duplicating and maintaining the same CSS code at different places, move all these rules in `platform.dom.css` and write a minimal rollup plugin to inject that style as string in `platform.dom.js`. Additionally, this plugin extract the imported style in `./dist/Chart.js` and `./dist/Chart.min.js`.

2576 of 2940 branches covered (87.62%)

5134 of 5329 relevant lines covered (96.34%)

4285.37 hits per line

Source Files on job 5480.1
  • Tree
  • List 0
  • Changed 23
  • Source Changed 1
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5307
  • Travis Job 5480.1
  • 96f73445 on github
  • Prev Job for on master (#5474.1)
  • Next Job for on master (#5481.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc