Firefoxs displays thin gray lines at the edges of the contents of the png window at a certain width - why?

When firefox (3.0.6) displays a png image with a certain width (e.g. 50%), a thin gray line is displayed along the left and top edges of the content window. The line disappears with a different width (for example, 70%). Also, the line doesn't seem to be present in the original image (using gimp to check the image).

The phenomenon occurs in the absence of CSS style markup - in the HTML example below, CSS is present to clarify where the gray lines are located - it seems obvious that gray lines appear on the very edge of the content area itself.

It’s hard for me to imagine that this is a real firefox bug, and I wonder what concept I am missing or don’t understand ...

Thanks for your time and any suggestions / thoughts ...

Images can be seen here http://datlisp.blogspot.com/2009/02/img-width-tag-and-firefox-rendering-of.html

HTML:

<html>
<head><title>problems with pngs</title></head>
<body>
<div style="border-color: red; border-width: thin; border-style: solid;
      padding: 2px">
<img src="http://imagebin.ca/img/ato4dM.png"
    width="50%"
    style="border-color: blue; border-width: thin; border-style: solid;
    padding: 2px;"/>    
</div>
</body></html>
+3
source share
4 answers

Using your demo page and image, I could not see anything wrong.

Maybe a problem with video drivers? I believe that firefox (and cairo, the used graphics library) uses hardware acceleration to smoothly resize images, and unfortunately you cannot disable it AFAIK.

Try logging in through a remote protocol to bypass the video card and verify it. At least you can get calm. :)

0

, (, , ). html/css.

1 div . , , , Firefox.

Firefox (ctrl mousewheel, ctrl +/-), , , . 100% (ctrl 0) , , .

+1

I had a similar problem when displaying a .png image in a div tag. A thin black line was drawn on the side of the image. To fix this, I had to add the following CSS style:box-shadow: none;

0
source

Source: https://habr.com/ru/post/1703049/


All Articles