WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

`aspect-ratio` not supported in CSS

Open thomasschmit opened this issue 2 years ago • 3 comments

The aspect-ratio CSS property is not supported by WeasyPrint 59. Is there any reason for this?

Thanks for your help!

thomasschmit avatar May 30 '23 12:05 thomasschmit

Hi!

The aspect-ratio CSS property is not supported by WeasyPrint 59. Is there any reason for this?

Mainly because nobody wrote the code yet 😄. That would be a good feature to have.

liZe avatar May 30 '23 12:05 liZe

@liZe Love this project. Would love it more if the aspect-ratio feature got implemented. CKEditor 5 generates aspect-ratio css tags on images so if you then try and generate a PDF from the resultant HTML you end up with images that do not display as they would on a website.

felipeNz avatar Jun 16 '24 23:06 felipeNz

Would love it more if the aspect-ratio feature got implemented.

And so would I! Are you interested on working on this issue? I can give some hints, of course.

liZe avatar Jun 17 '24 07:06 liZe