pombreda / xhtml2pdf

Automatically exported from code.google.com/p/xhtml2pdf
GNU General Public License v2.0
0 stars 0 forks source link

CSSParseError on filter:alpha(opacity=50); #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have a CSS containing this option: filter:alpha(opacity=50);
2. have pisa try to parse it
3. get a CSSParseError

What is the expected output? What do you see instead?

 I would have expected pisa to simply ignore this option if it can't
understand it. It raises an exception instead.

What version of the product are you using? On what operating system?

 pisa 3.0.32

Please provide any additional information below.

 This filter:alpha(opacity=50); option is present in several Plone CSS
stylesheets. I understand that pisa doesn't support all and every of the
latest CSS features. But it would be some much better if pisa simply issued
warnings instead of raising exception when it encounters something it
doesn't understand. I am no CSS expert but I guess the CSS option given
here doesn't break the syntax (and, theoretically, parseability) of the
whole CSS file. Why should an exception be raised in that case ?

Thanks a lot for pisa.

Original issue reported on code.google.com by jean.mil...@gmail.com on 3 Sep 2009 at 2:04

GoogleCodeExporter commented 9 years ago
Some time ago Pisa AKA XHTML2PDF has been rereleased under the completely free 
Apache License. Since I personally don't have the time and resources to 
continue the project like before I would kindly ask you to fork the project on 
GitHub and add your patches etc. Maybe someone likes to create a new unified 
version and publish it on PyPI. If you need more help on this get in contact 
with me or write to the XHTML2PDF mailing list. Thank you all very much for 
your effort!

Project on GitHub:
http://github.com/holtwick/xhtml2pdf

Original comment by dirk.holtwick on 23 Aug 2010 at 5:27