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

chartjs / Chart.js / 5481
97%

Build:
DEFAULT BRANCH: master
Ran 08 Feb 2019 06:11PM UTC
Jobs 1
Files 52
Run time 17min
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

pending completion
5481

push

travis-ci

simonbrunel
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%)

4287.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5481.1 08 Feb 2019 06:11PM UTC 0
96.34
Travis Job 5481.1
Source Files on build 5481
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5481
  • 55128f74 on github
  • Prev Build on master (#5480)
  • Next Build on master (#5489)
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