You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed on recent versions of WeasyPrint linear gradient backgrounds do not appear. Using linear-gradient or repeating-linear-gradient gives the same empty background result.
test.html:
<!DOCTYPE html>
<html lang="en-CA">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="test.css">
</head>
<body>
<section>
<p class="important">[p] This is an important note or a warning about a hazard.</p>
</section>
</body>
</html>
We assume that colors are RGB colors when we create gradients. It should be possible to handle "easy" cases, when all the colors use the same color spaces in a gradient (and that’s the case for you). I’m not sure that there’s a solution in PDF when color spaces are mixed.
Hi, I noticed on recent versions of WeasyPrint linear gradient backgrounds do not appear. Using linear-gradient or repeating-linear-gradient gives the same empty background result.
test.html
:test.css:
cat test.html | weasyprint -s test.css - test.pdf
WeasyPrint >= 63.0:
![Image](https://private-user-images.githubusercontent.com/22982038/406042942-648f6ac6-203d-4378-9967-d24a87ceaeac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjE4MDMsIm5iZiI6MTczOTMyMTUwMywicGF0aCI6Ii8yMjk4MjAzOC80MDYwNDI5NDItNjQ4ZjZhYzYtMjAzZC00Mzc4LTk5NjctZDI0YTg3Y2VhZWFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAwNTE0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2MDg0NGYwNDkxMDcxYzEzYmJmMjcxM2I3YjJiMzJmOGEzZTk2MzE1YTk4NzM5NjhkMzAwNjNjMzk4MDAzODYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3Wo4ff9ZhkEIUfQBeqD8GrOEnc0c_ngpbvBWcn9XMMM)
WeasyPrint 62.3:
![Image](https://private-user-images.githubusercontent.com/22982038/406043432-1136613b-5431-43e2-ac2d-713cca749777.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjE4MDMsIm5iZiI6MTczOTMyMTUwMywicGF0aCI6Ii8yMjk4MjAzOC80MDYwNDM0MzItMTEzNjYxM2ItNTQzMS00M2UyLWFjMmQtNzEzY2NhNzQ5Nzc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAwNTE0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2M2ZjYjg5NzVkMGIxODQzMGZmNmRjZWFlMzZiMWFjNGI3YmNlYWZiZjE0NjM5N2JhMTNiNmEzZjI0YjM4NDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GmLs_Tm1cpVZ8Zxx-lOvouwRXKL6PWA_WLOSgHaWV4o)
The text was updated successfully, but these errors were encountered: