Plot doesn't appear in Quarto with Weasyprint

I want to use weasyprint with quarto but the plot doesn't display.
This display the plot

---
title: "Test 1"
author: "Komlan"
format: pdf
---

But this no

---
title: "Test 2"
author: "Komlan"
format:
  pdf:
    css: report.css
    pdf-engine: weasyprint
---

test1.pdf (23.4 KB)
test2.pdf (15.2 KB)