Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 css unrecognized property "flex" #69

Open
Jo3McCarthy opened this issue Feb 16, 2017 · 4 comments
Open

HTML5 css unrecognized property "flex" #69

Jo3McCarthy opened this issue Feb 16, 2017 · 4 comments

Comments

@Jo3McCarthy
Copy link

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

@danfickle
Copy link
Owner

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.

@ablyeom
Copy link

ablyeom commented May 26, 2019

Any updates?

@RAlfoeldi
Copy link

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.

@yvermabp
Copy link

yvermabp commented Oct 9, 2024

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants