zhihongzzh / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Inline block drawn on top of float #226

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a div with 'display:inline-block'
2. Nest a div inside with 'float:left' and add some text inside this div
3. Create the pdf

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

The text should be visible in the pdf, but it is not.

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

9.0.1
Windows7

Please provide any additional information below.

This bug was raised by someone back on Aug-6-2010 ([Issue 324]) and a fix is 
supposedly committed. I have checked out flying saucer and see that a branch 
called 'float_painting_fix' was created, but was never merged back into the 
main trunk. Any reason why?

****
Below is the text from the original message.
****

Flying saucer seems to be drawing inline-block elements on top of floats level 
ones.

With this example I just see a red box. I should see a blue box with text in
it.

<html>
 <div style="display:inline-block;background-color:red;">
  <div style="float:left;background-color:blue">
   fred
  </div>
 </div>
</html>

Original issue reported on code.google.com by james.ri...@gmail.com on 26 Sep 2013 at 9:28