P
P
Philip Gavrilov2017-08-24 14:21:02
css
Philip Gavrilov, 2017-08-24 14:21:02

What are serifs when rounding an image?

Rounding the corners of an image using CSS. I noticed that at the poles it is somehow "dirty".
I removed the background and noticed strange serifs:
https://jsfiddle.net/fe3mxgz7/4/
If you replace img with a div, the serifs disappear.
FF doesn't output anything.
Why is this happening and how to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one_day, 2017-08-24
@one_day

The problem only occurs when there is no img src="...", . As an option, use img src or specify something like

<img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question