i want to have a frontcover that has the title of the book & the author name on top of it like:

i'm doing that with basic css using tailwind css that i found here:
@import url('https://fonts.googleapis.com/css?family=Nova+Flat');
.frontcover {
@apply relative text-white text-center;
& > h1 {
@apply text-5xl font-bold font-nova absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2;
}
& > span {
@apply text-3xl font-semibold font-nova absolute bottom-10 left-1/2 -translate-x-1/2 -translate-y-1/2;
}
}
this works perfectly on web.
but it gives a weird output using princexml.
i read prince docs & it supports translate so idk what's causing the error. the image looks cut. there is no title & author on top of it. the book width looks smaller.

my full reproducible code is available here → https://github.com/deadcoder0904/princexml-playground (you can see the pdf to see the output)
what's the issue & how do i solve it? does prince allow to have text on top of image or is it just not possible?
it was a bit tricky as it doesn't work exactly as the web.
here's the commit that worked → https://github.com/deadcoder0904/princexml-playground/commit/b84717e8ddb0ea72761efa15f6c8658cfbaeea73
index.html
styles/index.css
styles/base.css
styles/print.css
styles/screen.css
the
base.csscontains common styles with print & web.print.cssis responsible for the pdf cover image.and the
screen.cssis responsible for the web cover image although it can be improved.