zhihongzzh / flying-saucer

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

hr tag - the renderer gets stuck #184

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to parse a file having the content below.
2. The function 
org.xhtmlrenderer.render.AbstractOutputDevice.paintBackground0(RenderingContext,
 CalculatedStyle, Rectangle, Rectangle) will not finish.

What is the expected output? What do you see instead?
- The expected output is that the process finish the rendering without getting 
stuck.
- But instead it will not finish the process and get stuck.

What version of the product are you using? On what operating system?
- Version: Release 8
- OS: Windows XP

Please provide any additional information below.
HTML Code:
**********
<hr color="#000000" size="1px" id="MarketingMsg_ShowMsg_ctl01_Line">

CSS rule:
*********
hr {
  -moz-border-bottom-colors: none;
  -moz-border-image: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  border-bottom-color: -moz-use-text-color;
  border-bottom-style: none;
  border-bottom-width: medium;
  border-left-color-ltr-source: physical;
  border-left-color-rtl-source: physical;
  border-left-color-value: -moz-use-text-color;
  border-left-style-ltr-source: physical;
  border-left-style-rtl-source: physical;
  border-left-style-value: none;
  border-left-width-ltr-source: physical;
  border-left-width-rtl-source: physical;
  border-left-width-value: medium;
  border-right-color-ltr-source: physical;
  border-right-color-rtl-source: physical;
  border-right-color-value: -moz-use-text-color;
  border-right-style-ltr-source: physical;
  border-right-style-rtl-source: physical;
  border-right-style-value: none;
  border-right-width-ltr-source: physical;
  border-right-width-rtl-source: physical;
  border-right-width-value: medium;
  border-top-color: -moz-use-text-color;
  border-top-style: none;
  border-top-width: medium;
}

Original issue reported on code.google.com by ccascant...@gmail.com on 5 Dec 2011 at 9:36