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

Styling <td> elements with an HSL border-color causes an exception in some circumstances #1864

Open
1 task done
theodore-gregor opened this issue Apr 28, 2023 · 0 comments
Labels

Comments

@theodore-gregor
Copy link

Guidelines

Description of the bug

When trying to render a <td> element styled with an HSL border-color and a border-style of either groove, ridge, inset, or outset, I get the following exception:

Invalid color input, binary color string expected

mPDF version

8.1.5

PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)

8.1.6 served via Apache 2.4.57

Reproducible PHP+CSS+HTML snippet suffering by the error

$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('<table><tr><td style="border-width:1px;border-color:hsl(0, 0%, 0%);border-style:groove">Testing</td></tr></table>');
$mpdf->Output();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants