Zunenonooo / dompdf

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

Wrong BG-Color with "overflow:hidden" #505

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Create Divs with Style Background Color. Add CSS style "overflow:hidden". 
Background Color will rendered in Black&White

What is the expected output? What do you see instead?
I expected a Red Background, I get a Grey. When I expect a black Background its 
just sometimes black and sometimes Grey.

What version of dompdf are you using? What version of PHP? On what
operating system?
0.6.0 Beta 3

Please provide the HTML source code you want to convert, or any additional
information.
Thats my Html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
    div {
      overflow: hidden;
    }

  </style>
</head>
<body>
<div class="kopf" style="position:relative; height:100px; width:1025px; 
border-bottom:#333 1px solid;">
<div style="position:absolute; top:60px; left:50px; width:170px; height:30px; 
font-size:22px; color:#FF2424; background-color:#000000; 
text-align:center;">Div #4</div>
<div style="position:absolute; top:55px; left:410px; width:175px; height:35px; 
font-size:22px; color:#000000; background-color:#FF2424; 
text-align:center;">Div #5</div>
<div style="position:absolute; top:50px; left:765px; width:150px; height:40px; 
font-size:22px; color:#FF2424; background-color:#000000; text-align:right;">Div 
#6</div>
<div style="position:absolute; top:10px; left:720px; width:265px; height:30px; 
font-size:24px; color:#000; background-color:#FFF; font-weight:bold; 
font-style:italic; text-decoration:underline; text-align:right;">Div #7</div>
</div>
</body>

Original issue reported on code.google.com by amerlan...@gmail.com on 13 Jun 2012 at 7:08

Attachments:

GoogleCodeExporter commented 8 years ago
When I render the PDF without "overflow: hidden" the output is the same like in 
Browser (all lines are small and all colors are right). So I just delete this 
CSS Property (I dont realy need it).
But anyway I think its a bug.

Original comment by amerlan...@gmail.com on 13 Jun 2012 at 7:12

GoogleCodeExporter commented 8 years ago

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