openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

request: support for "display:contents"

Open jlous opened this issue 2 years ago • 0 comments

In some template languages (e.g. thymelaf) it is often convenient to introduce extra "wrapper" html elements purely for template control flow reasons, even though you have no actual use for the resulting markup in the finished html.

I wish it was possible to avoid such elements from affecting the layout at all. The CSS feature "display:contents" is designed for precisely this (https://caniuse.com/css-display-contents)

It is not supported by the library of course - most browsers didn't get proper support until last year. But it would be extremely useful.

jlous avatar Nov 09 '22 16:11 jlous