openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

HTML5 css unrecognized property "flex"

Open Jo3McCarthy opened this issue 8 years ago • 4 comments

I get these:

com.openhtmltopdf.css-parse WARNING:: (file:///test.html#inline_style_1) Value flex is not a recognized identifier at line 2. Skipping declaration. com.openhtmltopdf.css-parse WARNING:: (file:///test.html#inline_style_1) flex is an unrecognized CSS property at line 6. Ignoring declaration.

The document does not render completely. Could somebody please help with HTML5 parsing?

Thanks

Jo3McCarthy avatar Feb 16 '17 16:02 Jo3McCarthy

Hi @Jo3McCarthy Flex box layout is not supported. The current goal of the project is to implement enough of html for template authors to create functional and well designed documents. It is not realistic to expect any arbitrary html page or CSS framework to render perfectly, unfortunately.

Daniel.

danfickle avatar Feb 17 '17 03:02 danfickle

Any updates?

ablyeom avatar May 26 '19 08:05 ablyeom

It would be cool...supporting flex. Usecase: centered div with background color and variable content. Easy to do with flex. Not sure how to do this otherwise.

image

Having said that: Thanx for a great tool. We've evaluated / tested almost everything we could find and yours is the only one that can handle (almost) everything we throw at it.

RAlfoeldi avatar Apr 07 '21 14:04 RAlfoeldi

@danfickle Thanks for the great library! We've explored it for various use cases but have run into an issue with unsupported CSS properties like 'flex'. Do you have any updates on whether support for this will be added in the future?

yvermabp avatar Oct 09 '24 06:10 yvermabp