Jeckky / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Opacity cascades to child nodes #490

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Create a document that contains an element with an opacity other than 1.

What is the expected output? What do you see instead?
All elements contained within the outermost element should also be transparent. 
This renders correctly. However, if the element contains other elements the 
opacity appears to cascade to those other elements.

This may be due to the way opacity is implemented in the PDF. The transparency 
should be on the group of elements as a whole, but the elements appear to be 
transparent to each other as well. Each element probably has transparency 
applied individually, but they should somehow be grouped in the PDF and 
transparency applied to the group. Can this be done?

Confirmed in trunk r493.

Sample code attached.

Original issue reported on code.google.com by eclecticgeek on 31 May 2012 at 2:18

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00