Roxas240 / flying-saucer

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

background image incorrectly repeats in every line #179

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A background image repeats at every line when used at inline elements like 
spans or links that cover multiple lines.

What steps will reproduce the problem?
1. Open the attached html file in the demo browser application

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

I expect that the background image is only visible in the first line.
Instead it is repeated for every line of the element.

background-repeat is set to no-repeat on the element.

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

Tested R8 and current master branch (25.11.2011) on ubuntu linux jdk 6.
Fails in both versions.

Original issue reported on code.google.com by flog...@gmail.com on 25 Oct 2011 at 10:10

Attachments:

GoogleCodeExporter commented 9 years ago
I found a workaround : use :before with content:" " and put your 
background-image here

Original comment by loic.ale...@gmail.com on 28 Mar 2013 at 11:10

GoogleCodeExporter commented 9 years ago
The problem with that is that line can break between the image and the text :/

Original comment by loic.ale...@gmail.com on 29 Mar 2013 at 12:27