Set offset when parsing CSS for data URIs#3673
Conversation
|
composer require dompdf/dompdf |
|
@bsweeney this seems to be incomplete. The following works fine on dompdf 3.1.0: <div style="background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg')">Test</div>But it does no longer work on 3.1.3 and 3.1.4. |
|
@Cruiser13 that specific sample rendered OK for me on 3.1.4. This change addresses an issue parsing data URIs that are part of a stylesheet. Which is maybe where you're encountering an issue? For example, the following does not work in 3.1.4: I've already produced a fix in relation to #3706 and plan to push a new release in the near future. You can work around that issue by using double quote instead of single quotes |
|
Thanks, it indeed happens on explicit style and not on the element itself. Thank you for the reference to the issue and sorry to bother you! |
|
No worries! Glad to know this was not a different issue than the one identified recently. |
fixes #3672