M
M
monochromer2016-02-25 21:00:10
css
monochromer, 2016-02-25 21:00:10

What is rect used for in SVG icons?

Hello!
I noticed that some developers use this structure for SVG icons:

<svg xmlns="http://www.w3.org/2000/svg" class="icon  icon_mail">
    <use xlink:href="#mail"></use>
    <rect height="100%" width="100%" style="fill: transparent;"></rect>
</svg>

Why is rect here? Intuition suggests that for correct scaling. But is it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question