Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background color with gradient isn't working when generating via Mobile #112

Open
aningbo opened this issue Dec 1, 2019 · 0 comments
Open

Comments

@aningbo
Copy link

aningbo commented Dec 1, 2019

Whenever I generate PDF using my iPhone XS, the background color doesn't load. It just gives a blank white background!

This the CSS codes I tried but both shows blank background color!!

Note: This happens ONLY when I'm generating the PDF on my iPhone XS. Didn't test with any other phone. It works on my desktop version though as it should.

.thankyou__box.green {
  background: rgb(175,212,100);
  background: linear-gradient(90deg, rgba(175,212,100,1) 0%, #fff 100%);
  background: -webkit-linear-gradient(90deg, rgba(175,212,100,1) 0%, #fff 100%);
  -webkit-print-color-adjust: exact;
}
.thankyou__box.grey {
  background: #cbcbcb;
  background: linear-gradient(90deg, #fff 0%, #cbcbcb 100%);
  background: -webkit-linear-gradient(90deg, #fff 0%, #cbcbcb 100%);
  -webkit-print-color-adjust: exact;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant