I would like to create an HTML element, for example in an image:

The problem is that the DIV element has the shape of a polygon instead of a regular rectangle, it will be placed above other elements as something like a pop-up window, and inside this element you need to show an image with a rectangular shape in the source, but it is shown on the Internet how filling all the spaces contains a triangle From the left side.
Do you think it is possible to realize that without preparing images in the form of transparent PNG in the correct polygon? Only CSS3 converts or uses canvas or SVG?
html css css3 css-shapes svg
Jan P.
source share